@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.
Files changed (69) hide show
  1. package/LICENSE +355 -0
  2. package/README.md +19 -0
  3. package/dist/alert/index.d.ts +566 -0
  4. package/dist/alert/index.js +1489 -0
  5. package/dist/api-token/index.d.ts +199 -0
  6. package/dist/api-token/index.js +503 -0
  7. package/dist/cluster/index.d.ts +305 -0
  8. package/dist/cluster/index.js +755 -0
  9. package/dist/data-astro-alert/index.d.ts +277 -0
  10. package/dist/data-astro-alert/index.js +762 -0
  11. package/dist/data-astro-alerts/index.d.ts +232 -0
  12. package/dist/data-astro-alerts/index.js +600 -0
  13. package/dist/data-astro-api-token/index.d.ts +135 -0
  14. package/dist/data-astro-api-token/index.js +353 -0
  15. package/dist/data-astro-api-tokens/index.d.ts +196 -0
  16. package/dist/data-astro-api-tokens/index.js +502 -0
  17. package/dist/data-astro-cluster/index.d.ts +211 -0
  18. package/dist/data-astro-cluster/index.js +535 -0
  19. package/dist/data-astro-cluster-options/index.d.ts +255 -0
  20. package/dist/data-astro-cluster-options/index.js +640 -0
  21. package/dist/data-astro-clusters/index.d.ts +263 -0
  22. package/dist/data-astro-clusters/index.js +661 -0
  23. package/dist/data-astro-deployment/index.d.ts +355 -0
  24. package/dist/data-astro-deployment/index.js +1009 -0
  25. package/dist/data-astro-deployment-options/index.d.ts +475 -0
  26. package/dist/data-astro-deployment-options/index.js +1274 -0
  27. package/dist/data-astro-deployments/index.d.ts +416 -0
  28. package/dist/data-astro-deployments/index.js +1158 -0
  29. package/dist/data-astro-notification-channel/index.d.ts +122 -0
  30. package/dist/data-astro-notification-channel/index.js +345 -0
  31. package/dist/data-astro-notification-channels/index.d.ts +201 -0
  32. package/dist/data-astro-notification-channels/index.js +540 -0
  33. package/dist/data-astro-organization/index.d.ts +87 -0
  34. package/dist/data-astro-organization/index.js +251 -0
  35. package/dist/data-astro-team/index.d.ts +204 -0
  36. package/dist/data-astro-team/index.js +507 -0
  37. package/dist/data-astro-teams/index.d.ts +247 -0
  38. package/dist/data-astro-teams/index.js +610 -0
  39. package/dist/data-astro-user/index.d.ts +122 -0
  40. package/dist/data-astro-user/index.js +274 -0
  41. package/dist/data-astro-users/index.d.ts +174 -0
  42. package/dist/data-astro-users/index.js +400 -0
  43. package/dist/data-astro-workspace/index.d.ts +94 -0
  44. package/dist/data-astro-workspace/index.js +250 -0
  45. package/dist/data-astro-workspaces/index.d.ts +146 -0
  46. package/dist/data-astro-workspaces/index.js +376 -0
  47. package/dist/deployment/index.d.ts +813 -0
  48. package/dist/deployment/index.js +2083 -0
  49. package/dist/hybrid-cluster-workspace-authorization/index.d.ts +53 -0
  50. package/dist/hybrid-cluster-workspace-authorization/index.js +111 -0
  51. package/dist/index.d.ts +31 -0
  52. package/dist/index.js +32 -0
  53. package/dist/lazy-index.d.ts +0 -0
  54. package/dist/lazy-index.js +32 -0
  55. package/dist/notification-channel/index.d.ts +235 -0
  56. package/dist/notification-channel/index.js +608 -0
  57. package/dist/provider/index.d.ts +75 -0
  58. package/dist/provider/index.js +151 -0
  59. package/dist/team/index.d.ts +251 -0
  60. package/dist/team/index.js +622 -0
  61. package/dist/team-roles/index.d.ts +180 -0
  62. package/dist/team-roles/index.js +414 -0
  63. package/dist/user-invite/index.d.ts +99 -0
  64. package/dist/user-invite/index.js +262 -0
  65. package/dist/user-roles/index.d.ts +180 -0
  66. package/dist/user-roles/index.js +414 -0
  67. package/dist/workspace/index.d.ts +109 -0
  68. package/dist/workspace/index.js +282 -0
  69. package/package.json +51 -0
