@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,250 @@
1
+ // https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/workspace
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ export function dataAstroWorkspaceCreatedByToTerraform(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 dataAstroWorkspaceCreatedByToHclTerraform(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 DataAstroWorkspaceCreatedByOutputReference 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 dataAstroWorkspaceUpdatedByToTerraform(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 dataAstroWorkspaceUpdatedByToHclTerraform(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 DataAstroWorkspaceUpdatedByOutputReference 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
+ */
95
+ constructor(terraformResource, terraformAttribute) {
96
+ super(terraformResource, terraformAttribute, false);
97
+ }
98
+ get internalValue() {
99
+ let hasAnyValues = this.isEmptyObject;
100
+ const internalValueResult = {};
101
+ return hasAnyValues ? internalValueResult : undefined;
102
+ }
103
+ set internalValue(value) {
104
+ if (value === undefined) {
105
+ this.isEmptyObject = false;
106
+ }
107
+ else {
108
+ this.isEmptyObject = Object.keys(value).length === 0;
109
+ }
110
+ }
111
+ // api_token_name - computed: true, optional: false, required: false
112
+ get apiTokenName() {
113
+ return this.getStringAttribute('api_token_name');
114
+ }
115
+ // avatar_url - computed: true, optional: false, required: false
116
+ get avatarUrl() {
117
+ return this.getStringAttribute('avatar_url');
118
+ }
119
+ // full_name - computed: true, optional: false, required: false
120
+ get fullName() {
121
+ return this.getStringAttribute('full_name');
122
+ }
123
+ // id - computed: true, optional: false, required: false
124
+ get id() {
125
+ return this.getStringAttribute('id');
126
+ }
127
+ // subject_type - computed: true, optional: false, required: false
128
+ get subjectType() {
129
+ return this.getStringAttribute('subject_type');
130
+ }
131
+ // username - computed: true, optional: false, required: false
132
+ get username() {
133
+ return this.getStringAttribute('username');
134
+ }
135
+ }
136
+ /**
137
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/workspace astro_workspace}
138
+ */
139
+ export class DataAstroWorkspace extends cdktf.TerraformDataSource {
140
+ // =================
141
+ // STATIC PROPERTIES
142
+ // =================
143
+ static tfResourceType = "astro_workspace";
144
+ // ==============
145
+ // STATIC Methods
146
+ // ==============
147
+ /**
148
+ * Generates CDKTF code for importing a DataAstroWorkspace resource upon running "cdktf plan <stack-name>"
149
+ * @param scope The scope in which to define this construct
150
+ * @param importToId The construct id used in the generated config for the DataAstroWorkspace to import
151
+ * @param importFromId The id of the existing DataAstroWorkspace that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/workspace#import import section} in the documentation of this resource for the id to use
152
+ * @param provider? Optional instance of the provider where the DataAstroWorkspace to import is found
153
+ */
154
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
155
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "astro_workspace", importId: importFromId, provider });
156
+ }
157
+ // ===========
158
+ // INITIALIZER
159
+ // ===========
160
+ /**
161
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/workspace astro_workspace} Data Source
162
+ *
163
+ * @param scope The scope in which to define this construct
164
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
165
+ * @param options DataAstroWorkspaceConfig
166
+ */
167
+ constructor(scope, id, config) {
168
+ super(scope, id, {
169
+ terraformResourceType: 'astro_workspace',
170
+ terraformGeneratorMetadata: {
171
+ providerName: 'astro',
172
+ providerVersion: '1.0.8',
173
+ providerVersionConstraint: '1.0.8'
174
+ },
175
+ provider: config.provider,
176
+ dependsOn: config.dependsOn,
177
+ count: config.count,
178
+ lifecycle: config.lifecycle,
179
+ provisioners: config.provisioners,
180
+ connection: config.connection,
181
+ forEach: config.forEach
182
+ });
183
+ this._id = config.id;
184
+ }
185
+ // ==========
186
+ // ATTRIBUTES
187
+ // ==========
188
+ // cicd_enforced_default - computed: true, optional: false, required: false
189
+ get cicdEnforcedDefault() {
190
+ return this.getBooleanAttribute('cicd_enforced_default');
191
+ }
192
+ // created_at - computed: true, optional: false, required: false
193
+ get createdAt() {
194
+ return this.getStringAttribute('created_at');
195
+ }
196
+ // created_by - computed: true, optional: false, required: false
197
+ _createdBy = new DataAstroWorkspaceCreatedByOutputReference(this, "created_by");
198
+ get createdBy() {
199
+ return this._createdBy;
200
+ }
201
+ // description - computed: true, optional: false, required: false
202
+ get description() {
203
+ return this.getStringAttribute('description');
204
+ }
205
+ // id - computed: false, optional: false, required: true
206
+ _id;
207
+ get id() {
208
+ return this.getStringAttribute('id');
209
+ }
210
+ set id(value) {
211
+ this._id = value;
212
+ }
213
+ // Temporarily expose input value. Use with caution.
214
+ get idInput() {
215
+ return this._id;
216
+ }
217
+ // name - computed: true, optional: false, required: false
218
+ get name() {
219
+ return this.getStringAttribute('name');
220
+ }
221
+ // updated_at - computed: true, optional: false, required: false
222
+ get updatedAt() {
223
+ return this.getStringAttribute('updated_at');
224
+ }
225
+ // updated_by - computed: true, optional: false, required: false
226
+ _updatedBy = new DataAstroWorkspaceUpdatedByOutputReference(this, "updated_by");
227
+ get updatedBy() {
228
+ return this._updatedBy;
229
+ }
230
+ // =========
231
+ // SYNTHESIS
232
+ // =========
233
+ synthesizeAttributes() {
234
+ return {
235
+ id: cdktf.stringToTerraform(this._id),
236
+ };
237
+ }
238
+ synthesizeHclAttributes() {
239
+ const attrs = {
240
+ id: {
241
+ value: cdktf.stringToHclTerraform(this._id),
242
+ isBlock: false,
243
+ type: "simple",
244
+ storageClassType: "string",
245
+ },
246
+ };
247
+ // remove undefined attributes
248
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
249
+ }
250
+ }
@@ -0,0 +1,146 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface DataAstroWorkspacesConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/workspaces#names DataAstroWorkspaces#names}
6
+ */
7
+ readonly names?: string[];
8
+ /**
9
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/workspaces#workspace_ids DataAstroWorkspaces#workspace_ids}
10
+ */
11
+ readonly workspaceIds?: string[];
12
+ }
13
+ export interface DataAstroWorkspacesWorkspacesCreatedBy {
14
+ }
15
+ export declare function dataAstroWorkspacesWorkspacesCreatedByToTerraform(struct?: DataAstroWorkspacesWorkspacesCreatedBy): any;
16
+ export declare function dataAstroWorkspacesWorkspacesCreatedByToHclTerraform(struct?: DataAstroWorkspacesWorkspacesCreatedBy): any;
17
+ export declare class DataAstroWorkspacesWorkspacesCreatedByOutputReference extends cdktf.ComplexObject {
18
+ private isEmptyObject;
19
+ /**
20
+ * @param terraformResource The parent resource
21
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
22
+ */
23
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
24
+ get internalValue(): DataAstroWorkspacesWorkspacesCreatedBy | undefined;
25
+ set internalValue(value: DataAstroWorkspacesWorkspacesCreatedBy | undefined);
26
+ get apiTokenName(): any;
27
+ get avatarUrl(): any;
28
+ get fullName(): any;
29
+ get id(): any;
30
+ get subjectType(): any;
31
+ get username(): any;
32
+ }
33
+ export interface DataAstroWorkspacesWorkspacesUpdatedBy {
34
+ }
35
+ export declare function dataAstroWorkspacesWorkspacesUpdatedByToTerraform(struct?: DataAstroWorkspacesWorkspacesUpdatedBy): any;
36
+ export declare function dataAstroWorkspacesWorkspacesUpdatedByToHclTerraform(struct?: DataAstroWorkspacesWorkspacesUpdatedBy): any;
37
+ export declare class DataAstroWorkspacesWorkspacesUpdatedByOutputReference extends cdktf.ComplexObject {
38
+ private isEmptyObject;
39
+ /**
40
+ * @param terraformResource The parent resource
41
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
42
+ */
43
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
44
+ get internalValue(): DataAstroWorkspacesWorkspacesUpdatedBy | undefined;
45
+ set internalValue(value: DataAstroWorkspacesWorkspacesUpdatedBy | undefined);
46
+ get apiTokenName(): any;
47
+ get avatarUrl(): any;
48
+ get fullName(): any;
49
+ get id(): any;
50
+ get subjectType(): any;
51
+ get username(): any;
52
+ }
53
+ export interface DataAstroWorkspacesWorkspaces {
54
+ /**
55
+ * Workspace identifier
56
+ *
57
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/workspaces#id DataAstroWorkspaces#id}
58
+ *
59
+ * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
60
+ * 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.
61
+ */
62
+ readonly id: string;
63
+ }
64
+ export declare function dataAstroWorkspacesWorkspacesToTerraform(struct?: DataAstroWorkspacesWorkspaces): any;
65
+ export declare function dataAstroWorkspacesWorkspacesToHclTerraform(struct?: DataAstroWorkspacesWorkspaces): any;
66
+ export declare class DataAstroWorkspacesWorkspacesOutputReference extends cdktf.ComplexObject {
67
+ private isEmptyObject;
68
+ /**
69
+ * @param terraformResource The parent resource
70
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
71
+ * @param complexObjectIndex the index of this item in the list
72
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
73
+ */
74
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
75
+ get internalValue(): DataAstroWorkspacesWorkspaces | undefined;
76
+ set internalValue(value: DataAstroWorkspacesWorkspaces | undefined);
77
+ get cicdEnforcedDefault(): any;
78
+ get createdAt(): any;
79
+ private _createdBy;
80
+ get createdBy(): DataAstroWorkspacesWorkspacesCreatedByOutputReference;
81
+ get description(): any;
82
+ private _id?;
83
+ get id(): string;
84
+ set id(value: string);
85
+ get idInput(): string;
86
+ get name(): any;
87
+ get updatedAt(): any;
88
+ private _updatedBy;
89
+ get updatedBy(): DataAstroWorkspacesWorkspacesUpdatedByOutputReference;
90
+ }
91
+ export declare class DataAstroWorkspacesWorkspacesList extends cdktf.ComplexList {
92
+ protected terraformResource: cdktf.IInterpolatingParent;
93
+ protected terraformAttribute: string;
94
+ protected wrapsSet: boolean;
95
+ internalValue?: DataAstroWorkspacesWorkspaces[] | cdktf.IResolvable;
96
+ /**
97
+ * @param terraformResource The parent resource
98
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
99
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
100
+ */
101
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
102
+ /**
103
+ * @param index the index of the item to return
104
+ */
105
+ get(index: number): DataAstroWorkspacesWorkspacesOutputReference;
106
+ }
107
+ /**
108
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/workspaces astro_workspaces}
109
+ */
110
+ export declare class DataAstroWorkspaces extends cdktf.TerraformDataSource {
111
+ static readonly tfResourceType = "astro_workspaces";
112
+ /**
113
+ * Generates CDKTF code for importing a DataAstroWorkspaces resource upon running "cdktf plan <stack-name>"
114
+ * @param scope The scope in which to define this construct
115
+ * @param importToId The construct id used in the generated config for the DataAstroWorkspaces to import
116
+ * @param importFromId The id of the existing DataAstroWorkspaces that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/workspaces#import import section} in the documentation of this resource for the id to use
117
+ * @param provider? Optional instance of the provider where the DataAstroWorkspaces to import is found
118
+ */
119
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
120
+ /**
121
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/workspaces astro_workspaces} Data Source
122
+ *
123
+ * @param scope The scope in which to define this construct
124
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
125
+ * @param options DataAstroWorkspacesConfig = {}
126
+ */
127
+ constructor(scope: Construct, id: string, config?: DataAstroWorkspacesConfig);
128
+ private _names?;
129
+ get names(): string[];
130
+ set names(value: string[]);
131
+ resetNames(): void;
132
+ get namesInput(): string[];
133
+ private _workspaceIds?;
134
+ get workspaceIds(): string[];
135
+ set workspaceIds(value: string[]);
136
+ resetWorkspaceIds(): void;
137
+ get workspaceIdsInput(): string[];
138
+ private _workspaces;
139
+ get workspaces(): DataAstroWorkspacesWorkspacesList;
140
+ protected synthesizeAttributes(): {
141
+ [name: string]: any;
142
+ };
143
+ protected synthesizeHclAttributes(): {
144
+ [name: string]: any;
145
+ };
146
+ }