@cdktf-providers/astronomer-astro 1.0.8
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/LICENSE +355 -0
- package/README.md +19 -0
- package/dist/alert/index.d.ts +566 -0
- package/dist/alert/index.js +1489 -0
- package/dist/api-token/index.d.ts +199 -0
- package/dist/api-token/index.js +503 -0
- package/dist/cluster/index.d.ts +305 -0
- package/dist/cluster/index.js +755 -0
- package/dist/data-astro-alert/index.d.ts +277 -0
- package/dist/data-astro-alert/index.js +762 -0
- package/dist/data-astro-alerts/index.d.ts +232 -0
- package/dist/data-astro-alerts/index.js +600 -0
- package/dist/data-astro-api-token/index.d.ts +135 -0
- package/dist/data-astro-api-token/index.js +353 -0
- package/dist/data-astro-api-tokens/index.d.ts +196 -0
- package/dist/data-astro-api-tokens/index.js +502 -0
- package/dist/data-astro-cluster/index.d.ts +211 -0
- package/dist/data-astro-cluster/index.js +535 -0
- package/dist/data-astro-cluster-options/index.d.ts +255 -0
- package/dist/data-astro-cluster-options/index.js +640 -0
- package/dist/data-astro-clusters/index.d.ts +263 -0
- package/dist/data-astro-clusters/index.js +661 -0
- package/dist/data-astro-deployment/index.d.ts +355 -0
- package/dist/data-astro-deployment/index.js +1009 -0
- package/dist/data-astro-deployment-options/index.d.ts +475 -0
- package/dist/data-astro-deployment-options/index.js +1274 -0
- package/dist/data-astro-deployments/index.d.ts +416 -0
- package/dist/data-astro-deployments/index.js +1158 -0
- package/dist/data-astro-notification-channel/index.d.ts +122 -0
- package/dist/data-astro-notification-channel/index.js +345 -0
- package/dist/data-astro-notification-channels/index.d.ts +201 -0
- package/dist/data-astro-notification-channels/index.js +540 -0
- package/dist/data-astro-organization/index.d.ts +87 -0
- package/dist/data-astro-organization/index.js +251 -0
- package/dist/data-astro-team/index.d.ts +204 -0
- package/dist/data-astro-team/index.js +507 -0
- package/dist/data-astro-teams/index.d.ts +247 -0
- package/dist/data-astro-teams/index.js +610 -0
- package/dist/data-astro-user/index.d.ts +122 -0
- package/dist/data-astro-user/index.js +274 -0
- package/dist/data-astro-users/index.d.ts +174 -0
- package/dist/data-astro-users/index.js +400 -0
- package/dist/data-astro-workspace/index.d.ts +94 -0
- package/dist/data-astro-workspace/index.js +250 -0
- package/dist/data-astro-workspaces/index.d.ts +146 -0
- package/dist/data-astro-workspaces/index.js +376 -0
- package/dist/deployment/index.d.ts +813 -0
- package/dist/deployment/index.js +2083 -0
- package/dist/hybrid-cluster-workspace-authorization/index.d.ts +53 -0
- package/dist/hybrid-cluster-workspace-authorization/index.js +111 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +32 -0
- package/dist/lazy-index.d.ts +0 -0
- package/dist/lazy-index.js +32 -0
- package/dist/notification-channel/index.d.ts +235 -0
- package/dist/notification-channel/index.js +608 -0
- package/dist/provider/index.d.ts +75 -0
- package/dist/provider/index.js +151 -0
- package/dist/team/index.d.ts +251 -0
- package/dist/team/index.js +622 -0
- package/dist/team-roles/index.d.ts +180 -0
- package/dist/team-roles/index.js +414 -0
- package/dist/user-invite/index.d.ts +99 -0
- package/dist/user-invite/index.js +262 -0
- package/dist/user-roles/index.d.ts +180 -0
- package/dist/user-roles/index.js +414 -0
- package/dist/workspace/index.d.ts +109 -0
- package/dist/workspace/index.js +282 -0
- package/package.json +51 -0
|
@@ -0,0 +1,661 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/clusters
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
export function dataAstroClustersClustersHealthStatusDetailsToTerraform(struct) {
|
|
5
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
6
|
+
return struct;
|
|
7
|
+
}
|
|
8
|
+
if (cdktf.isComplexElement(struct)) {
|
|
9
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
10
|
+
}
|
|
11
|
+
return {};
|
|
12
|
+
}
|
|
13
|
+
export function dataAstroClustersClustersHealthStatusDetailsToHclTerraform(struct) {
|
|
14
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
15
|
+
return struct;
|
|
16
|
+
}
|
|
17
|
+
if (cdktf.isComplexElement(struct)) {
|
|
18
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
19
|
+
}
|
|
20
|
+
const attrs = {};
|
|
21
|
+
return attrs;
|
|
22
|
+
}
|
|
23
|
+
export class DataAstroClustersClustersHealthStatusDetailsOutputReference extends cdktf.ComplexObject {
|
|
24
|
+
isEmptyObject = false;
|
|
25
|
+
/**
|
|
26
|
+
* @param terraformResource The parent resource
|
|
27
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
28
|
+
* @param complexObjectIndex the index of this item in the list
|
|
29
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
30
|
+
*/
|
|
31
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
32
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
33
|
+
}
|
|
34
|
+
get internalValue() {
|
|
35
|
+
let hasAnyValues = this.isEmptyObject;
|
|
36
|
+
const internalValueResult = {};
|
|
37
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
38
|
+
}
|
|
39
|
+
set internalValue(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
this.isEmptyObject = false;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
// code - computed: true, optional: false, required: false
|
|
48
|
+
get code() {
|
|
49
|
+
return this.getStringAttribute('code');
|
|
50
|
+
}
|
|
51
|
+
// description - computed: true, optional: false, required: false
|
|
52
|
+
get description() {
|
|
53
|
+
return this.getStringAttribute('description');
|
|
54
|
+
}
|
|
55
|
+
// severity - computed: true, optional: false, required: false
|
|
56
|
+
get severity() {
|
|
57
|
+
return this.getStringAttribute('severity');
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
export class DataAstroClustersClustersHealthStatusDetailsList extends cdktf.ComplexList {
|
|
61
|
+
terraformResource;
|
|
62
|
+
terraformAttribute;
|
|
63
|
+
wrapsSet;
|
|
64
|
+
/**
|
|
65
|
+
* @param terraformResource The parent resource
|
|
66
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
67
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
68
|
+
*/
|
|
69
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
70
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
71
|
+
this.terraformResource = terraformResource;
|
|
72
|
+
this.terraformAttribute = terraformAttribute;
|
|
73
|
+
this.wrapsSet = wrapsSet;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @param index the index of the item to return
|
|
77
|
+
*/
|
|
78
|
+
get(index) {
|
|
79
|
+
return new DataAstroClustersClustersHealthStatusDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
export function dataAstroClustersClustersHealthStatusToTerraform(struct) {
|
|
83
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
84
|
+
return struct;
|
|
85
|
+
}
|
|
86
|
+
if (cdktf.isComplexElement(struct)) {
|
|
87
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
88
|
+
}
|
|
89
|
+
return {};
|
|
90
|
+
}
|
|
91
|
+
export function dataAstroClustersClustersHealthStatusToHclTerraform(struct) {
|
|
92
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
93
|
+
return struct;
|
|
94
|
+
}
|
|
95
|
+
if (cdktf.isComplexElement(struct)) {
|
|
96
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
97
|
+
}
|
|
98
|
+
const attrs = {};
|
|
99
|
+
return attrs;
|
|
100
|
+
}
|
|
101
|
+
export class DataAstroClustersClustersHealthStatusOutputReference extends cdktf.ComplexObject {
|
|
102
|
+
isEmptyObject = false;
|
|
103
|
+
/**
|
|
104
|
+
* @param terraformResource The parent resource
|
|
105
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
106
|
+
*/
|
|
107
|
+
constructor(terraformResource, terraformAttribute) {
|
|
108
|
+
super(terraformResource, terraformAttribute, false);
|
|
109
|
+
}
|
|
110
|
+
get internalValue() {
|
|
111
|
+
let hasAnyValues = this.isEmptyObject;
|
|
112
|
+
const internalValueResult = {};
|
|
113
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
114
|
+
}
|
|
115
|
+
set internalValue(value) {
|
|
116
|
+
if (value === undefined) {
|
|
117
|
+
this.isEmptyObject = false;
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
// details - computed: true, optional: false, required: false
|
|
124
|
+
_details = new DataAstroClustersClustersHealthStatusDetailsList(this, "details", true);
|
|
125
|
+
get details() {
|
|
126
|
+
return this._details;
|
|
127
|
+
}
|
|
128
|
+
// value - computed: true, optional: false, required: false
|
|
129
|
+
get value() {
|
|
130
|
+
return this.getStringAttribute('value');
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
export function dataAstroClustersClustersMetadataToTerraform(struct) {
|
|
134
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
135
|
+
return struct;
|
|
136
|
+
}
|
|
137
|
+
if (cdktf.isComplexElement(struct)) {
|
|
138
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
139
|
+
}
|
|
140
|
+
return {};
|
|
141
|
+
}
|
|
142
|
+
export function dataAstroClustersClustersMetadataToHclTerraform(struct) {
|
|
143
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
144
|
+
return struct;
|
|
145
|
+
}
|
|
146
|
+
if (cdktf.isComplexElement(struct)) {
|
|
147
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
148
|
+
}
|
|
149
|
+
const attrs = {};
|
|
150
|
+
return attrs;
|
|
151
|
+
}
|
|
152
|
+
export class DataAstroClustersClustersMetadataOutputReference extends cdktf.ComplexObject {
|
|
153
|
+
isEmptyObject = false;
|
|
154
|
+
/**
|
|
155
|
+
* @param terraformResource The parent resource
|
|
156
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
157
|
+
*/
|
|
158
|
+
constructor(terraformResource, terraformAttribute) {
|
|
159
|
+
super(terraformResource, terraformAttribute, false);
|
|
160
|
+
}
|
|
161
|
+
get internalValue() {
|
|
162
|
+
let hasAnyValues = this.isEmptyObject;
|
|
163
|
+
const internalValueResult = {};
|
|
164
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
165
|
+
}
|
|
166
|
+
set internalValue(value) {
|
|
167
|
+
if (value === undefined) {
|
|
168
|
+
this.isEmptyObject = false;
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
// external_ips - computed: true, optional: false, required: false
|
|
175
|
+
get externalIps() {
|
|
176
|
+
return cdktf.Fn.tolist(this.getListAttribute('external_ips'));
|
|
177
|
+
}
|
|
178
|
+
// kube_dns_ip - computed: true, optional: false, required: false
|
|
179
|
+
get kubeDnsIp() {
|
|
180
|
+
return this.getStringAttribute('kube_dns_ip');
|
|
181
|
+
}
|
|
182
|
+
// oidc_issuer_url - computed: true, optional: false, required: false
|
|
183
|
+
get oidcIssuerUrl() {
|
|
184
|
+
return this.getStringAttribute('oidc_issuer_url');
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
export function dataAstroClustersClustersNodePoolsToTerraform(struct) {
|
|
188
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
189
|
+
return struct;
|
|
190
|
+
}
|
|
191
|
+
if (cdktf.isComplexElement(struct)) {
|
|
192
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
193
|
+
}
|
|
194
|
+
return {};
|
|
195
|
+
}
|
|
196
|
+
export function dataAstroClustersClustersNodePoolsToHclTerraform(struct) {
|
|
197
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
198
|
+
return struct;
|
|
199
|
+
}
|
|
200
|
+
if (cdktf.isComplexElement(struct)) {
|
|
201
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
202
|
+
}
|
|
203
|
+
const attrs = {};
|
|
204
|
+
return attrs;
|
|
205
|
+
}
|
|
206
|
+
export class DataAstroClustersClustersNodePoolsOutputReference extends cdktf.ComplexObject {
|
|
207
|
+
isEmptyObject = false;
|
|
208
|
+
/**
|
|
209
|
+
* @param terraformResource The parent resource
|
|
210
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
211
|
+
* @param complexObjectIndex the index of this item in the list
|
|
212
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
213
|
+
*/
|
|
214
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
215
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
216
|
+
}
|
|
217
|
+
get internalValue() {
|
|
218
|
+
let hasAnyValues = this.isEmptyObject;
|
|
219
|
+
const internalValueResult = {};
|
|
220
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
221
|
+
}
|
|
222
|
+
set internalValue(value) {
|
|
223
|
+
if (value === undefined) {
|
|
224
|
+
this.isEmptyObject = false;
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
// cloud_provider - computed: true, optional: false, required: false
|
|
231
|
+
get cloudProvider() {
|
|
232
|
+
return this.getStringAttribute('cloud_provider');
|
|
233
|
+
}
|
|
234
|
+
// cluster_id - computed: true, optional: false, required: false
|
|
235
|
+
get clusterId() {
|
|
236
|
+
return this.getStringAttribute('cluster_id');
|
|
237
|
+
}
|
|
238
|
+
// created_at - computed: true, optional: false, required: false
|
|
239
|
+
get createdAt() {
|
|
240
|
+
return this.getStringAttribute('created_at');
|
|
241
|
+
}
|
|
242
|
+
// id - computed: true, optional: false, required: false
|
|
243
|
+
get id() {
|
|
244
|
+
return this.getStringAttribute('id');
|
|
245
|
+
}
|
|
246
|
+
// is_default - computed: true, optional: false, required: false
|
|
247
|
+
get isDefault() {
|
|
248
|
+
return this.getBooleanAttribute('is_default');
|
|
249
|
+
}
|
|
250
|
+
// max_node_count - computed: true, optional: false, required: false
|
|
251
|
+
get maxNodeCount() {
|
|
252
|
+
return this.getNumberAttribute('max_node_count');
|
|
253
|
+
}
|
|
254
|
+
// name - computed: true, optional: false, required: false
|
|
255
|
+
get name() {
|
|
256
|
+
return this.getStringAttribute('name');
|
|
257
|
+
}
|
|
258
|
+
// node_instance_type - computed: true, optional: false, required: false
|
|
259
|
+
get nodeInstanceType() {
|
|
260
|
+
return this.getStringAttribute('node_instance_type');
|
|
261
|
+
}
|
|
262
|
+
// supported_astro_machines - computed: true, optional: false, required: false
|
|
263
|
+
get supportedAstroMachines() {
|
|
264
|
+
return cdktf.Fn.tolist(this.getListAttribute('supported_astro_machines'));
|
|
265
|
+
}
|
|
266
|
+
// updated_at - computed: true, optional: false, required: false
|
|
267
|
+
get updatedAt() {
|
|
268
|
+
return this.getStringAttribute('updated_at');
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
export class DataAstroClustersClustersNodePoolsList extends cdktf.ComplexList {
|
|
272
|
+
terraformResource;
|
|
273
|
+
terraformAttribute;
|
|
274
|
+
wrapsSet;
|
|
275
|
+
/**
|
|
276
|
+
* @param terraformResource The parent resource
|
|
277
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
278
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
279
|
+
*/
|
|
280
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
281
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
282
|
+
this.terraformResource = terraformResource;
|
|
283
|
+
this.terraformAttribute = terraformAttribute;
|
|
284
|
+
this.wrapsSet = wrapsSet;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* @param index the index of the item to return
|
|
288
|
+
*/
|
|
289
|
+
get(index) {
|
|
290
|
+
return new DataAstroClustersClustersNodePoolsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
export function dataAstroClustersClustersTagsToTerraform(struct) {
|
|
294
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
295
|
+
return struct;
|
|
296
|
+
}
|
|
297
|
+
if (cdktf.isComplexElement(struct)) {
|
|
298
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
299
|
+
}
|
|
300
|
+
return {};
|
|
301
|
+
}
|
|
302
|
+
export function dataAstroClustersClustersTagsToHclTerraform(struct) {
|
|
303
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
304
|
+
return struct;
|
|
305
|
+
}
|
|
306
|
+
if (cdktf.isComplexElement(struct)) {
|
|
307
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
308
|
+
}
|
|
309
|
+
const attrs = {};
|
|
310
|
+
return attrs;
|
|
311
|
+
}
|
|
312
|
+
export class DataAstroClustersClustersTagsOutputReference extends cdktf.ComplexObject {
|
|
313
|
+
isEmptyObject = false;
|
|
314
|
+
/**
|
|
315
|
+
* @param terraformResource The parent resource
|
|
316
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
317
|
+
* @param complexObjectIndex the index of this item in the list
|
|
318
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
319
|
+
*/
|
|
320
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
321
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
322
|
+
}
|
|
323
|
+
get internalValue() {
|
|
324
|
+
let hasAnyValues = this.isEmptyObject;
|
|
325
|
+
const internalValueResult = {};
|
|
326
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
327
|
+
}
|
|
328
|
+
set internalValue(value) {
|
|
329
|
+
if (value === undefined) {
|
|
330
|
+
this.isEmptyObject = false;
|
|
331
|
+
}
|
|
332
|
+
else {
|
|
333
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
// key - computed: true, optional: false, required: false
|
|
337
|
+
get key() {
|
|
338
|
+
return this.getStringAttribute('key');
|
|
339
|
+
}
|
|
340
|
+
// value - computed: true, optional: false, required: false
|
|
341
|
+
get value() {
|
|
342
|
+
return this.getStringAttribute('value');
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
export class DataAstroClustersClustersTagsList extends cdktf.ComplexList {
|
|
346
|
+
terraformResource;
|
|
347
|
+
terraformAttribute;
|
|
348
|
+
wrapsSet;
|
|
349
|
+
/**
|
|
350
|
+
* @param terraformResource The parent resource
|
|
351
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
352
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
353
|
+
*/
|
|
354
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
355
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
356
|
+
this.terraformResource = terraformResource;
|
|
357
|
+
this.terraformAttribute = terraformAttribute;
|
|
358
|
+
this.wrapsSet = wrapsSet;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* @param index the index of the item to return
|
|
362
|
+
*/
|
|
363
|
+
get(index) {
|
|
364
|
+
return new DataAstroClustersClustersTagsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
export function dataAstroClustersClustersToTerraform(struct) {
|
|
368
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
369
|
+
return struct;
|
|
370
|
+
}
|
|
371
|
+
if (cdktf.isComplexElement(struct)) {
|
|
372
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
373
|
+
}
|
|
374
|
+
return {
|
|
375
|
+
id: cdktf.stringToTerraform(struct.id),
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
export function dataAstroClustersClustersToHclTerraform(struct) {
|
|
379
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
380
|
+
return struct;
|
|
381
|
+
}
|
|
382
|
+
if (cdktf.isComplexElement(struct)) {
|
|
383
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
384
|
+
}
|
|
385
|
+
const attrs = {
|
|
386
|
+
id: {
|
|
387
|
+
value: cdktf.stringToHclTerraform(struct.id),
|
|
388
|
+
isBlock: false,
|
|
389
|
+
type: "simple",
|
|
390
|
+
storageClassType: "string",
|
|
391
|
+
},
|
|
392
|
+
};
|
|
393
|
+
// remove undefined attributes
|
|
394
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
395
|
+
}
|
|
396
|
+
export class DataAstroClustersClustersOutputReference extends cdktf.ComplexObject {
|
|
397
|
+
isEmptyObject = false;
|
|
398
|
+
/**
|
|
399
|
+
* @param terraformResource The parent resource
|
|
400
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
401
|
+
* @param complexObjectIndex the index of this item in the list
|
|
402
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
403
|
+
*/
|
|
404
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
405
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
406
|
+
}
|
|
407
|
+
get internalValue() {
|
|
408
|
+
let hasAnyValues = this.isEmptyObject;
|
|
409
|
+
const internalValueResult = {};
|
|
410
|
+
if (this._id !== undefined) {
|
|
411
|
+
hasAnyValues = true;
|
|
412
|
+
internalValueResult.id = this._id;
|
|
413
|
+
}
|
|
414
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
415
|
+
}
|
|
416
|
+
set internalValue(value) {
|
|
417
|
+
if (value === undefined) {
|
|
418
|
+
this.isEmptyObject = false;
|
|
419
|
+
this._id = undefined;
|
|
420
|
+
}
|
|
421
|
+
else {
|
|
422
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
423
|
+
this._id = value.id;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
// cloud_provider - computed: true, optional: false, required: false
|
|
427
|
+
get cloudProvider() {
|
|
428
|
+
return this.getStringAttribute('cloud_provider');
|
|
429
|
+
}
|
|
430
|
+
// created_at - computed: true, optional: false, required: false
|
|
431
|
+
get createdAt() {
|
|
432
|
+
return this.getStringAttribute('created_at');
|
|
433
|
+
}
|
|
434
|
+
// db_instance_type - computed: true, optional: false, required: false
|
|
435
|
+
get dbInstanceType() {
|
|
436
|
+
return this.getStringAttribute('db_instance_type');
|
|
437
|
+
}
|
|
438
|
+
// health_status - computed: true, optional: false, required: false
|
|
439
|
+
_healthStatus = new DataAstroClustersClustersHealthStatusOutputReference(this, "health_status");
|
|
440
|
+
get healthStatus() {
|
|
441
|
+
return this._healthStatus;
|
|
442
|
+
}
|
|
443
|
+
// id - computed: true, optional: false, required: true
|
|
444
|
+
_id;
|
|
445
|
+
get id() {
|
|
446
|
+
return this.getStringAttribute('id');
|
|
447
|
+
}
|
|
448
|
+
set id(value) {
|
|
449
|
+
this._id = value;
|
|
450
|
+
}
|
|
451
|
+
// Temporarily expose input value. Use with caution.
|
|
452
|
+
get idInput() {
|
|
453
|
+
return this._id;
|
|
454
|
+
}
|
|
455
|
+
// is_limited - computed: true, optional: false, required: false
|
|
456
|
+
get isLimited() {
|
|
457
|
+
return this.getBooleanAttribute('is_limited');
|
|
458
|
+
}
|
|
459
|
+
// metadata - computed: true, optional: false, required: false
|
|
460
|
+
_metadata = new DataAstroClustersClustersMetadataOutputReference(this, "metadata");
|
|
461
|
+
get metadata() {
|
|
462
|
+
return this._metadata;
|
|
463
|
+
}
|
|
464
|
+
// name - computed: true, optional: false, required: false
|
|
465
|
+
get name() {
|
|
466
|
+
return this.getStringAttribute('name');
|
|
467
|
+
}
|
|
468
|
+
// node_pools - computed: true, optional: false, required: false
|
|
469
|
+
_nodePools = new DataAstroClustersClustersNodePoolsList(this, "node_pools", true);
|
|
470
|
+
get nodePools() {
|
|
471
|
+
return this._nodePools;
|
|
472
|
+
}
|
|
473
|
+
// pod_subnet_range - computed: true, optional: false, required: false
|
|
474
|
+
get podSubnetRange() {
|
|
475
|
+
return this.getStringAttribute('pod_subnet_range');
|
|
476
|
+
}
|
|
477
|
+
// provider_account - computed: true, optional: false, required: false
|
|
478
|
+
get providerAccount() {
|
|
479
|
+
return this.getStringAttribute('provider_account');
|
|
480
|
+
}
|
|
481
|
+
// region - computed: true, optional: false, required: false
|
|
482
|
+
get region() {
|
|
483
|
+
return this.getStringAttribute('region');
|
|
484
|
+
}
|
|
485
|
+
// service_peering_range - computed: true, optional: false, required: false
|
|
486
|
+
get servicePeeringRange() {
|
|
487
|
+
return this.getStringAttribute('service_peering_range');
|
|
488
|
+
}
|
|
489
|
+
// service_subnet_range - computed: true, optional: false, required: false
|
|
490
|
+
get serviceSubnetRange() {
|
|
491
|
+
return this.getStringAttribute('service_subnet_range');
|
|
492
|
+
}
|
|
493
|
+
// status - computed: true, optional: false, required: false
|
|
494
|
+
get status() {
|
|
495
|
+
return this.getStringAttribute('status');
|
|
496
|
+
}
|
|
497
|
+
// tags - computed: true, optional: false, required: false
|
|
498
|
+
_tags = new DataAstroClustersClustersTagsList(this, "tags", true);
|
|
499
|
+
get tags() {
|
|
500
|
+
return this._tags;
|
|
501
|
+
}
|
|
502
|
+
// tenant_id - computed: true, optional: false, required: false
|
|
503
|
+
get tenantId() {
|
|
504
|
+
return this.getStringAttribute('tenant_id');
|
|
505
|
+
}
|
|
506
|
+
// type - computed: true, optional: false, required: false
|
|
507
|
+
get type() {
|
|
508
|
+
return this.getStringAttribute('type');
|
|
509
|
+
}
|
|
510
|
+
// updated_at - computed: true, optional: false, required: false
|
|
511
|
+
get updatedAt() {
|
|
512
|
+
return this.getStringAttribute('updated_at');
|
|
513
|
+
}
|
|
514
|
+
// vpc_subnet_range - computed: true, optional: false, required: false
|
|
515
|
+
get vpcSubnetRange() {
|
|
516
|
+
return this.getStringAttribute('vpc_subnet_range');
|
|
517
|
+
}
|
|
518
|
+
// workspace_ids - computed: true, optional: false, required: false
|
|
519
|
+
get workspaceIds() {
|
|
520
|
+
return cdktf.Fn.tolist(this.getListAttribute('workspace_ids'));
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
export class DataAstroClustersClustersList extends cdktf.ComplexList {
|
|
524
|
+
terraformResource;
|
|
525
|
+
terraformAttribute;
|
|
526
|
+
wrapsSet;
|
|
527
|
+
internalValue;
|
|
528
|
+
/**
|
|
529
|
+
* @param terraformResource The parent resource
|
|
530
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
531
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
532
|
+
*/
|
|
533
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
534
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
535
|
+
this.terraformResource = terraformResource;
|
|
536
|
+
this.terraformAttribute = terraformAttribute;
|
|
537
|
+
this.wrapsSet = wrapsSet;
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* @param index the index of the item to return
|
|
541
|
+
*/
|
|
542
|
+
get(index) {
|
|
543
|
+
return new DataAstroClustersClustersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
/**
|
|
547
|
+
* Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/clusters astro_clusters}
|
|
548
|
+
*/
|
|
549
|
+
export class DataAstroClusters extends cdktf.TerraformDataSource {
|
|
550
|
+
// =================
|
|
551
|
+
// STATIC PROPERTIES
|
|
552
|
+
// =================
|
|
553
|
+
static tfResourceType = "astro_clusters";
|
|
554
|
+
// ==============
|
|
555
|
+
// STATIC Methods
|
|
556
|
+
// ==============
|
|
557
|
+
/**
|
|
558
|
+
* Generates CDKTF code for importing a DataAstroClusters resource upon running "cdktf plan <stack-name>"
|
|
559
|
+
* @param scope The scope in which to define this construct
|
|
560
|
+
* @param importToId The construct id used in the generated config for the DataAstroClusters to import
|
|
561
|
+
* @param importFromId The id of the existing DataAstroClusters that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/clusters#import import section} in the documentation of this resource for the id to use
|
|
562
|
+
* @param provider? Optional instance of the provider where the DataAstroClusters to import is found
|
|
563
|
+
*/
|
|
564
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
565
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "astro_clusters", importId: importFromId, provider });
|
|
566
|
+
}
|
|
567
|
+
// ===========
|
|
568
|
+
// INITIALIZER
|
|
569
|
+
// ===========
|
|
570
|
+
/**
|
|
571
|
+
* Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/clusters astro_clusters} Data Source
|
|
572
|
+
*
|
|
573
|
+
* @param scope The scope in which to define this construct
|
|
574
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
575
|
+
* @param options DataAstroClustersConfig = {}
|
|
576
|
+
*/
|
|
577
|
+
constructor(scope, id, config = {}) {
|
|
578
|
+
super(scope, id, {
|
|
579
|
+
terraformResourceType: 'astro_clusters',
|
|
580
|
+
terraformGeneratorMetadata: {
|
|
581
|
+
providerName: 'astro',
|
|
582
|
+
providerVersion: '1.0.8',
|
|
583
|
+
providerVersionConstraint: '1.0.8'
|
|
584
|
+
},
|
|
585
|
+
provider: config.provider,
|
|
586
|
+
dependsOn: config.dependsOn,
|
|
587
|
+
count: config.count,
|
|
588
|
+
lifecycle: config.lifecycle,
|
|
589
|
+
provisioners: config.provisioners,
|
|
590
|
+
connection: config.connection,
|
|
591
|
+
forEach: config.forEach
|
|
592
|
+
});
|
|
593
|
+
this._cloudProvider = config.cloudProvider;
|
|
594
|
+
this._names = config.names;
|
|
595
|
+
}
|
|
596
|
+
// ==========
|
|
597
|
+
// ATTRIBUTES
|
|
598
|
+
// ==========
|
|
599
|
+
// cloud_provider - computed: false, optional: true, required: false
|
|
600
|
+
_cloudProvider;
|
|
601
|
+
get cloudProvider() {
|
|
602
|
+
return this.getStringAttribute('cloud_provider');
|
|
603
|
+
}
|
|
604
|
+
set cloudProvider(value) {
|
|
605
|
+
this._cloudProvider = value;
|
|
606
|
+
}
|
|
607
|
+
resetCloudProvider() {
|
|
608
|
+
this._cloudProvider = undefined;
|
|
609
|
+
}
|
|
610
|
+
// Temporarily expose input value. Use with caution.
|
|
611
|
+
get cloudProviderInput() {
|
|
612
|
+
return this._cloudProvider;
|
|
613
|
+
}
|
|
614
|
+
// clusters - computed: true, optional: false, required: false
|
|
615
|
+
_clusters = new DataAstroClustersClustersList(this, "clusters", true);
|
|
616
|
+
get clusters() {
|
|
617
|
+
return this._clusters;
|
|
618
|
+
}
|
|
619
|
+
// names - computed: false, optional: true, required: false
|
|
620
|
+
_names;
|
|
621
|
+
get names() {
|
|
622
|
+
return cdktf.Fn.tolist(this.getListAttribute('names'));
|
|
623
|
+
}
|
|
624
|
+
set names(value) {
|
|
625
|
+
this._names = value;
|
|
626
|
+
}
|
|
627
|
+
resetNames() {
|
|
628
|
+
this._names = undefined;
|
|
629
|
+
}
|
|
630
|
+
// Temporarily expose input value. Use with caution.
|
|
631
|
+
get namesInput() {
|
|
632
|
+
return this._names;
|
|
633
|
+
}
|
|
634
|
+
// =========
|
|
635
|
+
// SYNTHESIS
|
|
636
|
+
// =========
|
|
637
|
+
synthesizeAttributes() {
|
|
638
|
+
return {
|
|
639
|
+
cloud_provider: cdktf.stringToTerraform(this._cloudProvider),
|
|
640
|
+
names: cdktf.listMapper(cdktf.stringToTerraform, false)(this._names),
|
|
641
|
+
};
|
|
642
|
+
}
|
|
643
|
+
synthesizeHclAttributes() {
|
|
644
|
+
const attrs = {
|
|
645
|
+
cloud_provider: {
|
|
646
|
+
value: cdktf.stringToHclTerraform(this._cloudProvider),
|
|
647
|
+
isBlock: false,
|
|
648
|
+
type: "simple",
|
|
649
|
+
storageClassType: "string",
|
|
650
|
+
},
|
|
651
|
+
names: {
|
|
652
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._names),
|
|
653
|
+
isBlock: false,
|
|
654
|
+
type: "set",
|
|
655
|
+
storageClassType: "stringList",
|
|
656
|
+
},
|
|
657
|
+
};
|
|
658
|
+
// remove undefined attributes
|
|
659
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
660
|
+
}
|
|
661
|
+
}
|