@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,151 @@
1
+ // https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ /**
5
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs astro}
6
+ */
7
+ export class AstroProvider extends cdktf.TerraformProvider {
8
+ // =================
9
+ // STATIC PROPERTIES
10
+ // =================
11
+ static tfResourceType = "astro";
12
+ // ==============
13
+ // STATIC Methods
14
+ // ==============
15
+ /**
16
+ * Generates CDKTF code for importing a AstroProvider resource upon running "cdktf plan <stack-name>"
17
+ * @param scope The scope in which to define this construct
18
+ * @param importToId The construct id used in the generated config for the AstroProvider to import
19
+ * @param importFromId The id of the existing AstroProvider that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs#import import section} in the documentation of this resource for the id to use
20
+ * @param provider? Optional instance of the provider where the AstroProvider to import is found
21
+ */
22
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
23
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "astro", importId: importFromId, provider });
24
+ }
25
+ // ===========
26
+ // INITIALIZER
27
+ // ===========
28
+ /**
29
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs astro} Resource
30
+ *
31
+ * @param scope The scope in which to define this construct
32
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
33
+ * @param options AstroProviderConfig
34
+ */
35
+ constructor(scope, id, config) {
36
+ super(scope, id, {
37
+ terraformResourceType: 'astro',
38
+ terraformGeneratorMetadata: {
39
+ providerName: 'astro',
40
+ providerVersion: '1.0.8',
41
+ providerVersionConstraint: '1.0.8'
42
+ },
43
+ terraformProviderSource: 'astronomer/astro'
44
+ });
45
+ this._host = config.host;
46
+ this._organizationId = config.organizationId;
47
+ this._token = config.token;
48
+ this._alias = config.alias;
49
+ }
50
+ // ==========
51
+ // ATTRIBUTES
52
+ // ==========
53
+ // host - computed: false, optional: true, required: false
54
+ _host;
55
+ get host() {
56
+ return this._host;
57
+ }
58
+ set host(value) {
59
+ this._host = value;
60
+ }
61
+ resetHost() {
62
+ this._host = undefined;
63
+ }
64
+ // Temporarily expose input value. Use with caution.
65
+ get hostInput() {
66
+ return this._host;
67
+ }
68
+ // organization_id - computed: false, optional: false, required: true
69
+ _organizationId;
70
+ get organizationId() {
71
+ return this._organizationId;
72
+ }
73
+ set organizationId(value) {
74
+ this._organizationId = value;
75
+ }
76
+ // Temporarily expose input value. Use with caution.
77
+ get organizationIdInput() {
78
+ return this._organizationId;
79
+ }
80
+ // token - computed: false, optional: true, required: false
81
+ _token;
82
+ get token() {
83
+ return this._token;
84
+ }
85
+ set token(value) {
86
+ this._token = value;
87
+ }
88
+ resetToken() {
89
+ this._token = undefined;
90
+ }
91
+ // Temporarily expose input value. Use with caution.
92
+ get tokenInput() {
93
+ return this._token;
94
+ }
95
+ // alias - computed: false, optional: true, required: false
96
+ _alias;
97
+ get alias() {
98
+ return this._alias;
99
+ }
100
+ set alias(value) {
101
+ this._alias = value;
102
+ }
103
+ resetAlias() {
104
+ this._alias = undefined;
105
+ }
106
+ // Temporarily expose input value. Use with caution.
107
+ get aliasInput() {
108
+ return this._alias;
109
+ }
110
+ // =========
111
+ // SYNTHESIS
112
+ // =========
113
+ synthesizeAttributes() {
114
+ return {
115
+ host: cdktf.stringToTerraform(this._host),
116
+ organization_id: cdktf.stringToTerraform(this._organizationId),
117
+ token: cdktf.stringToTerraform(this._token),
118
+ alias: cdktf.stringToTerraform(this._alias),
119
+ };
120
+ }
121
+ synthesizeHclAttributes() {
122
+ const attrs = {
123
+ host: {
124
+ value: cdktf.stringToHclTerraform(this._host),
125
+ isBlock: false,
126
+ type: "simple",
127
+ storageClassType: "string",
128
+ },
129
+ organization_id: {
130
+ value: cdktf.stringToHclTerraform(this._organizationId),
131
+ isBlock: false,
132
+ type: "simple",
133
+ storageClassType: "string",
134
+ },
135
+ token: {
136
+ value: cdktf.stringToHclTerraform(this._token),
137
+ isBlock: false,
138
+ type: "simple",
139
+ storageClassType: "string",
140
+ },
141
+ alias: {
142
+ value: cdktf.stringToHclTerraform(this._alias),
143
+ isBlock: false,
144
+ type: "simple",
145
+ storageClassType: "string",
146
+ },
147
+ };
148
+ // remove undefined attributes
149
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
150
+ }
151
+ }
@@ -0,0 +1,251 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface TeamConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * The roles to assign to the Deployments
6
+ *
7
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team#deployment_roles Team#deployment_roles}
8
+ */
9
+ readonly deploymentRoles?: TeamDeploymentRoles[] | cdktf.IResolvable;
10
+ /**
11
+ * Team description
12
+ *
13
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team#description Team#description}
14
+ */
15
+ readonly description?: string;
16
+ /**
17
+ * The IDs of the users to add to the Team
18
+ *
19
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team#member_ids Team#member_ids}
20
+ */
21
+ readonly memberIds?: string[];
22
+ /**
23
+ * Team name
24
+ *
25
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team#name Team#name}
26
+ */
27
+ readonly name: string;
28
+ /**
29
+ * The role to assign to the Organization
30
+ *
31
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team#organization_role Team#organization_role}
32
+ */
33
+ readonly organizationRole: string;
34
+ /**
35
+ * The roles to assign to the Workspaces
36
+ *
37
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team#workspace_roles Team#workspace_roles}
38
+ */
39
+ readonly workspaceRoles?: TeamWorkspaceRoles[] | cdktf.IResolvable;
40
+ }
41
+ export interface TeamCreatedBy {
42
+ }
43
+ export declare function teamCreatedByToTerraform(struct?: TeamCreatedBy): any;
44
+ export declare function teamCreatedByToHclTerraform(struct?: TeamCreatedBy): any;
45
+ export declare class TeamCreatedByOutputReference extends cdktf.ComplexObject {
46
+ private isEmptyObject;
47
+ /**
48
+ * @param terraformResource The parent resource
49
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
50
+ */
51
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
52
+ get internalValue(): TeamCreatedBy | undefined;
53
+ set internalValue(value: TeamCreatedBy | undefined);
54
+ get apiTokenName(): any;
55
+ get avatarUrl(): any;
56
+ get fullName(): any;
57
+ get id(): any;
58
+ get subjectType(): any;
59
+ get username(): any;
60
+ }
61
+ export interface TeamDeploymentRoles {
62
+ /**
63
+ * The ID of the deployment to assign the role to
64
+ *
65
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team#deployment_id Team#deployment_id}
66
+ */
67
+ readonly deploymentId: string;
68
+ /**
69
+ * The role to assign to the deployment
70
+ *
71
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team#role Team#role}
72
+ */
73
+ readonly role: string;
74
+ }
75
+ export declare function teamDeploymentRolesToTerraform(struct?: TeamDeploymentRoles | cdktf.IResolvable): any;
76
+ export declare function teamDeploymentRolesToHclTerraform(struct?: TeamDeploymentRoles | cdktf.IResolvable): any;
77
+ export declare class TeamDeploymentRolesOutputReference extends cdktf.ComplexObject {
78
+ private isEmptyObject;
79
+ private resolvableValue?;
80
+ /**
81
+ * @param terraformResource The parent resource
82
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
83
+ * @param complexObjectIndex the index of this item in the list
84
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
85
+ */
86
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
87
+ get internalValue(): TeamDeploymentRoles | cdktf.IResolvable | undefined;
88
+ set internalValue(value: TeamDeploymentRoles | cdktf.IResolvable | undefined);
89
+ private _deploymentId?;
90
+ get deploymentId(): string;
91
+ set deploymentId(value: string);
92
+ get deploymentIdInput(): string;
93
+ private _role?;
94
+ get role(): string;
95
+ set role(value: string);
96
+ get roleInput(): string;
97
+ }
98
+ export declare class TeamDeploymentRolesList extends cdktf.ComplexList {
99
+ protected terraformResource: cdktf.IInterpolatingParent;
100
+ protected terraformAttribute: string;
101
+ protected wrapsSet: boolean;
102
+ internalValue?: TeamDeploymentRoles[] | cdktf.IResolvable;
103
+ /**
104
+ * @param terraformResource The parent resource
105
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
106
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
107
+ */
108
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
109
+ /**
110
+ * @param index the index of the item to return
111
+ */
112
+ get(index: number): TeamDeploymentRolesOutputReference;
113
+ }
114
+ export interface TeamUpdatedBy {
115
+ }
116
+ export declare function teamUpdatedByToTerraform(struct?: TeamUpdatedBy): any;
117
+ export declare function teamUpdatedByToHclTerraform(struct?: TeamUpdatedBy): any;
118
+ export declare class TeamUpdatedByOutputReference extends cdktf.ComplexObject {
119
+ private isEmptyObject;
120
+ /**
121
+ * @param terraformResource The parent resource
122
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
123
+ */
124
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
125
+ get internalValue(): TeamUpdatedBy | undefined;
126
+ set internalValue(value: TeamUpdatedBy | undefined);
127
+ get apiTokenName(): any;
128
+ get avatarUrl(): any;
129
+ get fullName(): any;
130
+ get id(): any;
131
+ get subjectType(): any;
132
+ get username(): any;
133
+ }
134
+ export interface TeamWorkspaceRoles {
135
+ /**
136
+ * The role to assign to the workspace
137
+ *
138
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team#role Team#role}
139
+ */
140
+ readonly role: string;
141
+ /**
142
+ * The ID of the workspace to assign the role to
143
+ *
144
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team#workspace_id Team#workspace_id}
145
+ */
146
+ readonly workspaceId: string;
147
+ }
148
+ export declare function teamWorkspaceRolesToTerraform(struct?: TeamWorkspaceRoles | cdktf.IResolvable): any;
149
+ export declare function teamWorkspaceRolesToHclTerraform(struct?: TeamWorkspaceRoles | cdktf.IResolvable): any;
150
+ export declare class TeamWorkspaceRolesOutputReference extends cdktf.ComplexObject {
151
+ private isEmptyObject;
152
+ private resolvableValue?;
153
+ /**
154
+ * @param terraformResource The parent resource
155
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
156
+ * @param complexObjectIndex the index of this item in the list
157
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
158
+ */
159
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
160
+ get internalValue(): TeamWorkspaceRoles | cdktf.IResolvable | undefined;
161
+ set internalValue(value: TeamWorkspaceRoles | cdktf.IResolvable | undefined);
162
+ private _role?;
163
+ get role(): string;
164
+ set role(value: string);
165
+ get roleInput(): string;
166
+ private _workspaceId?;
167
+ get workspaceId(): string;
168
+ set workspaceId(value: string);
169
+ get workspaceIdInput(): string;
170
+ }
171
+ export declare class TeamWorkspaceRolesList extends cdktf.ComplexList {
172
+ protected terraformResource: cdktf.IInterpolatingParent;
173
+ protected terraformAttribute: string;
174
+ protected wrapsSet: boolean;
175
+ internalValue?: TeamWorkspaceRoles[] | cdktf.IResolvable;
176
+ /**
177
+ * @param terraformResource The parent resource
178
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
179
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
180
+ */
181
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
182
+ /**
183
+ * @param index the index of the item to return
184
+ */
185
+ get(index: number): TeamWorkspaceRolesOutputReference;
186
+ }
187
+ /**
188
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team astro_team}
189
+ */
190
+ export declare class Team extends cdktf.TerraformResource {
191
+ static readonly tfResourceType = "astro_team";
192
+ /**
193
+ * Generates CDKTF code for importing a Team resource upon running "cdktf plan <stack-name>"
194
+ * @param scope The scope in which to define this construct
195
+ * @param importToId The construct id used in the generated config for the Team to import
196
+ * @param importFromId The id of the existing Team that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team#import import section} in the documentation of this resource for the id to use
197
+ * @param provider? Optional instance of the provider where the Team to import is found
198
+ */
199
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
200
+ /**
201
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team astro_team} Resource
202
+ *
203
+ * @param scope The scope in which to define this construct
204
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
205
+ * @param options TeamConfig
206
+ */
207
+ constructor(scope: Construct, id: string, config: TeamConfig);
208
+ get createdAt(): any;
209
+ private _createdBy;
210
+ get createdBy(): TeamCreatedByOutputReference;
211
+ private _deploymentRoles;
212
+ get deploymentRoles(): TeamDeploymentRolesList;
213
+ putDeploymentRoles(value: TeamDeploymentRoles[] | cdktf.IResolvable): void;
214
+ resetDeploymentRoles(): void;
215
+ get deploymentRolesInput(): any;
216
+ private _description?;
217
+ get description(): string;
218
+ set description(value: string);
219
+ resetDescription(): void;
220
+ get descriptionInput(): string;
221
+ get id(): any;
222
+ get isIdpManaged(): any;
223
+ private _memberIds?;
224
+ get memberIds(): string[];
225
+ set memberIds(value: string[]);
226
+ resetMemberIds(): void;
227
+ get memberIdsInput(): string[];
228
+ private _name?;
229
+ get name(): string;
230
+ set name(value: string);
231
+ get nameInput(): string;
232
+ private _organizationRole?;
233
+ get organizationRole(): string;
234
+ set organizationRole(value: string);
235
+ get organizationRoleInput(): string;
236
+ get rolesCount(): any;
237
+ get updatedAt(): any;
238
+ private _updatedBy;
239
+ get updatedBy(): TeamUpdatedByOutputReference;
240
+ private _workspaceRoles;
241
+ get workspaceRoles(): TeamWorkspaceRolesList;
242
+ putWorkspaceRoles(value: TeamWorkspaceRoles[] | cdktf.IResolvable): void;
243
+ resetWorkspaceRoles(): void;
244
+ get workspaceRolesInput(): any;
245
+ protected synthesizeAttributes(): {
246
+ [name: string]: any;
247
+ };
248
+ protected synthesizeHclAttributes(): {
249
+ [name: string]: any;
250
+ };
251
+ }