@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,122 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface DataAstroUserConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* User identifier
|
|
6
|
+
*
|
|
7
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/user#id DataAstroUser#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 DataAstroUserDeploymentRoles {
|
|
15
|
+
}
|
|
16
|
+
export declare function dataAstroUserDeploymentRolesToTerraform(struct?: DataAstroUserDeploymentRoles): any;
|
|
17
|
+
export declare function dataAstroUserDeploymentRolesToHclTerraform(struct?: DataAstroUserDeploymentRoles): any;
|
|
18
|
+
export declare class DataAstroUserDeploymentRolesOutputReference 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
|
+
* @param complexObjectIndex the index of this item in the list
|
|
24
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
25
|
+
*/
|
|
26
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
|
|
27
|
+
get internalValue(): DataAstroUserDeploymentRoles | undefined;
|
|
28
|
+
set internalValue(value: DataAstroUserDeploymentRoles | undefined);
|
|
29
|
+
get deploymentId(): any;
|
|
30
|
+
get role(): any;
|
|
31
|
+
}
|
|
32
|
+
export declare class DataAstroUserDeploymentRolesList extends cdktf.ComplexList {
|
|
33
|
+
protected terraformResource: cdktf.IInterpolatingParent;
|
|
34
|
+
protected terraformAttribute: string;
|
|
35
|
+
protected wrapsSet: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* @param terraformResource The parent resource
|
|
38
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
39
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
40
|
+
*/
|
|
41
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
|
|
42
|
+
/**
|
|
43
|
+
* @param index the index of the item to return
|
|
44
|
+
*/
|
|
45
|
+
get(index: number): DataAstroUserDeploymentRolesOutputReference;
|
|
46
|
+
}
|
|
47
|
+
export interface DataAstroUserWorkspaceRoles {
|
|
48
|
+
}
|
|
49
|
+
export declare function dataAstroUserWorkspaceRolesToTerraform(struct?: DataAstroUserWorkspaceRoles): any;
|
|
50
|
+
export declare function dataAstroUserWorkspaceRolesToHclTerraform(struct?: DataAstroUserWorkspaceRoles): any;
|
|
51
|
+
export declare class DataAstroUserWorkspaceRolesOutputReference extends cdktf.ComplexObject {
|
|
52
|
+
private isEmptyObject;
|
|
53
|
+
/**
|
|
54
|
+
* @param terraformResource The parent resource
|
|
55
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
56
|
+
* @param complexObjectIndex the index of this item in the list
|
|
57
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
58
|
+
*/
|
|
59
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
|
|
60
|
+
get internalValue(): DataAstroUserWorkspaceRoles | undefined;
|
|
61
|
+
set internalValue(value: DataAstroUserWorkspaceRoles | undefined);
|
|
62
|
+
get role(): any;
|
|
63
|
+
get workspaceId(): any;
|
|
64
|
+
}
|
|
65
|
+
export declare class DataAstroUserWorkspaceRolesList extends cdktf.ComplexList {
|
|
66
|
+
protected terraformResource: cdktf.IInterpolatingParent;
|
|
67
|
+
protected terraformAttribute: string;
|
|
68
|
+
protected wrapsSet: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* @param terraformResource The parent resource
|
|
71
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
72
|
+
* @param wrapsSet 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, wrapsSet: boolean);
|
|
75
|
+
/**
|
|
76
|
+
* @param index the index of the item to return
|
|
77
|
+
*/
|
|
78
|
+
get(index: number): DataAstroUserWorkspaceRolesOutputReference;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/user astro_user}
|
|
82
|
+
*/
|
|
83
|
+
export declare class DataAstroUser extends cdktf.TerraformDataSource {
|
|
84
|
+
static readonly tfResourceType = "astro_user";
|
|
85
|
+
/**
|
|
86
|
+
* Generates CDKTF code for importing a DataAstroUser resource upon running "cdktf plan <stack-name>"
|
|
87
|
+
* @param scope The scope in which to define this construct
|
|
88
|
+
* @param importToId The construct id used in the generated config for the DataAstroUser to import
|
|
89
|
+
* @param importFromId The id of the existing DataAstroUser that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/user#import import section} in the documentation of this resource for the id to use
|
|
90
|
+
* @param provider? Optional instance of the provider where the DataAstroUser to import is found
|
|
91
|
+
*/
|
|
92
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
|
|
93
|
+
/**
|
|
94
|
+
* Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/user astro_user} Data Source
|
|
95
|
+
*
|
|
96
|
+
* @param scope The scope in which to define this construct
|
|
97
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
98
|
+
* @param options DataAstroUserConfig
|
|
99
|
+
*/
|
|
100
|
+
constructor(scope: Construct, id: string, config: DataAstroUserConfig);
|
|
101
|
+
get avatarUrl(): any;
|
|
102
|
+
get createdAt(): any;
|
|
103
|
+
private _deploymentRoles;
|
|
104
|
+
get deploymentRoles(): DataAstroUserDeploymentRolesList;
|
|
105
|
+
get fullName(): any;
|
|
106
|
+
private _id?;
|
|
107
|
+
get id(): string;
|
|
108
|
+
set id(value: string);
|
|
109
|
+
get idInput(): string;
|
|
110
|
+
get organizationRole(): any;
|
|
111
|
+
get status(): any;
|
|
112
|
+
get updatedAt(): any;
|
|
113
|
+
get username(): any;
|
|
114
|
+
private _workspaceRoles;
|
|
115
|
+
get workspaceRoles(): DataAstroUserWorkspaceRolesList;
|
|
116
|
+
protected synthesizeAttributes(): {
|
|
117
|
+
[name: string]: any;
|
|
118
|
+
};
|
|
119
|
+
protected synthesizeHclAttributes(): {
|
|
120
|
+
[name: string]: any;
|
|
121
|
+
};
|
|
122
|
+
}
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/user
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
export function dataAstroUserDeploymentRolesToTerraform(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 dataAstroUserDeploymentRolesToHclTerraform(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 DataAstroUserDeploymentRolesOutputReference extends cdktf.ComplexObject {
|
|
24
|
+
isEmptyObject = false;
|
|
25
|
+
/**
|
|
26
|
+
* @param terraformResource The parent resource
|
|
27
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
28
|
+
* @param complexObjectIndex the index of this item in the list
|
|
29
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
30
|
+
*/
|
|
31
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
32
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
33
|
+
}
|
|
34
|
+
get internalValue() {
|
|
35
|
+
let hasAnyValues = this.isEmptyObject;
|
|
36
|
+
const internalValueResult = {};
|
|
37
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
38
|
+
}
|
|
39
|
+
set internalValue(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
this.isEmptyObject = false;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
// deployment_id - computed: true, optional: false, required: false
|
|
48
|
+
get deploymentId() {
|
|
49
|
+
return this.getStringAttribute('deployment_id');
|
|
50
|
+
}
|
|
51
|
+
// role - computed: true, optional: false, required: false
|
|
52
|
+
get role() {
|
|
53
|
+
return this.getStringAttribute('role');
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export class DataAstroUserDeploymentRolesList extends cdktf.ComplexList {
|
|
57
|
+
terraformResource;
|
|
58
|
+
terraformAttribute;
|
|
59
|
+
wrapsSet;
|
|
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, terraformAttribute, wrapsSet) {
|
|
66
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
67
|
+
this.terraformResource = terraformResource;
|
|
68
|
+
this.terraformAttribute = terraformAttribute;
|
|
69
|
+
this.wrapsSet = wrapsSet;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @param index the index of the item to return
|
|
73
|
+
*/
|
|
74
|
+
get(index) {
|
|
75
|
+
return new DataAstroUserDeploymentRolesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
export function dataAstroUserWorkspaceRolesToTerraform(struct) {
|
|
79
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
80
|
+
return struct;
|
|
81
|
+
}
|
|
82
|
+
if (cdktf.isComplexElement(struct)) {
|
|
83
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
84
|
+
}
|
|
85
|
+
return {};
|
|
86
|
+
}
|
|
87
|
+
export function dataAstroUserWorkspaceRolesToHclTerraform(struct) {
|
|
88
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
89
|
+
return struct;
|
|
90
|
+
}
|
|
91
|
+
if (cdktf.isComplexElement(struct)) {
|
|
92
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
93
|
+
}
|
|
94
|
+
const attrs = {};
|
|
95
|
+
return attrs;
|
|
96
|
+
}
|
|
97
|
+
export class DataAstroUserWorkspaceRolesOutputReference extends cdktf.ComplexObject {
|
|
98
|
+
isEmptyObject = false;
|
|
99
|
+
/**
|
|
100
|
+
* @param terraformResource The parent resource
|
|
101
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
102
|
+
* @param complexObjectIndex the index of this item in the list
|
|
103
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
104
|
+
*/
|
|
105
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
106
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
107
|
+
}
|
|
108
|
+
get internalValue() {
|
|
109
|
+
let hasAnyValues = this.isEmptyObject;
|
|
110
|
+
const internalValueResult = {};
|
|
111
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
112
|
+
}
|
|
113
|
+
set internalValue(value) {
|
|
114
|
+
if (value === undefined) {
|
|
115
|
+
this.isEmptyObject = false;
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
// role - computed: true, optional: false, required: false
|
|
122
|
+
get role() {
|
|
123
|
+
return this.getStringAttribute('role');
|
|
124
|
+
}
|
|
125
|
+
// workspace_id - computed: true, optional: false, required: false
|
|
126
|
+
get workspaceId() {
|
|
127
|
+
return this.getStringAttribute('workspace_id');
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
export class DataAstroUserWorkspaceRolesList extends cdktf.ComplexList {
|
|
131
|
+
terraformResource;
|
|
132
|
+
terraformAttribute;
|
|
133
|
+
wrapsSet;
|
|
134
|
+
/**
|
|
135
|
+
* @param terraformResource The parent resource
|
|
136
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
137
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
138
|
+
*/
|
|
139
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
140
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
141
|
+
this.terraformResource = terraformResource;
|
|
142
|
+
this.terraformAttribute = terraformAttribute;
|
|
143
|
+
this.wrapsSet = wrapsSet;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* @param index the index of the item to return
|
|
147
|
+
*/
|
|
148
|
+
get(index) {
|
|
149
|
+
return new DataAstroUserWorkspaceRolesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/user astro_user}
|
|
154
|
+
*/
|
|
155
|
+
export class DataAstroUser extends cdktf.TerraformDataSource {
|
|
156
|
+
// =================
|
|
157
|
+
// STATIC PROPERTIES
|
|
158
|
+
// =================
|
|
159
|
+
static tfResourceType = "astro_user";
|
|
160
|
+
// ==============
|
|
161
|
+
// STATIC Methods
|
|
162
|
+
// ==============
|
|
163
|
+
/**
|
|
164
|
+
* Generates CDKTF code for importing a DataAstroUser resource upon running "cdktf plan <stack-name>"
|
|
165
|
+
* @param scope The scope in which to define this construct
|
|
166
|
+
* @param importToId The construct id used in the generated config for the DataAstroUser to import
|
|
167
|
+
* @param importFromId The id of the existing DataAstroUser that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/user#import import section} in the documentation of this resource for the id to use
|
|
168
|
+
* @param provider? Optional instance of the provider where the DataAstroUser to import is found
|
|
169
|
+
*/
|
|
170
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
171
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "astro_user", importId: importFromId, provider });
|
|
172
|
+
}
|
|
173
|
+
// ===========
|
|
174
|
+
// INITIALIZER
|
|
175
|
+
// ===========
|
|
176
|
+
/**
|
|
177
|
+
* Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/user astro_user} Data Source
|
|
178
|
+
*
|
|
179
|
+
* @param scope The scope in which to define this construct
|
|
180
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
181
|
+
* @param options DataAstroUserConfig
|
|
182
|
+
*/
|
|
183
|
+
constructor(scope, id, config) {
|
|
184
|
+
super(scope, id, {
|
|
185
|
+
terraformResourceType: 'astro_user',
|
|
186
|
+
terraformGeneratorMetadata: {
|
|
187
|
+
providerName: 'astro',
|
|
188
|
+
providerVersion: '1.0.8',
|
|
189
|
+
providerVersionConstraint: '1.0.8'
|
|
190
|
+
},
|
|
191
|
+
provider: config.provider,
|
|
192
|
+
dependsOn: config.dependsOn,
|
|
193
|
+
count: config.count,
|
|
194
|
+
lifecycle: config.lifecycle,
|
|
195
|
+
provisioners: config.provisioners,
|
|
196
|
+
connection: config.connection,
|
|
197
|
+
forEach: config.forEach
|
|
198
|
+
});
|
|
199
|
+
this._id = config.id;
|
|
200
|
+
}
|
|
201
|
+
// ==========
|
|
202
|
+
// ATTRIBUTES
|
|
203
|
+
// ==========
|
|
204
|
+
// avatar_url - computed: true, optional: false, required: false
|
|
205
|
+
get avatarUrl() {
|
|
206
|
+
return this.getStringAttribute('avatar_url');
|
|
207
|
+
}
|
|
208
|
+
// created_at - computed: true, optional: false, required: false
|
|
209
|
+
get createdAt() {
|
|
210
|
+
return this.getStringAttribute('created_at');
|
|
211
|
+
}
|
|
212
|
+
// deployment_roles - computed: true, optional: false, required: false
|
|
213
|
+
_deploymentRoles = new DataAstroUserDeploymentRolesList(this, "deployment_roles", true);
|
|
214
|
+
get deploymentRoles() {
|
|
215
|
+
return this._deploymentRoles;
|
|
216
|
+
}
|
|
217
|
+
// full_name - computed: true, optional: false, required: false
|
|
218
|
+
get fullName() {
|
|
219
|
+
return this.getStringAttribute('full_name');
|
|
220
|
+
}
|
|
221
|
+
// id - computed: false, optional: false, required: true
|
|
222
|
+
_id;
|
|
223
|
+
get id() {
|
|
224
|
+
return this.getStringAttribute('id');
|
|
225
|
+
}
|
|
226
|
+
set id(value) {
|
|
227
|
+
this._id = value;
|
|
228
|
+
}
|
|
229
|
+
// Temporarily expose input value. Use with caution.
|
|
230
|
+
get idInput() {
|
|
231
|
+
return this._id;
|
|
232
|
+
}
|
|
233
|
+
// organization_role - computed: true, optional: false, required: false
|
|
234
|
+
get organizationRole() {
|
|
235
|
+
return this.getStringAttribute('organization_role');
|
|
236
|
+
}
|
|
237
|
+
// status - computed: true, optional: false, required: false
|
|
238
|
+
get status() {
|
|
239
|
+
return this.getStringAttribute('status');
|
|
240
|
+
}
|
|
241
|
+
// updated_at - computed: true, optional: false, required: false
|
|
242
|
+
get updatedAt() {
|
|
243
|
+
return this.getStringAttribute('updated_at');
|
|
244
|
+
}
|
|
245
|
+
// username - computed: true, optional: false, required: false
|
|
246
|
+
get username() {
|
|
247
|
+
return this.getStringAttribute('username');
|
|
248
|
+
}
|
|
249
|
+
// workspace_roles - computed: true, optional: false, required: false
|
|
250
|
+
_workspaceRoles = new DataAstroUserWorkspaceRolesList(this, "workspace_roles", true);
|
|
251
|
+
get workspaceRoles() {
|
|
252
|
+
return this._workspaceRoles;
|
|
253
|
+
}
|
|
254
|
+
// =========
|
|
255
|
+
// SYNTHESIS
|
|
256
|
+
// =========
|
|
257
|
+
synthesizeAttributes() {
|
|
258
|
+
return {
|
|
259
|
+
id: cdktf.stringToTerraform(this._id),
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
synthesizeHclAttributes() {
|
|
263
|
+
const attrs = {
|
|
264
|
+
id: {
|
|
265
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
266
|
+
isBlock: false,
|
|
267
|
+
type: "simple",
|
|
268
|
+
storageClassType: "string",
|
|
269
|
+
},
|
|
270
|
+
};
|
|
271
|
+
// remove undefined attributes
|
|
272
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
273
|
+
}
|
|
274
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface DataAstroUsersConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/users#deployment_id DataAstroUsers#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/users#workspace_id DataAstroUsers#workspace_id}
|
|
10
|
+
*/
|
|
11
|
+
readonly workspaceId?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface DataAstroUsersUsersDeploymentRoles {
|
|
14
|
+
}
|
|
15
|
+
export declare function dataAstroUsersUsersDeploymentRolesToTerraform(struct?: DataAstroUsersUsersDeploymentRoles): any;
|
|
16
|
+
export declare function dataAstroUsersUsersDeploymentRolesToHclTerraform(struct?: DataAstroUsersUsersDeploymentRoles): any;
|
|
17
|
+
export declare class DataAstroUsersUsersDeploymentRolesOutputReference 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
|
+
* @param complexObjectIndex the index of this item in the list
|
|
23
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
24
|
+
*/
|
|
25
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
|
|
26
|
+
get internalValue(): DataAstroUsersUsersDeploymentRoles | undefined;
|
|
27
|
+
set internalValue(value: DataAstroUsersUsersDeploymentRoles | undefined);
|
|
28
|
+
get deploymentId(): any;
|
|
29
|
+
get role(): any;
|
|
30
|
+
}
|
|
31
|
+
export declare class DataAstroUsersUsersDeploymentRolesList extends cdktf.ComplexList {
|
|
32
|
+
protected terraformResource: cdktf.IInterpolatingParent;
|
|
33
|
+
protected terraformAttribute: string;
|
|
34
|
+
protected wrapsSet: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* @param terraformResource The parent resource
|
|
37
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
38
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
39
|
+
*/
|
|
40
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
|
|
41
|
+
/**
|
|
42
|
+
* @param index the index of the item to return
|
|
43
|
+
*/
|
|
44
|
+
get(index: number): DataAstroUsersUsersDeploymentRolesOutputReference;
|
|
45
|
+
}
|
|
46
|
+
export interface DataAstroUsersUsersWorkspaceRoles {
|
|
47
|
+
}
|
|
48
|
+
export declare function dataAstroUsersUsersWorkspaceRolesToTerraform(struct?: DataAstroUsersUsersWorkspaceRoles): any;
|
|
49
|
+
export declare function dataAstroUsersUsersWorkspaceRolesToHclTerraform(struct?: DataAstroUsersUsersWorkspaceRoles): any;
|
|
50
|
+
export declare class DataAstroUsersUsersWorkspaceRolesOutputReference extends cdktf.ComplexObject {
|
|
51
|
+
private isEmptyObject;
|
|
52
|
+
/**
|
|
53
|
+
* @param terraformResource The parent resource
|
|
54
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
55
|
+
* @param complexObjectIndex the index of this item in the list
|
|
56
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
57
|
+
*/
|
|
58
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
|
|
59
|
+
get internalValue(): DataAstroUsersUsersWorkspaceRoles | undefined;
|
|
60
|
+
set internalValue(value: DataAstroUsersUsersWorkspaceRoles | undefined);
|
|
61
|
+
get role(): any;
|
|
62
|
+
get workspaceId(): any;
|
|
63
|
+
}
|
|
64
|
+
export declare class DataAstroUsersUsersWorkspaceRolesList extends cdktf.ComplexList {
|
|
65
|
+
protected terraformResource: cdktf.IInterpolatingParent;
|
|
66
|
+
protected terraformAttribute: string;
|
|
67
|
+
protected wrapsSet: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* @param terraformResource The parent resource
|
|
70
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
71
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
72
|
+
*/
|
|
73
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
|
|
74
|
+
/**
|
|
75
|
+
* @param index the index of the item to return
|
|
76
|
+
*/
|
|
77
|
+
get(index: number): DataAstroUsersUsersWorkspaceRolesOutputReference;
|
|
78
|
+
}
|
|
79
|
+
export interface DataAstroUsersUsers {
|
|
80
|
+
/**
|
|
81
|
+
* User identifier
|
|
82
|
+
*
|
|
83
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/users#id DataAstroUsers#id}
|
|
84
|
+
*
|
|
85
|
+
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
86
|
+
* 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.
|
|
87
|
+
*/
|
|
88
|
+
readonly id: string;
|
|
89
|
+
}
|
|
90
|
+
export declare function dataAstroUsersUsersToTerraform(struct?: DataAstroUsersUsers): any;
|
|
91
|
+
export declare function dataAstroUsersUsersToHclTerraform(struct?: DataAstroUsersUsers): any;
|
|
92
|
+
export declare class DataAstroUsersUsersOutputReference extends cdktf.ComplexObject {
|
|
93
|
+
private isEmptyObject;
|
|
94
|
+
/**
|
|
95
|
+
* @param terraformResource The parent resource
|
|
96
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
97
|
+
* @param complexObjectIndex the index of this item in the list
|
|
98
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
99
|
+
*/
|
|
100
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
|
|
101
|
+
get internalValue(): DataAstroUsersUsers | undefined;
|
|
102
|
+
set internalValue(value: DataAstroUsersUsers | undefined);
|
|
103
|
+
get avatarUrl(): any;
|
|
104
|
+
get createdAt(): any;
|
|
105
|
+
private _deploymentRoles;
|
|
106
|
+
get deploymentRoles(): DataAstroUsersUsersDeploymentRolesList;
|
|
107
|
+
get fullName(): any;
|
|
108
|
+
private _id?;
|
|
109
|
+
get id(): string;
|
|
110
|
+
set id(value: string);
|
|
111
|
+
get idInput(): string;
|
|
112
|
+
get organizationRole(): any;
|
|
113
|
+
get status(): any;
|
|
114
|
+
get updatedAt(): any;
|
|
115
|
+
get username(): any;
|
|
116
|
+
private _workspaceRoles;
|
|
117
|
+
get workspaceRoles(): DataAstroUsersUsersWorkspaceRolesList;
|
|
118
|
+
}
|
|
119
|
+
export declare class DataAstroUsersUsersList extends cdktf.ComplexList {
|
|
120
|
+
protected terraformResource: cdktf.IInterpolatingParent;
|
|
121
|
+
protected terraformAttribute: string;
|
|
122
|
+
protected wrapsSet: boolean;
|
|
123
|
+
internalValue?: DataAstroUsersUsers[] | cdktf.IResolvable;
|
|
124
|
+
/**
|
|
125
|
+
* @param terraformResource The parent resource
|
|
126
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
127
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
128
|
+
*/
|
|
129
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
|
|
130
|
+
/**
|
|
131
|
+
* @param index the index of the item to return
|
|
132
|
+
*/
|
|
133
|
+
get(index: number): DataAstroUsersUsersOutputReference;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/users astro_users}
|
|
137
|
+
*/
|
|
138
|
+
export declare class DataAstroUsers extends cdktf.TerraformDataSource {
|
|
139
|
+
static readonly tfResourceType = "astro_users";
|
|
140
|
+
/**
|
|
141
|
+
* Generates CDKTF code for importing a DataAstroUsers resource upon running "cdktf plan <stack-name>"
|
|
142
|
+
* @param scope The scope in which to define this construct
|
|
143
|
+
* @param importToId The construct id used in the generated config for the DataAstroUsers to import
|
|
144
|
+
* @param importFromId The id of the existing DataAstroUsers that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/users#import import section} in the documentation of this resource for the id to use
|
|
145
|
+
* @param provider? Optional instance of the provider where the DataAstroUsers to import is found
|
|
146
|
+
*/
|
|
147
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
|
|
148
|
+
/**
|
|
149
|
+
* Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/users astro_users} Data Source
|
|
150
|
+
*
|
|
151
|
+
* @param scope The scope in which to define this construct
|
|
152
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
153
|
+
* @param options DataAstroUsersConfig = {}
|
|
154
|
+
*/
|
|
155
|
+
constructor(scope: Construct, id: string, config?: DataAstroUsersConfig);
|
|
156
|
+
private _deploymentId?;
|
|
157
|
+
get deploymentId(): string;
|
|
158
|
+
set deploymentId(value: string);
|
|
159
|
+
resetDeploymentId(): void;
|
|
160
|
+
get deploymentIdInput(): string;
|
|
161
|
+
private _users;
|
|
162
|
+
get users(): DataAstroUsersUsersList;
|
|
163
|
+
private _workspaceId?;
|
|
164
|
+
get workspaceId(): string;
|
|
165
|
+
set workspaceId(value: string);
|
|
166
|
+
resetWorkspaceId(): void;
|
|
167
|
+
get workspaceIdInput(): string;
|
|
168
|
+
protected synthesizeAttributes(): {
|
|
169
|
+
[name: string]: any;
|
|
170
|
+
};
|
|
171
|
+
protected synthesizeHclAttributes(): {
|
|
172
|
+
[name: string]: any;
|
|
173
|
+
};
|
|
174
|
+
}
|