@@ -0,0 +1,135 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface DataAstroApiTokenConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * API Token identifier
6
+ *
7
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/api_token#id DataAstroApiToken#id}
8
+ *
9
+ * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
10
+ * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
11
+ */
12
+ readonly id: string;
13
+ }
14
+ export interface DataAstroApiTokenCreatedBy {
15
+ }
16
+ export declare function dataAstroApiTokenCreatedByToTerraform(struct?: DataAstroApiTokenCreatedBy): any;
17
+ export declare function dataAstroApiTokenCreatedByToHclTerraform(struct?: DataAstroApiTokenCreatedBy): any;
18
+ export declare class DataAstroApiTokenCreatedByOutputReference extends cdktf.ComplexObject {
19
+ private isEmptyObject;
20
+ /**
21
+ * @param terraformResource The parent resource
22
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
23
+ */
24
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
25
+ get internalValue(): DataAstroApiTokenCreatedBy | undefined;
26
+ set internalValue(value: DataAstroApiTokenCreatedBy | undefined);
27
+ get apiTokenName(): any;
28
+ get avatarUrl(): any;
29
+ get fullName(): any;
30
+ get id(): any;
31
+ get subjectType(): any;
32
+ get username(): any;
33
+ }
34
+ export interface DataAstroApiTokenRoles {
35
+ }
36
+ export declare function dataAstroApiTokenRolesToTerraform(struct?: DataAstroApiTokenRoles): any;
37
+ export declare function dataAstroApiTokenRolesToHclTerraform(struct?: DataAstroApiTokenRoles): any;
38
+ export declare class DataAstroApiTokenRolesOutputReference extends cdktf.ComplexObject {
39
+ private isEmptyObject;
40
+ /**
41
+ * @param terraformResource The parent resource
42
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
43
+ * @param complexObjectIndex the index of this item in the list
44
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
45
+ */
46
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
47
+ get internalValue(): DataAstroApiTokenRoles | undefined;
48
+ set internalValue(value: DataAstroApiTokenRoles | undefined);
49
+ get entityId(): any;
50
+ get entityType(): any;
51
+ get role(): any;
52
+ }
53
+ export declare class DataAstroApiTokenRolesList extends cdktf.ComplexList {
54
+ protected terraformResource: cdktf.IInterpolatingParent;
55
+ protected terraformAttribute: string;
56
+ protected wrapsSet: boolean;
57
+ /**
58
+ * @param terraformResource The parent resource
59
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
60
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
61
+ */
62
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
63
+ /**
64
+ * @param index the index of the item to return
65
+ */
66
+ get(index: number): DataAstroApiTokenRolesOutputReference;
67
+ }
68
+ export interface DataAstroApiTokenUpdatedBy {
69
+ }
70
+ export declare function dataAstroApiTokenUpdatedByToTerraform(struct?: DataAstroApiTokenUpdatedBy): any;
71
+ export declare function dataAstroApiTokenUpdatedByToHclTerraform(struct?: DataAstroApiTokenUpdatedBy): any;
72
+ export declare class DataAstroApiTokenUpdatedByOutputReference extends cdktf.ComplexObject {
73
+ private isEmptyObject;
74
+ /**
75
+ * @param terraformResource The parent resource
76
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
77
+ */
78
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
79
+ get internalValue(): DataAstroApiTokenUpdatedBy | undefined;
80
+ set internalValue(value: DataAstroApiTokenUpdatedBy | undefined);
81
+ get apiTokenName(): any;
82
+ get avatarUrl(): any;
83
+ get fullName(): any;
84
+ get id(): any;
85
+ get subjectType(): any;
86
+ get username(): any;
87
+ }
88
+ /**
89
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/api_token astro_api_token}
90
+ */
91
+ export declare class DataAstroApiToken extends cdktf.TerraformDataSource {
92
+ static readonly tfResourceType = "astro_api_token";
93
+ /**
94
+ * Generates CDKTF code for importing a DataAstroApiToken resource upon running "cdktf plan <stack-name>"
95
+ * @param scope The scope in which to define this construct
96
+ * @param importToId The construct id used in the generated config for the DataAstroApiToken to import
97
+ * @param importFromId The id of the existing DataAstroApiToken that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/api_token#import import section} in the documentation of this resource for the id to use
98
+ * @param provider? Optional instance of the provider where the DataAstroApiToken to import is found
99
+ */
100
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
101
+ /**
102
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/api_token astro_api_token} Data Source
103
+ *
104
+ * @param scope The scope in which to define this construct
105
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
106
+ * @param options DataAstroApiTokenConfig
107
+ */
108
+ constructor(scope: Construct, id: string, config: DataAstroApiTokenConfig);
109
+ get createdAt(): any;
110
+ private _createdBy;
111
+ get createdBy(): DataAstroApiTokenCreatedByOutputReference;
112
+ get description(): any;
113
+ get endAt(): any;
114
+ get expiryPeriodInDays(): any;
115
+ private _id?;
116
+ get id(): string;
117
+ set id(value: string);
118
+ get idInput(): string;
119
+ get lastUsedAt(): any;
120
+ get name(): any;
121
+ private _roles;
122
+ get roles(): DataAstroApiTokenRolesList;
123
+ get shortToken(): any;
124
+ get startAt(): any;
125
+ get type(): any;
126
+ get updatedAt(): any;
127
+ private _updatedBy;
128
+ get updatedBy(): DataAstroApiTokenUpdatedByOutputReference;
129
+ protected synthesizeAttributes(): {
130
+ [name: string]: any;
131
+ };
132
+ protected synthesizeHclAttributes(): {
133
+ [name: string]: any;
134
+ };
135
+ }
@@ -0,0 +1,353 @@
1
+ // https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/api_token
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ export function dataAstroApiTokenCreatedByToTerraform(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 dataAstroApiTokenCreatedByToHclTerraform(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 DataAstroApiTokenCreatedByOutputReference 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
+ */
29
+ constructor(terraformResource, terraformAttribute) {
30
+ super(terraformResource, terraformAttribute, false);
31
+ }
32
+ get internalValue() {
33
+ let hasAnyValues = this.isEmptyObject;
34
+ const internalValueResult = {};
35
+ return hasAnyValues ? internalValueResult : undefined;
36
+ }
37
+ set internalValue(value) {
38
+ if (value === undefined) {
39
+ this.isEmptyObject = false;
40
+ }
41
+ else {
42
+ this.isEmptyObject = Object.keys(value).length === 0;
43
+ }
44
+ }
45
+ // api_token_name - computed: true, optional: false, required: false
46
+ get apiTokenName() {
47
+ return this.getStringAttribute('api_token_name');
48
+ }
49
+ // avatar_url - computed: true, optional: false, required: false
50
+ get avatarUrl() {
51
+ return this.getStringAttribute('avatar_url');
52
+ }
53
+ // full_name - computed: true, optional: false, required: false
54
+ get fullName() {
55
+ return this.getStringAttribute('full_name');
56
+ }
57
+ // id - computed: true, optional: false, required: false
58
+ get id() {
59
+ return this.getStringAttribute('id');
60
+ }
61
+ // subject_type - computed: true, optional: false, required: false
62
+ get subjectType() {
63
+ return this.getStringAttribute('subject_type');
64
+ }
65
+ // username - computed: true, optional: false, required: false
66
+ get username() {
67
+ return this.getStringAttribute('username');
68
+ }
69
+ }
70
+ export function dataAstroApiTokenRolesToTerraform(struct) {
71
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
72
+ return struct;
73
+ }
74
+ if (cdktf.isComplexElement(struct)) {
75
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
76
+ }
77
+ return {};
78
+ }
79
+ export function dataAstroApiTokenRolesToHclTerraform(struct) {
80
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
81
+ return struct;
82
+ }
83
+ if (cdktf.isComplexElement(struct)) {
84
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
85
+ }
86
+ const attrs = {};
87
+ return attrs;
88
+ }
89
+ export class DataAstroApiTokenRolesOutputReference extends cdktf.ComplexObject {
90
+ isEmptyObject = false;
91
+ /**
92
+ * @param terraformResource The parent resource
93
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
94
+ * @param complexObjectIndex the index of this item in the list
95
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
96
+ */
97
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
98
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
99
+ }
100
+ get internalValue() {
101
+ let hasAnyValues = this.isEmptyObject;
102
+ const internalValueResult = {};
103
+ return hasAnyValues ? internalValueResult : undefined;
104
+ }
105
+ set internalValue(value) {
106
+ if (value === undefined) {
107
+ this.isEmptyObject = false;
108
+ }
109
+ else {
110
+ this.isEmptyObject = Object.keys(value).length === 0;
111
+ }
112
+ }
113
+ // entity_id - computed: true, optional: false, required: false
114
+ get entityId() {
115
+ return this.getStringAttribute('entity_id');
116
+ }
117
+ // entity_type - computed: true, optional: false, required: false
118
+ get entityType() {
119
+ return this.getStringAttribute('entity_type');
120
+ }
121
+ // role - computed: true, optional: false, required: false
122
+ get role() {
123
+ return this.getStringAttribute('role');
124
+ }
125
+ }
126
+ export class DataAstroApiTokenRolesList extends cdktf.ComplexList {
127
+ terraformResource;
128
+ terraformAttribute;
129
+ wrapsSet;
130
+ /**
131
+ * @param terraformResource The parent resource
132
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
133
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
134
+ */
135
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
136
+ super(terraformResource, terraformAttribute, wrapsSet);
137
+ this.terraformResource = terraformResource;
138
+ this.terraformAttribute = terraformAttribute;
139
+ this.wrapsSet = wrapsSet;
140
+ }
141
+ /**
142
+ * @param index the index of the item to return
143
+ */
144
+ get(index) {
145
+ return new DataAstroApiTokenRolesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
146
+ }
147
+ }
148
+ export function dataAstroApiTokenUpdatedByToTerraform(struct) {
149
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
150
+ return struct;
151
+ }
152
+ if (cdktf.isComplexElement(struct)) {
153
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
154
+ }
155
+ return {};
156
+ }
157
+ export function dataAstroApiTokenUpdatedByToHclTerraform(struct) {
158
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
159
+ return struct;
160
+ }
161
+ if (cdktf.isComplexElement(struct)) {
162
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
163
+ }
164
+ const attrs = {};
165
+ return attrs;
166
+ }
167
+ export class DataAstroApiTokenUpdatedByOutputReference extends cdktf.ComplexObject {
168
+ isEmptyObject = false;
169
+ /**
170
+ * @param terraformResource The parent resource
171
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
172
+ */
173
+ constructor(terraformResource, terraformAttribute) {
174
+ super(terraformResource, terraformAttribute, false);
175
+ }
176
+ get internalValue() {
177
+ let hasAnyValues = this.isEmptyObject;
178
+ const internalValueResult = {};
179
+ return hasAnyValues ? internalValueResult : undefined;
180
+ }
181
+ set internalValue(value) {
182
+ if (value === undefined) {
183
+ this.isEmptyObject = false;
184
+ }
185
+ else {
186
+ this.isEmptyObject = Object.keys(value).length === 0;
187
+ }
188
+ }
189
+ // api_token_name - computed: true, optional: false, required: false
190
+ get apiTokenName() {
191
+ return this.getStringAttribute('api_token_name');
192
+ }
193
+ // avatar_url - computed: true, optional: false, required: false
194
+ get avatarUrl() {
195
+ return this.getStringAttribute('avatar_url');
196
+ }
197
+ // full_name - computed: true, optional: false, required: false
198
+ get fullName() {
199
+ return this.getStringAttribute('full_name');
200
+ }
201
+ // id - computed: true, optional: false, required: false
202
+ get id() {
203
+ return this.getStringAttribute('id');
204
+ }
205
+ // subject_type - computed: true, optional: false, required: false
206
+ get subjectType() {
207
+ return this.getStringAttribute('subject_type');
208
+ }
209
+ // username - computed: true, optional: false, required: false
210
+ get username() {
211
+ return this.getStringAttribute('username');
212
+ }
213
+ }
214
+ /**
215
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/api_token astro_api_token}
216
+ */
217
+ export class DataAstroApiToken extends cdktf.TerraformDataSource {
218
+ // =================
219
+ // STATIC PROPERTIES
220
+ // =================
221
+ static tfResourceType = "astro_api_token";
222
+ // ==============
223
+ // STATIC Methods
224
+ // ==============
225
+ /**
226
+ * Generates CDKTF code for importing a DataAstroApiToken resource upon running "cdktf plan <stack-name>"
227
+ * @param scope The scope in which to define this construct
228
+ * @param importToId The construct id used in the generated config for the DataAstroApiToken to import
229
+ * @param importFromId The id of the existing DataAstroApiToken that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/api_token#import import section} in the documentation of this resource for the id to use
230
+ * @param provider? Optional instance of the provider where the DataAstroApiToken to import is found
231
+ */
232
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
233
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "astro_api_token", importId: importFromId, provider });
234
+ }
235
+ // ===========
236
+ // INITIALIZER
237
+ // ===========
238
+ /**
239
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/api_token astro_api_token} Data Source
240
+ *
241
+ * @param scope The scope in which to define this construct
242
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
243
+ * @param options DataAstroApiTokenConfig
244
+ */
245
+ constructor(scope, id, config) {
246
+ super(scope, id, {
247
+ terraformResourceType: 'astro_api_token',
248
+ terraformGeneratorMetadata: {
249
+ providerName: 'astro',
250
+ providerVersion: '1.0.8',
251
+ providerVersionConstraint: '1.0.8'
252
+ },
253
+ provider: config.provider,
254
+ dependsOn: config.dependsOn,
255
+ count: config.count,
256
+ lifecycle: config.lifecycle,
257
+ provisioners: config.provisioners,
258
+ connection: config.connection,
259
+ forEach: config.forEach
260
+ });
261
+ this._id = config.id;
262
+ }
263
+ // ==========
264
+ // ATTRIBUTES
265
+ // ==========
266
+ // created_at - computed: true, optional: false, required: false
267
+ get createdAt() {
268
+ return this.getStringAttribute('created_at');
269
+ }
270
+ // created_by - computed: true, optional: false, required: false
271
+ _createdBy = new DataAstroApiTokenCreatedByOutputReference(this, "created_by");
272
+ get createdBy() {
273
+ return this._createdBy;
274
+ }
275
+ // description - computed: true, optional: false, required: false
276
+ get description() {
277
+ return this.getStringAttribute('description');
278
+ }
279
+ // end_at - computed: true, optional: false, required: false
280
+ get endAt() {
281
+ return this.getStringAttribute('end_at');
282
+ }
283
+ // expiry_period_in_days - computed: true, optional: false, required: false
284
+ get expiryPeriodInDays() {
285
+ return this.getNumberAttribute('expiry_period_in_days');
286
+ }
287
+ // id - computed: false, optional: false, required: true
288
+ _id;
289
+ get id() {
290
+ return this.getStringAttribute('id');
291
+ }
292
+ set id(value) {
293
+ this._id = value;
294
+ }
295
+ // Temporarily expose input value. Use with caution.
296
+ get idInput() {
297
+ return this._id;
298
+ }
299
+ // last_used_at - computed: true, optional: false, required: false
300
+ get lastUsedAt() {
301
+ return this.getStringAttribute('last_used_at');
302
+ }
303
+ // name - computed: true, optional: false, required: false
304
+ get name() {
305
+ return this.getStringAttribute('name');
306
+ }
307
+ // roles - computed: true, optional: false, required: false
308
+ _roles = new DataAstroApiTokenRolesList(this, "roles", true);
309
+ get roles() {
310
+ return this._roles;
311
+ }
312
+ // short_token - computed: true, optional: false, required: false
313
+ get shortToken() {
314
+ return this.getStringAttribute('short_token');
315
+ }
316
+ // start_at - computed: true, optional: false, required: false
317
+ get startAt() {
318
+ return this.getStringAttribute('start_at');
319
+ }
320
+ // type - computed: true, optional: false, required: false
321
+ get type() {
322
+ return this.getStringAttribute('type');
323
+ }
324
+ // updated_at - computed: true, optional: false, required: false
325
+ get updatedAt() {
326
+ return this.getStringAttribute('updated_at');
327
+ }
328
+ // updated_by - computed: true, optional: false, required: false
329
+ _updatedBy = new DataAstroApiTokenUpdatedByOutputReference(this, "updated_by");
330
+ get updatedBy() {
331
+ return this._updatedBy;
332
+ }
333
+ // =========
334
+ // SYNTHESIS
335
+ // =========
336
+ synthesizeAttributes() {
337
+ return {
338
+ id: cdktf.stringToTerraform(this._id),
339
+ };
340
+ }
341
+ synthesizeHclAttributes() {
342
+ const attrs = {
343
+ id: {
344
+ value: cdktf.stringToHclTerraform(this._id),
345
+ isBlock: false,
346
+ type: "simple",
347
+ storageClassType: "string",
348
+ },
349
+ };
350
+ // remove undefined attributes
351
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
352
+ }
353
+ }
@@ -0,0 +1,196 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface DataAstroApiTokensConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/api_tokens#deployment_id DataAstroApiTokens#deployment_id}
6
+ */
7
+ readonly deploymentId?: string;
8
+ /**
9
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/api_tokens#include_only_organization_tokens DataAstroApiTokens#include_only_organization_tokens}
10
+ */
11
+ readonly includeOnlyOrganizationTokens?: boolean | cdktf.IResolvable;
12
+ /**
13
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/api_tokens#workspace_id DataAstroApiTokens#workspace_id}
14
+ */
15
+ readonly workspaceId?: string;
16
+ }
17
+ export interface DataAstroApiTokensApiTokensCreatedBy {
18
+ }
19
+ export declare function dataAstroApiTokensApiTokensCreatedByToTerraform(struct?: DataAstroApiTokensApiTokensCreatedBy): any;
20
+ export declare function dataAstroApiTokensApiTokensCreatedByToHclTerraform(struct?: DataAstroApiTokensApiTokensCreatedBy): any;
21
+ export declare class DataAstroApiTokensApiTokensCreatedByOutputReference extends cdktf.ComplexObject {
22
+ private isEmptyObject;
23
+ /**
24
+ * @param terraformResource The parent resource
25
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
26
+ */
27
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
28
+ get internalValue(): DataAstroApiTokensApiTokensCreatedBy | undefined;
29
+ set internalValue(value: DataAstroApiTokensApiTokensCreatedBy | undefined);
30
+ get apiTokenName(): any;
31
+ get avatarUrl(): any;
32
+ get fullName(): any;
33
+ get id(): any;
34
+ get subjectType(): any;
35
+ get username(): any;
36
+ }
37
+ export interface DataAstroApiTokensApiTokensRoles {
38
+ }
39
+ export declare function dataAstroApiTokensApiTokensRolesToTerraform(struct?: DataAstroApiTokensApiTokensRoles): any;
40
+ export declare function dataAstroApiTokensApiTokensRolesToHclTerraform(struct?: DataAstroApiTokensApiTokensRoles): any;
41
+ export declare class DataAstroApiTokensApiTokensRolesOutputReference extends cdktf.ComplexObject {
42
+ private isEmptyObject;
43
+ /**
44
+ * @param terraformResource The parent resource
45
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
46
+ * @param complexObjectIndex the index of this item in the list
47
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
48
+ */
49
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
50
+ get internalValue(): DataAstroApiTokensApiTokensRoles | undefined;
51
+ set internalValue(value: DataAstroApiTokensApiTokensRoles | undefined);
52
+ get entityId(): any;
53
+ get entityType(): any;
54
+ get role(): any;
55
+ }
56
+ export declare class DataAstroApiTokensApiTokensRolesList extends cdktf.ComplexList {
57
+ protected terraformResource: cdktf.IInterpolatingParent;
58
+ protected terraformAttribute: string;
59
+ protected wrapsSet: boolean;
60
+ /**
61
+ * @param terraformResource The parent resource
62
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
63
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
64
+ */
65
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
66
+ /**
67
+ * @param index the index of the item to return
68
+ */
69
+ get(index: number): DataAstroApiTokensApiTokensRolesOutputReference;
70
+ }
71
+ export interface DataAstroApiTokensApiTokensUpdatedBy {
72
+ }
73
+ export declare function dataAstroApiTokensApiTokensUpdatedByToTerraform(struct?: DataAstroApiTokensApiTokensUpdatedBy): any;
74
+ export declare function dataAstroApiTokensApiTokensUpdatedByToHclTerraform(struct?: DataAstroApiTokensApiTokensUpdatedBy): any;
75
+ export declare class DataAstroApiTokensApiTokensUpdatedByOutputReference extends cdktf.ComplexObject {
76
+ private isEmptyObject;
77
+ /**
78
+ * @param terraformResource The parent resource
79
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
80
+ */
81
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
82
+ get internalValue(): DataAstroApiTokensApiTokensUpdatedBy | undefined;
83
+ set internalValue(value: DataAstroApiTokensApiTokensUpdatedBy | undefined);
84
+ get apiTokenName(): any;
85
+ get avatarUrl(): any;
86
+ get fullName(): any;
87
+ get id(): any;
88
+ get subjectType(): any;
89
+ get username(): any;
90
+ }
91
+ export interface DataAstroApiTokensApiTokens {
92
+ /**
93
+ * API Token identifier
94
+ *
95
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/api_tokens#id DataAstroApiTokens#id}
96
+ *
97
+ * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
98
+ * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
99
+ */
100
+ readonly id: string;
101
+ }
102
+ export declare function dataAstroApiTokensApiTokensToTerraform(struct?: DataAstroApiTokensApiTokens): any;
103
+ export declare function dataAstroApiTokensApiTokensToHclTerraform(struct?: DataAstroApiTokensApiTokens): any;
104
+ export declare class DataAstroApiTokensApiTokensOutputReference extends cdktf.ComplexObject {
105
+ private isEmptyObject;
106
+ /**
107
+ * @param terraformResource The parent resource
108
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
109
+ * @param complexObjectIndex the index of this item in the list
110
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
111
+ */
112
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
113
+ get internalValue(): DataAstroApiTokensApiTokens | undefined;
114
+ set internalValue(value: DataAstroApiTokensApiTokens | undefined);
115
+ get createdAt(): any;
116
+ private _createdBy;
117
+ get createdBy(): DataAstroApiTokensApiTokensCreatedByOutputReference;
118
+ get description(): any;
119
+ get endAt(): any;
120
+ get expiryPeriodInDays(): any;
121
+ private _id?;
122
+ get id(): string;
123
+ set id(value: string);
124
+ get idInput(): string;
125
+ get lastUsedAt(): any;
126
+ get name(): any;
127
+ private _roles;
128
+ get roles(): DataAstroApiTokensApiTokensRolesList;
129
+ get shortToken(): any;
130
+ get startAt(): any;
131
+ get type(): any;
132
+ get updatedAt(): any;
133
+ private _updatedBy;
134
+ get updatedBy(): DataAstroApiTokensApiTokensUpdatedByOutputReference;
135
+ }
136
+ export declare class DataAstroApiTokensApiTokensList extends cdktf.ComplexList {
137
+ protected terraformResource: cdktf.IInterpolatingParent;
138
+ protected terraformAttribute: string;
139
+ protected wrapsSet: boolean;
140
+ internalValue?: DataAstroApiTokensApiTokens[] | cdktf.IResolvable;
141
+ /**
142
+ * @param terraformResource The parent resource
143
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
144
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
145
+ */
146
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
147
+ /**
148
+ * @param index the index of the item to return
149
+ */
150
+ get(index: number): DataAstroApiTokensApiTokensOutputReference;
151
+ }
152
+ /**
153
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/api_tokens astro_api_tokens}
154
+ */
155
+ export declare class DataAstroApiTokens extends cdktf.TerraformDataSource {
156
+ static readonly tfResourceType = "astro_api_tokens";
157
+ /**
158
+ * Generates CDKTF code for importing a DataAstroApiTokens resource upon running "cdktf plan <stack-name>"
159
+ * @param scope The scope in which to define this construct
160
+ * @param importToId The construct id used in the generated config for the DataAstroApiTokens to import
161
+ * @param importFromId The id of the existing DataAstroApiTokens that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/api_tokens#import import section} in the documentation of this resource for the id to use
162
+ * @param provider? Optional instance of the provider where the DataAstroApiTokens to import is found
163
+ */
164
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
165
+ /**
166
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/api_tokens astro_api_tokens} Data Source
167
+ *
168
+ * @param scope The scope in which to define this construct
169
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
170
+ * @param options DataAstroApiTokensConfig = {}
171
+ */
172
+ constructor(scope: Construct, id: string, config?: DataAstroApiTokensConfig);
173
+ private _apiTokens;
174
+ get apiTokens(): DataAstroApiTokensApiTokensList;
175
+ private _deploymentId?;
176
+ get deploymentId(): string;
177
+ set deploymentId(value: string);
178
+ resetDeploymentId(): void;
179
+ get deploymentIdInput(): string;
180
+ private _includeOnlyOrganizationTokens?;
181
+ get includeOnlyOrganizationTokens(): boolean | cdktf.IResolvable;
182
+ set includeOnlyOrganizationTokens(value: boolean | cdktf.IResolvable);
183
+ resetIncludeOnlyOrganizationTokens(): void;
184
+ get includeOnlyOrganizationTokensInput(): any;
185
+ private _workspaceId?;
186
+ get workspaceId(): string;
187
+ set workspaceId(value: string);
188
+ resetWorkspaceId(): void;
189
+ get workspaceIdInput(): string;
190
+ protected synthesizeAttributes(): {
191
+ [name: string]: any;
192
+ };
193
+ protected synthesizeHclAttributes(): {
194
+ [name: string]: any;
195
+ };
196
+ }