@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,535 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/cluster
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
export function dataAstroClusterHealthStatusDetailsToTerraform(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 dataAstroClusterHealthStatusDetailsToHclTerraform(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 DataAstroClusterHealthStatusDetailsOutputReference 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 DataAstroClusterHealthStatusDetailsList 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 DataAstroClusterHealthStatusDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
export function dataAstroClusterHealthStatusToTerraform(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 dataAstroClusterHealthStatusToHclTerraform(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 DataAstroClusterHealthStatusOutputReference 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 DataAstroClusterHealthStatusDetailsList(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 dataAstroClusterMetadataToTerraform(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 dataAstroClusterMetadataToHclTerraform(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 DataAstroClusterMetadataOutputReference 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 dataAstroClusterNodePoolsToTerraform(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 dataAstroClusterNodePoolsToHclTerraform(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 DataAstroClusterNodePoolsOutputReference 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 DataAstroClusterNodePoolsList 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 DataAstroClusterNodePoolsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
export function dataAstroClusterTagsToTerraform(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 dataAstroClusterTagsToHclTerraform(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 DataAstroClusterTagsOutputReference 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 DataAstroClusterTagsList 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 DataAstroClusterTagsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/cluster astro_cluster}
|
|
369
|
+
*/
|
|
370
|
+
export class DataAstroCluster extends cdktf.TerraformDataSource {
|
|
371
|
+
// =================
|
|
372
|
+
// STATIC PROPERTIES
|
|
373
|
+
// =================
|
|
374
|
+
static tfResourceType = "astro_cluster";
|
|
375
|
+
// ==============
|
|
376
|
+
// STATIC Methods
|
|
377
|
+
// ==============
|
|
378
|
+
/**
|
|
379
|
+
* Generates CDKTF code for importing a DataAstroCluster resource upon running "cdktf plan <stack-name>"
|
|
380
|
+
* @param scope The scope in which to define this construct
|
|
381
|
+
* @param importToId The construct id used in the generated config for the DataAstroCluster to import
|
|
382
|
+
* @param importFromId The id of the existing DataAstroCluster that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/cluster#import import section} in the documentation of this resource for the id to use
|
|
383
|
+
* @param provider? Optional instance of the provider where the DataAstroCluster to import is found
|
|
384
|
+
*/
|
|
385
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
386
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "astro_cluster", importId: importFromId, provider });
|
|
387
|
+
}
|
|
388
|
+
// ===========
|
|
389
|
+
// INITIALIZER
|
|
390
|
+
// ===========
|
|
391
|
+
/**
|
|
392
|
+
* Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/cluster astro_cluster} Data Source
|
|
393
|
+
*
|
|
394
|
+
* @param scope The scope in which to define this construct
|
|
395
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
396
|
+
* @param options DataAstroClusterConfig
|
|
397
|
+
*/
|
|
398
|
+
constructor(scope, id, config) {
|
|
399
|
+
super(scope, id, {
|
|
400
|
+
terraformResourceType: 'astro_cluster',
|
|
401
|
+
terraformGeneratorMetadata: {
|
|
402
|
+
providerName: 'astro',
|
|
403
|
+
providerVersion: '1.0.8',
|
|
404
|
+
providerVersionConstraint: '1.0.8'
|
|
405
|
+
},
|
|
406
|
+
provider: config.provider,
|
|
407
|
+
dependsOn: config.dependsOn,
|
|
408
|
+
count: config.count,
|
|
409
|
+
lifecycle: config.lifecycle,
|
|
410
|
+
provisioners: config.provisioners,
|
|
411
|
+
connection: config.connection,
|
|
412
|
+
forEach: config.forEach
|
|
413
|
+
});
|
|
414
|
+
this._id = config.id;
|
|
415
|
+
}
|
|
416
|
+
// ==========
|
|
417
|
+
// ATTRIBUTES
|
|
418
|
+
// ==========
|
|
419
|
+
// cloud_provider - computed: true, optional: false, required: false
|
|
420
|
+
get cloudProvider() {
|
|
421
|
+
return this.getStringAttribute('cloud_provider');
|
|
422
|
+
}
|
|
423
|
+
// created_at - computed: true, optional: false, required: false
|
|
424
|
+
get createdAt() {
|
|
425
|
+
return this.getStringAttribute('created_at');
|
|
426
|
+
}
|
|
427
|
+
// db_instance_type - computed: true, optional: false, required: false
|
|
428
|
+
get dbInstanceType() {
|
|
429
|
+
return this.getStringAttribute('db_instance_type');
|
|
430
|
+
}
|
|
431
|
+
// health_status - computed: true, optional: false, required: false
|
|
432
|
+
_healthStatus = new DataAstroClusterHealthStatusOutputReference(this, "health_status");
|
|
433
|
+
get healthStatus() {
|
|
434
|
+
return this._healthStatus;
|
|
435
|
+
}
|
|
436
|
+
// id - computed: false, optional: false, required: true
|
|
437
|
+
_id;
|
|
438
|
+
get id() {
|
|
439
|
+
return this.getStringAttribute('id');
|
|
440
|
+
}
|
|
441
|
+
set id(value) {
|
|
442
|
+
this._id = value;
|
|
443
|
+
}
|
|
444
|
+
// Temporarily expose input value. Use with caution.
|
|
445
|
+
get idInput() {
|
|
446
|
+
return this._id;
|
|
447
|
+
}
|
|
448
|
+
// is_limited - computed: true, optional: false, required: false
|
|
449
|
+
get isLimited() {
|
|
450
|
+
return this.getBooleanAttribute('is_limited');
|
|
451
|
+
}
|
|
452
|
+
// metadata - computed: true, optional: false, required: false
|
|
453
|
+
_metadata = new DataAstroClusterMetadataOutputReference(this, "metadata");
|
|
454
|
+
get metadata() {
|
|
455
|
+
return this._metadata;
|
|
456
|
+
}
|
|
457
|
+
// name - computed: true, optional: false, required: false
|
|
458
|
+
get name() {
|
|
459
|
+
return this.getStringAttribute('name');
|
|
460
|
+
}
|
|
461
|
+
// node_pools - computed: true, optional: false, required: false
|
|
462
|
+
_nodePools = new DataAstroClusterNodePoolsList(this, "node_pools", true);
|
|
463
|
+
get nodePools() {
|
|
464
|
+
return this._nodePools;
|
|
465
|
+
}
|
|
466
|
+
// pod_subnet_range - computed: true, optional: false, required: false
|
|
467
|
+
get podSubnetRange() {
|
|
468
|
+
return this.getStringAttribute('pod_subnet_range');
|
|
469
|
+
}
|
|
470
|
+
// provider_account - computed: true, optional: false, required: false
|
|
471
|
+
get providerAccount() {
|
|
472
|
+
return this.getStringAttribute('provider_account');
|
|
473
|
+
}
|
|
474
|
+
// region - computed: true, optional: false, required: false
|
|
475
|
+
get region() {
|
|
476
|
+
return this.getStringAttribute('region');
|
|
477
|
+
}
|
|
478
|
+
// service_peering_range - computed: true, optional: false, required: false
|
|
479
|
+
get servicePeeringRange() {
|
|
480
|
+
return this.getStringAttribute('service_peering_range');
|
|
481
|
+
}
|
|
482
|
+
// service_subnet_range - computed: true, optional: false, required: false
|
|
483
|
+
get serviceSubnetRange() {
|
|
484
|
+
return this.getStringAttribute('service_subnet_range');
|
|
485
|
+
}
|
|
486
|
+
// status - computed: true, optional: false, required: false
|
|
487
|
+
get status() {
|
|
488
|
+
return this.getStringAttribute('status');
|
|
489
|
+
}
|
|
490
|
+
// tags - computed: true, optional: false, required: false
|
|
491
|
+
_tags = new DataAstroClusterTagsList(this, "tags", true);
|
|
492
|
+
get tags() {
|
|
493
|
+
return this._tags;
|
|
494
|
+
}
|
|
495
|
+
// tenant_id - computed: true, optional: false, required: false
|
|
496
|
+
get tenantId() {
|
|
497
|
+
return this.getStringAttribute('tenant_id');
|
|
498
|
+
}
|
|
499
|
+
// type - computed: true, optional: false, required: false
|
|
500
|
+
get type() {
|
|
501
|
+
return this.getStringAttribute('type');
|
|
502
|
+
}
|
|
503
|
+
// updated_at - computed: true, optional: false, required: false
|
|
504
|
+
get updatedAt() {
|
|
505
|
+
return this.getStringAttribute('updated_at');
|
|
506
|
+
}
|
|
507
|
+
// vpc_subnet_range - computed: true, optional: false, required: false
|
|
508
|
+
get vpcSubnetRange() {
|
|
509
|
+
return this.getStringAttribute('vpc_subnet_range');
|
|
510
|
+
}
|
|
511
|
+
// workspace_ids - computed: true, optional: false, required: false
|
|
512
|
+
get workspaceIds() {
|
|
513
|
+
return cdktf.Fn.tolist(this.getListAttribute('workspace_ids'));
|
|
514
|
+
}
|
|
515
|
+
// =========
|
|
516
|
+
// SYNTHESIS
|
|
517
|
+
// =========
|
|
518
|
+
synthesizeAttributes() {
|
|
519
|
+
return {
|
|
520
|
+
id: cdktf.stringToTerraform(this._id),
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
synthesizeHclAttributes() {
|
|
524
|
+
const attrs = {
|
|
525
|
+
id: {
|
|
526
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
527
|
+
isBlock: false,
|
|
528
|
+
type: "simple",
|
|
529
|
+
storageClassType: "string",
|
|
530
|
+
},
|
|
531
|
+
};
|
|
532
|
+
// remove undefined attributes
|
|
533
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
534
|
+
}
|
|
535
|
+
}
|