@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,282 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/workspace
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
export function workspaceCreatedByToTerraform(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 workspaceCreatedByToHclTerraform(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 WorkspaceCreatedByOutputReference 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 workspaceUpdatedByToTerraform(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 workspaceUpdatedByToHclTerraform(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 WorkspaceUpdatedByOutputReference 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/resources/workspace astro_workspace}
|
|
138
|
+
*/
|
|
139
|
+
export class Workspace extends cdktf.TerraformResource {
|
|
140
|
+
// =================
|
|
141
|
+
// STATIC PROPERTIES
|
|
142
|
+
// =================
|
|
143
|
+
static tfResourceType = "astro_workspace";
|
|
144
|
+
// ==============
|
|
145
|
+
// STATIC Methods
|
|
146
|
+
// ==============
|
|
147
|
+
/**
|
|
148
|
+
* Generates CDKTF code for importing a Workspace 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 Workspace to import
|
|
151
|
+
* @param importFromId The id of the existing Workspace that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/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 Workspace 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/resources/workspace astro_workspace} Resource
|
|
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 WorkspaceConfig
|
|
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._cicdEnforcedDefault = config.cicdEnforcedDefault;
|
|
184
|
+
this._description = config.description;
|
|
185
|
+
this._name = config.name;
|
|
186
|
+
}
|
|
187
|
+
// ==========
|
|
188
|
+
// ATTRIBUTES
|
|
189
|
+
// ==========
|
|
190
|
+
// cicd_enforced_default - computed: false, optional: false, required: true
|
|
191
|
+
_cicdEnforcedDefault;
|
|
192
|
+
get cicdEnforcedDefault() {
|
|
193
|
+
return this.getBooleanAttribute('cicd_enforced_default');
|
|
194
|
+
}
|
|
195
|
+
set cicdEnforcedDefault(value) {
|
|
196
|
+
this._cicdEnforcedDefault = value;
|
|
197
|
+
}
|
|
198
|
+
// Temporarily expose input value. Use with caution.
|
|
199
|
+
get cicdEnforcedDefaultInput() {
|
|
200
|
+
return this._cicdEnforcedDefault;
|
|
201
|
+
}
|
|
202
|
+
// created_at - computed: true, optional: false, required: false
|
|
203
|
+
get createdAt() {
|
|
204
|
+
return this.getStringAttribute('created_at');
|
|
205
|
+
}
|
|
206
|
+
// created_by - computed: true, optional: false, required: false
|
|
207
|
+
_createdBy = new WorkspaceCreatedByOutputReference(this, "created_by");
|
|
208
|
+
get createdBy() {
|
|
209
|
+
return this._createdBy;
|
|
210
|
+
}
|
|
211
|
+
// description - computed: false, optional: false, required: true
|
|
212
|
+
_description;
|
|
213
|
+
get description() {
|
|
214
|
+
return this.getStringAttribute('description');
|
|
215
|
+
}
|
|
216
|
+
set description(value) {
|
|
217
|
+
this._description = value;
|
|
218
|
+
}
|
|
219
|
+
// Temporarily expose input value. Use with caution.
|
|
220
|
+
get descriptionInput() {
|
|
221
|
+
return this._description;
|
|
222
|
+
}
|
|
223
|
+
// id - computed: true, optional: false, required: false
|
|
224
|
+
get id() {
|
|
225
|
+
return this.getStringAttribute('id');
|
|
226
|
+
}
|
|
227
|
+
// name - computed: false, optional: false, required: true
|
|
228
|
+
_name;
|
|
229
|
+
get name() {
|
|
230
|
+
return this.getStringAttribute('name');
|
|
231
|
+
}
|
|
232
|
+
set name(value) {
|
|
233
|
+
this._name = value;
|
|
234
|
+
}
|
|
235
|
+
// Temporarily expose input value. Use with caution.
|
|
236
|
+
get nameInput() {
|
|
237
|
+
return this._name;
|
|
238
|
+
}
|
|
239
|
+
// updated_at - computed: true, optional: false, required: false
|
|
240
|
+
get updatedAt() {
|
|
241
|
+
return this.getStringAttribute('updated_at');
|
|
242
|
+
}
|
|
243
|
+
// updated_by - computed: true, optional: false, required: false
|
|
244
|
+
_updatedBy = new WorkspaceUpdatedByOutputReference(this, "updated_by");
|
|
245
|
+
get updatedBy() {
|
|
246
|
+
return this._updatedBy;
|
|
247
|
+
}
|
|
248
|
+
// =========
|
|
249
|
+
// SYNTHESIS
|
|
250
|
+
// =========
|
|
251
|
+
synthesizeAttributes() {
|
|
252
|
+
return {
|
|
253
|
+
cicd_enforced_default: cdktf.booleanToTerraform(this._cicdEnforcedDefault),
|
|
254
|
+
description: cdktf.stringToTerraform(this._description),
|
|
255
|
+
name: cdktf.stringToTerraform(this._name),
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
synthesizeHclAttributes() {
|
|
259
|
+
const attrs = {
|
|
260
|
+
cicd_enforced_default: {
|
|
261
|
+
value: cdktf.booleanToHclTerraform(this._cicdEnforcedDefault),
|
|
262
|
+
isBlock: false,
|
|
263
|
+
type: "simple",
|
|
264
|
+
storageClassType: "boolean",
|
|
265
|
+
},
|
|
266
|
+
description: {
|
|
267
|
+
value: cdktf.stringToHclTerraform(this._description),
|
|
268
|
+
isBlock: false,
|
|
269
|
+
type: "simple",
|
|
270
|
+
storageClassType: "string",
|
|
271
|
+
},
|
|
272
|
+
name: {
|
|
273
|
+
value: cdktf.stringToHclTerraform(this._name),
|
|
274
|
+
isBlock: false,
|
|
275
|
+
type: "simple",
|
|
276
|
+
storageClassType: "string",
|
|
277
|
+
},
|
|
278
|
+
};
|
|
279
|
+
// remove undefined attributes
|
|
280
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
281
|
+
}
|
|
282
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cdktf-providers/astronomer-astro",
|
|
3
|
+
"version": "1.0.8",
|
|
4
|
+
"description": "Prebuilt astronomer/astro Provider for Terraform CDK (cdktf)",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/shunueda/cdktf-providers.git",
|
|
8
|
+
"directory": "gen/astronomer/astro/typescript"
|
|
9
|
+
},
|
|
10
|
+
"license": "MPL-2.0",
|
|
11
|
+
"type": "module",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"require": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./lazy-index": {
|
|
19
|
+
"import": "./dist/lazy-index.js",
|
|
20
|
+
"types": "./dist/lazy-index.d.ts",
|
|
21
|
+
"require": "./dist/lazy-index.js"
|
|
22
|
+
},
|
|
23
|
+
"./*": {
|
|
24
|
+
"import": "./dist/*/index.js",
|
|
25
|
+
"types": "./dist/*/index.d.ts",
|
|
26
|
+
"require": "./dist/*/index.js"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist"
|
|
31
|
+
],
|
|
32
|
+
"keywords": [
|
|
33
|
+
"cdk",
|
|
34
|
+
"cdktf",
|
|
35
|
+
"provider",
|
|
36
|
+
"terraform",
|
|
37
|
+
"astronomer",
|
|
38
|
+
"astro"
|
|
39
|
+
],
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"cdktf": "^0.21.0",
|
|
42
|
+
"constructs": "^10.4.2"
|
|
43
|
+
},
|
|
44
|
+
"cdktf": {
|
|
45
|
+
"isDeprecated": false,
|
|
46
|
+
"provider": {
|
|
47
|
+
"name": "registry.terraform.io/astronomer/astro",
|
|
48
|
+
"version": "1.0.8"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|