@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,180 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface TeamRolesConfig 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_roles#deployment_roles TeamRoles#deployment_roles}
|
|
8
|
+
*/
|
|
9
|
+
readonly deploymentRoles?: TeamRolesDeploymentRoles[] | cdktf.IResolvable;
|
|
10
|
+
/**
|
|
11
|
+
* The role to assign to the organization
|
|
12
|
+
*
|
|
13
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team_roles#organization_role TeamRoles#organization_role}
|
|
14
|
+
*/
|
|
15
|
+
readonly organizationRole: string;
|
|
16
|
+
/**
|
|
17
|
+
* The ID of the team to assign the roles to
|
|
18
|
+
*
|
|
19
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team_roles#team_id TeamRoles#team_id}
|
|
20
|
+
*/
|
|
21
|
+
readonly teamId: string;
|
|
22
|
+
/**
|
|
23
|
+
* The roles to assign to the workspaces
|
|
24
|
+
*
|
|
25
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team_roles#workspace_roles TeamRoles#workspace_roles}
|
|
26
|
+
*/
|
|
27
|
+
readonly workspaceRoles?: TeamRolesWorkspaceRoles[] | cdktf.IResolvable;
|
|
28
|
+
}
|
|
29
|
+
export interface TeamRolesDeploymentRoles {
|
|
30
|
+
/**
|
|
31
|
+
* The ID of the deployment to assign the role to
|
|
32
|
+
*
|
|
33
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team_roles#deployment_id TeamRoles#deployment_id}
|
|
34
|
+
*/
|
|
35
|
+
readonly deploymentId: string;
|
|
36
|
+
/**
|
|
37
|
+
* The role to assign to the deployment
|
|
38
|
+
*
|
|
39
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team_roles#role TeamRoles#role}
|
|
40
|
+
*/
|
|
41
|
+
readonly role: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function teamRolesDeploymentRolesToTerraform(struct?: TeamRolesDeploymentRoles | cdktf.IResolvable): any;
|
|
44
|
+
export declare function teamRolesDeploymentRolesToHclTerraform(struct?: TeamRolesDeploymentRoles | cdktf.IResolvable): any;
|
|
45
|
+
export declare class TeamRolesDeploymentRolesOutputReference extends cdktf.ComplexObject {
|
|
46
|
+
private isEmptyObject;
|
|
47
|
+
private resolvableValue?;
|
|
48
|
+
/**
|
|
49
|
+
* @param terraformResource The parent resource
|
|
50
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
51
|
+
* @param complexObjectIndex the index of this item in the list
|
|
52
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
53
|
+
*/
|
|
54
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
|
|
55
|
+
get internalValue(): TeamRolesDeploymentRoles | cdktf.IResolvable | undefined;
|
|
56
|
+
set internalValue(value: TeamRolesDeploymentRoles | cdktf.IResolvable | undefined);
|
|
57
|
+
private _deploymentId?;
|
|
58
|
+
get deploymentId(): string;
|
|
59
|
+
set deploymentId(value: string);
|
|
60
|
+
get deploymentIdInput(): string;
|
|
61
|
+
private _role?;
|
|
62
|
+
get role(): string;
|
|
63
|
+
set role(value: string);
|
|
64
|
+
get roleInput(): string;
|
|
65
|
+
}
|
|
66
|
+
export declare class TeamRolesDeploymentRolesList extends cdktf.ComplexList {
|
|
67
|
+
protected terraformResource: cdktf.IInterpolatingParent;
|
|
68
|
+
protected terraformAttribute: string;
|
|
69
|
+
protected wrapsSet: boolean;
|
|
70
|
+
internalValue?: TeamRolesDeploymentRoles[] | cdktf.IResolvable;
|
|
71
|
+
/**
|
|
72
|
+
* @param terraformResource The parent resource
|
|
73
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
74
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
75
|
+
*/
|
|
76
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
|
|
77
|
+
/**
|
|
78
|
+
* @param index the index of the item to return
|
|
79
|
+
*/
|
|
80
|
+
get(index: number): TeamRolesDeploymentRolesOutputReference;
|
|
81
|
+
}
|
|
82
|
+
export interface TeamRolesWorkspaceRoles {
|
|
83
|
+
/**
|
|
84
|
+
* The role to assign to the workspace
|
|
85
|
+
*
|
|
86
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team_roles#role TeamRoles#role}
|
|
87
|
+
*/
|
|
88
|
+
readonly role: string;
|
|
89
|
+
/**
|
|
90
|
+
* The ID of the workspace to assign the role to
|
|
91
|
+
*
|
|
92
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team_roles#workspace_id TeamRoles#workspace_id}
|
|
93
|
+
*/
|
|
94
|
+
readonly workspaceId: string;
|
|
95
|
+
}
|
|
96
|
+
export declare function teamRolesWorkspaceRolesToTerraform(struct?: TeamRolesWorkspaceRoles | cdktf.IResolvable): any;
|
|
97
|
+
export declare function teamRolesWorkspaceRolesToHclTerraform(struct?: TeamRolesWorkspaceRoles | cdktf.IResolvable): any;
|
|
98
|
+
export declare class TeamRolesWorkspaceRolesOutputReference extends cdktf.ComplexObject {
|
|
99
|
+
private isEmptyObject;
|
|
100
|
+
private resolvableValue?;
|
|
101
|
+
/**
|
|
102
|
+
* @param terraformResource The parent resource
|
|
103
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
104
|
+
* @param complexObjectIndex the index of this item in the list
|
|
105
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
106
|
+
*/
|
|
107
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
|
|
108
|
+
get internalValue(): TeamRolesWorkspaceRoles | cdktf.IResolvable | undefined;
|
|
109
|
+
set internalValue(value: TeamRolesWorkspaceRoles | cdktf.IResolvable | undefined);
|
|
110
|
+
private _role?;
|
|
111
|
+
get role(): string;
|
|
112
|
+
set role(value: string);
|
|
113
|
+
get roleInput(): string;
|
|
114
|
+
private _workspaceId?;
|
|
115
|
+
get workspaceId(): string;
|
|
116
|
+
set workspaceId(value: string);
|
|
117
|
+
get workspaceIdInput(): string;
|
|
118
|
+
}
|
|
119
|
+
export declare class TeamRolesWorkspaceRolesList extends cdktf.ComplexList {
|
|
120
|
+
protected terraformResource: cdktf.IInterpolatingParent;
|
|
121
|
+
protected terraformAttribute: string;
|
|
122
|
+
protected wrapsSet: boolean;
|
|
123
|
+
internalValue?: TeamRolesWorkspaceRoles[] | 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): TeamRolesWorkspaceRolesOutputReference;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team_roles astro_team_roles}
|
|
137
|
+
*/
|
|
138
|
+
export declare class TeamRoles extends cdktf.TerraformResource {
|
|
139
|
+
static readonly tfResourceType = "astro_team_roles";
|
|
140
|
+
/**
|
|
141
|
+
* Generates CDKTF code for importing a TeamRoles 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 TeamRoles to import
|
|
144
|
+
* @param importFromId The id of the existing TeamRoles that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team_roles#import import section} in the documentation of this resource for the id to use
|
|
145
|
+
* @param provider? Optional instance of the provider where the TeamRoles 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/resources/team_roles astro_team_roles} Resource
|
|
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 TeamRolesConfig
|
|
154
|
+
*/
|
|
155
|
+
constructor(scope: Construct, id: string, config: TeamRolesConfig);
|
|
156
|
+
private _deploymentRoles;
|
|
157
|
+
get deploymentRoles(): TeamRolesDeploymentRolesList;
|
|
158
|
+
putDeploymentRoles(value: TeamRolesDeploymentRoles[] | cdktf.IResolvable): void;
|
|
159
|
+
resetDeploymentRoles(): void;
|
|
160
|
+
get deploymentRolesInput(): any;
|
|
161
|
+
private _organizationRole?;
|
|
162
|
+
get organizationRole(): string;
|
|
163
|
+
set organizationRole(value: string);
|
|
164
|
+
get organizationRoleInput(): string;
|
|
165
|
+
private _teamId?;
|
|
166
|
+
get teamId(): string;
|
|
167
|
+
set teamId(value: string);
|
|
168
|
+
get teamIdInput(): string;
|
|
169
|
+
private _workspaceRoles;
|
|
170
|
+
get workspaceRoles(): TeamRolesWorkspaceRolesList;
|
|
171
|
+
putWorkspaceRoles(value: TeamRolesWorkspaceRoles[] | cdktf.IResolvable): void;
|
|
172
|
+
resetWorkspaceRoles(): void;
|
|
173
|
+
get workspaceRolesInput(): any;
|
|
174
|
+
protected synthesizeAttributes(): {
|
|
175
|
+
[name: string]: any;
|
|
176
|
+
};
|
|
177
|
+
protected synthesizeHclAttributes(): {
|
|
178
|
+
[name: string]: any;
|
|
179
|
+
};
|
|
180
|
+
}
|
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team_roles
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
export function teamRolesDeploymentRolesToTerraform(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
|
+
deployment_id: cdktf.stringToTerraform(struct.deploymentId),
|
|
13
|
+
role: cdktf.stringToTerraform(struct.role),
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export function teamRolesDeploymentRolesToHclTerraform(struct) {
|
|
17
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
18
|
+
return struct;
|
|
19
|
+
}
|
|
20
|
+
if (cdktf.isComplexElement(struct)) {
|
|
21
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
22
|
+
}
|
|
23
|
+
const attrs = {
|
|
24
|
+
deployment_id: {
|
|
25
|
+
value: cdktf.stringToHclTerraform(struct.deploymentId),
|
|
26
|
+
isBlock: false,
|
|
27
|
+
type: "simple",
|
|
28
|
+
storageClassType: "string",
|
|
29
|
+
},
|
|
30
|
+
role: {
|
|
31
|
+
value: cdktf.stringToHclTerraform(struct.role),
|
|
32
|
+
isBlock: false,
|
|
33
|
+
type: "simple",
|
|
34
|
+
storageClassType: "string",
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
// remove undefined attributes
|
|
38
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
39
|
+
}
|
|
40
|
+
export class TeamRolesDeploymentRolesOutputReference extends cdktf.ComplexObject {
|
|
41
|
+
isEmptyObject = false;
|
|
42
|
+
resolvableValue;
|
|
43
|
+
/**
|
|
44
|
+
* @param terraformResource The parent resource
|
|
45
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
46
|
+
* @param complexObjectIndex the index of this item in the list
|
|
47
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
48
|
+
*/
|
|
49
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
50
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
51
|
+
}
|
|
52
|
+
get internalValue() {
|
|
53
|
+
if (this.resolvableValue) {
|
|
54
|
+
return this.resolvableValue;
|
|
55
|
+
}
|
|
56
|
+
let hasAnyValues = this.isEmptyObject;
|
|
57
|
+
const internalValueResult = {};
|
|
58
|
+
if (this._deploymentId !== undefined) {
|
|
59
|
+
hasAnyValues = true;
|
|
60
|
+
internalValueResult.deploymentId = this._deploymentId;
|
|
61
|
+
}
|
|
62
|
+
if (this._role !== undefined) {
|
|
63
|
+
hasAnyValues = true;
|
|
64
|
+
internalValueResult.role = this._role;
|
|
65
|
+
}
|
|
66
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
67
|
+
}
|
|
68
|
+
set internalValue(value) {
|
|
69
|
+
if (value === undefined) {
|
|
70
|
+
this.isEmptyObject = false;
|
|
71
|
+
this.resolvableValue = undefined;
|
|
72
|
+
this._deploymentId = undefined;
|
|
73
|
+
this._role = undefined;
|
|
74
|
+
}
|
|
75
|
+
else if (cdktf.Tokenization.isResolvable(value)) {
|
|
76
|
+
this.isEmptyObject = false;
|
|
77
|
+
this.resolvableValue = value;
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
81
|
+
this.resolvableValue = undefined;
|
|
82
|
+
this._deploymentId = value.deploymentId;
|
|
83
|
+
this._role = value.role;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
// deployment_id - computed: false, optional: false, required: true
|
|
87
|
+
_deploymentId;
|
|
88
|
+
get deploymentId() {
|
|
89
|
+
return this.getStringAttribute('deployment_id');
|
|
90
|
+
}
|
|
91
|
+
set deploymentId(value) {
|
|
92
|
+
this._deploymentId = value;
|
|
93
|
+
}
|
|
94
|
+
// Temporarily expose input value. Use with caution.
|
|
95
|
+
get deploymentIdInput() {
|
|
96
|
+
return this._deploymentId;
|
|
97
|
+
}
|
|
98
|
+
// role - computed: false, optional: false, required: true
|
|
99
|
+
_role;
|
|
100
|
+
get role() {
|
|
101
|
+
return this.getStringAttribute('role');
|
|
102
|
+
}
|
|
103
|
+
set role(value) {
|
|
104
|
+
this._role = value;
|
|
105
|
+
}
|
|
106
|
+
// Temporarily expose input value. Use with caution.
|
|
107
|
+
get roleInput() {
|
|
108
|
+
return this._role;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
export class TeamRolesDeploymentRolesList extends cdktf.ComplexList {
|
|
112
|
+
terraformResource;
|
|
113
|
+
terraformAttribute;
|
|
114
|
+
wrapsSet;
|
|
115
|
+
internalValue;
|
|
116
|
+
/**
|
|
117
|
+
* @param terraformResource The parent resource
|
|
118
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
119
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
120
|
+
*/
|
|
121
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
122
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
123
|
+
this.terraformResource = terraformResource;
|
|
124
|
+
this.terraformAttribute = terraformAttribute;
|
|
125
|
+
this.wrapsSet = wrapsSet;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @param index the index of the item to return
|
|
129
|
+
*/
|
|
130
|
+
get(index) {
|
|
131
|
+
return new TeamRolesDeploymentRolesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
export function teamRolesWorkspaceRolesToTerraform(struct) {
|
|
135
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
136
|
+
return struct;
|
|
137
|
+
}
|
|
138
|
+
if (cdktf.isComplexElement(struct)) {
|
|
139
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
140
|
+
}
|
|
141
|
+
return {
|
|
142
|
+
role: cdktf.stringToTerraform(struct.role),
|
|
143
|
+
workspace_id: cdktf.stringToTerraform(struct.workspaceId),
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
export function teamRolesWorkspaceRolesToHclTerraform(struct) {
|
|
147
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
148
|
+
return struct;
|
|
149
|
+
}
|
|
150
|
+
if (cdktf.isComplexElement(struct)) {
|
|
151
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
152
|
+
}
|
|
153
|
+
const attrs = {
|
|
154
|
+
role: {
|
|
155
|
+
value: cdktf.stringToHclTerraform(struct.role),
|
|
156
|
+
isBlock: false,
|
|
157
|
+
type: "simple",
|
|
158
|
+
storageClassType: "string",
|
|
159
|
+
},
|
|
160
|
+
workspace_id: {
|
|
161
|
+
value: cdktf.stringToHclTerraform(struct.workspaceId),
|
|
162
|
+
isBlock: false,
|
|
163
|
+
type: "simple",
|
|
164
|
+
storageClassType: "string",
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
// remove undefined attributes
|
|
168
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
169
|
+
}
|
|
170
|
+
export class TeamRolesWorkspaceRolesOutputReference extends cdktf.ComplexObject {
|
|
171
|
+
isEmptyObject = false;
|
|
172
|
+
resolvableValue;
|
|
173
|
+
/**
|
|
174
|
+
* @param terraformResource The parent resource
|
|
175
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
176
|
+
* @param complexObjectIndex the index of this item in the list
|
|
177
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
178
|
+
*/
|
|
179
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
180
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
181
|
+
}
|
|
182
|
+
get internalValue() {
|
|
183
|
+
if (this.resolvableValue) {
|
|
184
|
+
return this.resolvableValue;
|
|
185
|
+
}
|
|
186
|
+
let hasAnyValues = this.isEmptyObject;
|
|
187
|
+
const internalValueResult = {};
|
|
188
|
+
if (this._role !== undefined) {
|
|
189
|
+
hasAnyValues = true;
|
|
190
|
+
internalValueResult.role = this._role;
|
|
191
|
+
}
|
|
192
|
+
if (this._workspaceId !== undefined) {
|
|
193
|
+
hasAnyValues = true;
|
|
194
|
+
internalValueResult.workspaceId = this._workspaceId;
|
|
195
|
+
}
|
|
196
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
197
|
+
}
|
|
198
|
+
set internalValue(value) {
|
|
199
|
+
if (value === undefined) {
|
|
200
|
+
this.isEmptyObject = false;
|
|
201
|
+
this.resolvableValue = undefined;
|
|
202
|
+
this._role = undefined;
|
|
203
|
+
this._workspaceId = undefined;
|
|
204
|
+
}
|
|
205
|
+
else if (cdktf.Tokenization.isResolvable(value)) {
|
|
206
|
+
this.isEmptyObject = false;
|
|
207
|
+
this.resolvableValue = value;
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
211
|
+
this.resolvableValue = undefined;
|
|
212
|
+
this._role = value.role;
|
|
213
|
+
this._workspaceId = value.workspaceId;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
// role - computed: false, optional: false, required: true
|
|
217
|
+
_role;
|
|
218
|
+
get role() {
|
|
219
|
+
return this.getStringAttribute('role');
|
|
220
|
+
}
|
|
221
|
+
set role(value) {
|
|
222
|
+
this._role = value;
|
|
223
|
+
}
|
|
224
|
+
// Temporarily expose input value. Use with caution.
|
|
225
|
+
get roleInput() {
|
|
226
|
+
return this._role;
|
|
227
|
+
}
|
|
228
|
+
// workspace_id - computed: false, optional: false, required: true
|
|
229
|
+
_workspaceId;
|
|
230
|
+
get workspaceId() {
|
|
231
|
+
return this.getStringAttribute('workspace_id');
|
|
232
|
+
}
|
|
233
|
+
set workspaceId(value) {
|
|
234
|
+
this._workspaceId = value;
|
|
235
|
+
}
|
|
236
|
+
// Temporarily expose input value. Use with caution.
|
|
237
|
+
get workspaceIdInput() {
|
|
238
|
+
return this._workspaceId;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
export class TeamRolesWorkspaceRolesList extends cdktf.ComplexList {
|
|
242
|
+
terraformResource;
|
|
243
|
+
terraformAttribute;
|
|
244
|
+
wrapsSet;
|
|
245
|
+
internalValue;
|
|
246
|
+
/**
|
|
247
|
+
* @param terraformResource The parent resource
|
|
248
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
249
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
250
|
+
*/
|
|
251
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
252
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
253
|
+
this.terraformResource = terraformResource;
|
|
254
|
+
this.terraformAttribute = terraformAttribute;
|
|
255
|
+
this.wrapsSet = wrapsSet;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* @param index the index of the item to return
|
|
259
|
+
*/
|
|
260
|
+
get(index) {
|
|
261
|
+
return new TeamRolesWorkspaceRolesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team_roles astro_team_roles}
|
|
266
|
+
*/
|
|
267
|
+
export class TeamRoles extends cdktf.TerraformResource {
|
|
268
|
+
// =================
|
|
269
|
+
// STATIC PROPERTIES
|
|
270
|
+
// =================
|
|
271
|
+
static tfResourceType = "astro_team_roles";
|
|
272
|
+
// ==============
|
|
273
|
+
// STATIC Methods
|
|
274
|
+
// ==============
|
|
275
|
+
/**
|
|
276
|
+
* Generates CDKTF code for importing a TeamRoles resource upon running "cdktf plan <stack-name>"
|
|
277
|
+
* @param scope The scope in which to define this construct
|
|
278
|
+
* @param importToId The construct id used in the generated config for the TeamRoles to import
|
|
279
|
+
* @param importFromId The id of the existing TeamRoles that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team_roles#import import section} in the documentation of this resource for the id to use
|
|
280
|
+
* @param provider? Optional instance of the provider where the TeamRoles to import is found
|
|
281
|
+
*/
|
|
282
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
283
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "astro_team_roles", importId: importFromId, provider });
|
|
284
|
+
}
|
|
285
|
+
// ===========
|
|
286
|
+
// INITIALIZER
|
|
287
|
+
// ===========
|
|
288
|
+
/**
|
|
289
|
+
* Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team_roles astro_team_roles} Resource
|
|
290
|
+
*
|
|
291
|
+
* @param scope The scope in which to define this construct
|
|
292
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
293
|
+
* @param options TeamRolesConfig
|
|
294
|
+
*/
|
|
295
|
+
constructor(scope, id, config) {
|
|
296
|
+
super(scope, id, {
|
|
297
|
+
terraformResourceType: 'astro_team_roles',
|
|
298
|
+
terraformGeneratorMetadata: {
|
|
299
|
+
providerName: 'astro',
|
|
300
|
+
providerVersion: '1.0.8',
|
|
301
|
+
providerVersionConstraint: '1.0.8'
|
|
302
|
+
},
|
|
303
|
+
provider: config.provider,
|
|
304
|
+
dependsOn: config.dependsOn,
|
|
305
|
+
count: config.count,
|
|
306
|
+
lifecycle: config.lifecycle,
|
|
307
|
+
provisioners: config.provisioners,
|
|
308
|
+
connection: config.connection,
|
|
309
|
+
forEach: config.forEach
|
|
310
|
+
});
|
|
311
|
+
this._deploymentRoles.internalValue = config.deploymentRoles;
|
|
312
|
+
this._organizationRole = config.organizationRole;
|
|
313
|
+
this._teamId = config.teamId;
|
|
314
|
+
this._workspaceRoles.internalValue = config.workspaceRoles;
|
|
315
|
+
}
|
|
316
|
+
// ==========
|
|
317
|
+
// ATTRIBUTES
|
|
318
|
+
// ==========
|
|
319
|
+
// deployment_roles - computed: false, optional: true, required: false
|
|
320
|
+
_deploymentRoles = new TeamRolesDeploymentRolesList(this, "deployment_roles", true);
|
|
321
|
+
get deploymentRoles() {
|
|
322
|
+
return this._deploymentRoles;
|
|
323
|
+
}
|
|
324
|
+
putDeploymentRoles(value) {
|
|
325
|
+
this._deploymentRoles.internalValue = value;
|
|
326
|
+
}
|
|
327
|
+
resetDeploymentRoles() {
|
|
328
|
+
this._deploymentRoles.internalValue = undefined;
|
|
329
|
+
}
|
|
330
|
+
// Temporarily expose input value. Use with caution.
|
|
331
|
+
get deploymentRolesInput() {
|
|
332
|
+
return this._deploymentRoles.internalValue;
|
|
333
|
+
}
|
|
334
|
+
// organization_role - computed: false, optional: false, required: true
|
|
335
|
+
_organizationRole;
|
|
336
|
+
get organizationRole() {
|
|
337
|
+
return this.getStringAttribute('organization_role');
|
|
338
|
+
}
|
|
339
|
+
set organizationRole(value) {
|
|
340
|
+
this._organizationRole = value;
|
|
341
|
+
}
|
|
342
|
+
// Temporarily expose input value. Use with caution.
|
|
343
|
+
get organizationRoleInput() {
|
|
344
|
+
return this._organizationRole;
|
|
345
|
+
}
|
|
346
|
+
// team_id - computed: false, optional: false, required: true
|
|
347
|
+
_teamId;
|
|
348
|
+
get teamId() {
|
|
349
|
+
return this.getStringAttribute('team_id');
|
|
350
|
+
}
|
|
351
|
+
set teamId(value) {
|
|
352
|
+
this._teamId = value;
|
|
353
|
+
}
|
|
354
|
+
// Temporarily expose input value. Use with caution.
|
|
355
|
+
get teamIdInput() {
|
|
356
|
+
return this._teamId;
|
|
357
|
+
}
|
|
358
|
+
// workspace_roles - computed: false, optional: true, required: false
|
|
359
|
+
_workspaceRoles = new TeamRolesWorkspaceRolesList(this, "workspace_roles", true);
|
|
360
|
+
get workspaceRoles() {
|
|
361
|
+
return this._workspaceRoles;
|
|
362
|
+
}
|
|
363
|
+
putWorkspaceRoles(value) {
|
|
364
|
+
this._workspaceRoles.internalValue = value;
|
|
365
|
+
}
|
|
366
|
+
resetWorkspaceRoles() {
|
|
367
|
+
this._workspaceRoles.internalValue = undefined;
|
|
368
|
+
}
|
|
369
|
+
// Temporarily expose input value. Use with caution.
|
|
370
|
+
get workspaceRolesInput() {
|
|
371
|
+
return this._workspaceRoles.internalValue;
|
|
372
|
+
}
|
|
373
|
+
// =========
|
|
374
|
+
// SYNTHESIS
|
|
375
|
+
// =========
|
|
376
|
+
synthesizeAttributes() {
|
|
377
|
+
return {
|
|
378
|
+
deployment_roles: cdktf.listMapper(teamRolesDeploymentRolesToTerraform, false)(this._deploymentRoles.internalValue),
|
|
379
|
+
organization_role: cdktf.stringToTerraform(this._organizationRole),
|
|
380
|
+
team_id: cdktf.stringToTerraform(this._teamId),
|
|
381
|
+
workspace_roles: cdktf.listMapper(teamRolesWorkspaceRolesToTerraform, false)(this._workspaceRoles.internalValue),
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
synthesizeHclAttributes() {
|
|
385
|
+
const attrs = {
|
|
386
|
+
deployment_roles: {
|
|
387
|
+
value: cdktf.listMapperHcl(teamRolesDeploymentRolesToHclTerraform, false)(this._deploymentRoles.internalValue),
|
|
388
|
+
isBlock: true,
|
|
389
|
+
type: "set",
|
|
390
|
+
storageClassType: "TeamRolesDeploymentRolesList",
|
|
391
|
+
},
|
|
392
|
+
organization_role: {
|
|
393
|
+
value: cdktf.stringToHclTerraform(this._organizationRole),
|
|
394
|
+
isBlock: false,
|
|
395
|
+
type: "simple",
|
|
396
|
+
storageClassType: "string",
|
|
397
|
+
},
|
|
398
|
+
team_id: {
|
|
399
|
+
value: cdktf.stringToHclTerraform(this._teamId),
|
|
400
|
+
isBlock: false,
|
|
401
|
+
type: "simple",
|
|
402
|
+
storageClassType: "string",
|
|
403
|
+
},
|
|
404
|
+
workspace_roles: {
|
|
405
|
+
value: cdktf.listMapperHcl(teamRolesWorkspaceRolesToHclTerraform, false)(this._workspaceRoles.internalValue),
|
|
406
|
+
isBlock: true,
|
|
407
|
+
type: "set",
|
|
408
|
+
storageClassType: "TeamRolesWorkspaceRolesList",
|
|
409
|
+
},
|
|
410
|
+
};
|
|
411
|
+
// remove undefined attributes
|
|
412
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
413
|
+
}
|
|
414
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface UserInviteConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* The email address of the user being invited
|
|
6
|
+
*
|
|
7
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/user_invite#email UserInvite#email}
|
|
8
|
+
*/
|
|
9
|
+
readonly email: string;
|
|
10
|
+
/**
|
|
11
|
+
* The Organization role to assign to the user
|
|
12
|
+
*
|
|
13
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/user_invite#role UserInvite#role}
|
|
14
|
+
*/
|
|
15
|
+
readonly role: string;
|
|
16
|
+
}
|
|
17
|
+
export interface UserInviteInvitee {
|
|
18
|
+
}
|
|
19
|
+
export declare function userInviteInviteeToTerraform(struct?: UserInviteInvitee): any;
|
|
20
|
+
export declare function userInviteInviteeToHclTerraform(struct?: UserInviteInvitee): any;
|
|
21
|
+
export declare class UserInviteInviteeOutputReference extends cdktf.ComplexObject {
|
|
22
|
+
private isEmptyObject;
|
|
23
|
+
/**
|
|
24
|
+
* @param terraformResource The parent resource
|
|
25
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
26
|
+
*/
|
|
27
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
|
|
28
|
+
get internalValue(): UserInviteInvitee | undefined;
|
|
29
|
+
set internalValue(value: UserInviteInvitee | undefined);
|
|
30
|
+
get apiTokenName(): any;
|
|
31
|
+
get avatarUrl(): any;
|
|
32
|
+
get fullName(): any;
|
|
33
|
+
get id(): any;
|
|
34
|
+
get subjectType(): any;
|
|
35
|
+
get username(): any;
|
|
36
|
+
}
|
|
37
|
+
export interface UserInviteInviter {
|
|
38
|
+
}
|
|
39
|
+
export declare function userInviteInviterToTerraform(struct?: UserInviteInviter): any;
|
|
40
|
+
export declare function userInviteInviterToHclTerraform(struct?: UserInviteInviter): any;
|
|
41
|
+
export declare class UserInviteInviterOutputReference extends cdktf.ComplexObject {
|
|
42
|
+
private isEmptyObject;
|
|
43
|
+
/**
|
|
44
|
+
* @param terraformResource The parent resource
|
|
45
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
46
|
+
*/
|
|
47
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
|
|
48
|
+
get internalValue(): UserInviteInviter | undefined;
|
|
49
|
+
set internalValue(value: UserInviteInviter | undefined);
|
|
50
|
+
get apiTokenName(): any;
|
|
51
|
+
get avatarUrl(): any;
|
|
52
|
+
get fullName(): any;
|
|
53
|
+
get id(): any;
|
|
54
|
+
get subjectType(): any;
|
|
55
|
+
get username(): any;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/user_invite astro_user_invite}
|
|
59
|
+
*/
|
|
60
|
+
export declare class UserInvite extends cdktf.TerraformResource {
|
|
61
|
+
static readonly tfResourceType = "astro_user_invite";
|
|
62
|
+
/**
|
|
63
|
+
* Generates CDKTF code for importing a UserInvite resource upon running "cdktf plan <stack-name>"
|
|
64
|
+
* @param scope The scope in which to define this construct
|
|
65
|
+
* @param importToId The construct id used in the generated config for the UserInvite to import
|
|
66
|
+
* @param importFromId The id of the existing UserInvite that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/user_invite#import import section} in the documentation of this resource for the id to use
|
|
67
|
+
* @param provider? Optional instance of the provider where the UserInvite to import is found
|
|
68
|
+
*/
|
|
69
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
|
|
70
|
+
/**
|
|
71
|
+
* Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/user_invite astro_user_invite} Resource
|
|
72
|
+
*
|
|
73
|
+
* @param scope The scope in which to define this construct
|
|
74
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
75
|
+
* @param options UserInviteConfig
|
|
76
|
+
*/
|
|
77
|
+
constructor(scope: Construct, id: string, config: UserInviteConfig);
|
|
78
|
+
private _email?;
|
|
79
|
+
get email(): string;
|
|
80
|
+
set email(value: string);
|
|
81
|
+
get emailInput(): string;
|
|
82
|
+
get expiresAt(): any;
|
|
83
|
+
get inviteId(): any;
|
|
84
|
+
private _invitee;
|
|
85
|
+
get invitee(): UserInviteInviteeOutputReference;
|
|
86
|
+
private _inviter;
|
|
87
|
+
get inviter(): UserInviteInviterOutputReference;
|
|
88
|
+
private _role?;
|
|
89
|
+
get role(): string;
|
|
90
|
+
set role(value: string);
|
|
91
|
+
get roleInput(): string;
|
|
92
|
+
get userId(): any;
|
|
93
|
+
protected synthesizeAttributes(): {
|
|
94
|
+
[name: string]: any;
|
|
95
|
+
};
|
|
96
|
+
protected synthesizeHclAttributes(): {
|
|
97
|
+
[name: string]: any;
|
|
98
|
+
};
|
|
99
|
+
}
|