@ryan-pip/pulumi_astronomer 0.0.11 → 0.1.0

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 (62) hide show
  1. package/README.md +1 -2
  2. package/cluster.d.ts +104 -87
  3. package/cluster.js +49 -19
  4. package/cluster.js.map +1 -1
  5. package/config/vars.d.ts +6 -2
  6. package/config/vars.js +7 -1
  7. package/config/vars.js.map +1 -1
  8. package/deployment.d.ts +305 -90
  9. package/deployment.js +61 -21
  10. package/deployment.js.map +1 -1
  11. package/getCluster.d.ts +40 -32
  12. package/getCluster.js +6 -6
  13. package/getCluster.js.map +1 -1
  14. package/getClusterOptions.d.ts +66 -0
  15. package/getClusterOptions.js +56 -0
  16. package/getClusterOptions.js.map +1 -0
  17. package/getClusters.d.ts +66 -0
  18. package/getClusters.js +57 -0
  19. package/getClusters.js.map +1 -0
  20. package/getDeployment.d.ts +196 -13
  21. package/getDeployment.js +24 -2
  22. package/getDeployment.js.map +1 -1
  23. package/getDeploymentOptions.d.ts +147 -0
  24. package/getDeploymentOptions.js +71 -0
  25. package/getDeploymentOptions.js.map +1 -0
  26. package/getDeployments.d.ts +75 -0
  27. package/getDeployments.js +64 -0
  28. package/getDeployments.js.map +1 -0
  29. package/getOrganization.d.ts +26 -46
  30. package/getOrganization.js +8 -15
  31. package/getOrganization.js.map +1 -1
  32. package/getTeam.d.ts +103 -0
  33. package/getTeam.js +47 -0
  34. package/getTeam.js.map +1 -0
  35. package/getTeams.d.ts +63 -0
  36. package/getTeams.js +56 -0
  37. package/getTeams.js.map +1 -0
  38. package/getWorkspace.d.ts +29 -12
  39. package/getWorkspace.js +6 -6
  40. package/getWorkspace.js.map +1 -1
  41. package/getWorkspaces.d.ts +78 -0
  42. package/getWorkspaces.js +69 -0
  43. package/getWorkspaces.js.map +1 -0
  44. package/hybridClusterWorkspaceAuthorization.d.ts +82 -0
  45. package/hybridClusterWorkspaceAuthorization.js +76 -0
  46. package/hybridClusterWorkspaceAuthorization.js.map +1 -0
  47. package/index.d.ts +28 -1
  48. package/index.js +32 -1
  49. package/index.js.map +1 -1
  50. package/package.json +2 -2
  51. package/package.json.bak +1 -1
  52. package/provider.d.ts +13 -5
  53. package/provider.js +3 -2
  54. package/provider.js.map +1 -1
  55. package/teamRoles.d.ts +89 -0
  56. package/teamRoles.js +64 -0
  57. package/teamRoles.js.map +1 -0
  58. package/types/input.d.ts +176 -20
  59. package/types/output.d.ts +1350 -36
  60. package/workspace.d.ts +55 -17
  61. package/workspace.js +21 -3
  62. package/workspace.js.map +1 -1
package/types/input.d.ts CHANGED
@@ -1,56 +1,212 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- export interface ClusterK8sTag {
2
+ import * as inputs from "../types/input";
3
+ export interface ClusterMetadata {
3
4
  /**
4
- * The tag's key.
5
+ * Cluster external IPs
5
6
  */
6
- key: pulumi.Input<string>;
7
+ externalIps?: pulumi.Input<pulumi.Input<string>[]>;
7
8
  /**
8
- * The tag's value.
9
+ * Cluster OIDC issuer URL
9
10
  */
10
- value: pulumi.Input<string>;
11
- }
12
- export interface ClusterMetadata {
13
- externalIps?: pulumi.Input<pulumi.Input<string>[]>;
14
11
  oidcIssuerUrl?: pulumi.Input<string>;
15
12
  }
16
13
  export interface ClusterNodePool {
17
14
  /**
18
- * Whether the node pool is the default node pool of the cluster.
15
+ * Node pool cloud provider
16
+ */
17
+ cloudProvider?: pulumi.Input<string>;
18
+ /**
19
+ * Node pool cluster identifier
20
+ */
21
+ clusterId?: pulumi.Input<string>;
22
+ /**
23
+ * Node pool creation timestamp
24
+ */
25
+ createdAt?: pulumi.Input<string>;
26
+ /**
27
+ * Node pool identifier
28
+ */
29
+ id?: pulumi.Input<string>;
30
+ /**
31
+ * Whether the node pool is the default node pool of the cluster
19
32
  */
20
33
  isDefault?: pulumi.Input<boolean>;
21
34
  /**
22
- * The maximum number of nodes that can be created in the node pool.
35
+ * Node pool maximum node count
23
36
  */
24
- maxNodeCount: pulumi.Input<number>;
37
+ maxNodeCount?: pulumi.Input<number>;
25
38
  /**
26
- * The name of the node pool.
39
+ * Node pool name
27
40
  */
28
- name: pulumi.Input<string>;
41
+ name?: pulumi.Input<string>;
42
+ /**
43
+ * Node pool node instance type
44
+ */
45
+ nodeInstanceType?: pulumi.Input<string>;
46
+ /**
47
+ * Node pool supported Astro machines
48
+ */
49
+ supportedAstroMachines?: pulumi.Input<pulumi.Input<string>[]>;
29
50
  /**
30
- * The type of node instance that is used for the node pool.
51
+ * Node pool last updated timestamp
31
52
  */
32
- nodeInstanceType: pulumi.Input<string>;
53
+ updatedAt?: pulumi.Input<string>;
54
+ }
55
+ export interface ClusterTimeouts {
56
+ /**
57
+ * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
58
+ */
59
+ create?: pulumi.Input<string>;
60
+ /**
61
+ * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
62
+ */
63
+ delete?: pulumi.Input<string>;
64
+ /**
65
+ * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
66
+ */
67
+ update?: pulumi.Input<string>;
68
+ }
69
+ export interface DeploymentCreatedBy {
70
+ apiTokenName?: pulumi.Input<string>;
71
+ avatarUrl?: pulumi.Input<string>;
72
+ fullName?: pulumi.Input<string>;
73
+ id?: pulumi.Input<string>;
74
+ subjectType?: pulumi.Input<string>;
75
+ username?: pulumi.Input<string>;
33
76
  }
34
77
  export interface DeploymentEnvironmentVariable {
35
78
  /**
36
- * Whether the environment variable is a secret.
79
+ * Whether Environment variable is a secret
37
80
  */
38
81
  isSecret: pulumi.Input<boolean>;
39
82
  /**
40
- * The environment variable key, used to call the value in code.
83
+ * Environment variable key
41
84
  */
42
85
  key: pulumi.Input<string>;
43
86
  /**
44
- * The environment variable value.
87
+ * Environment variable last updated timestamp
88
+ */
89
+ updatedAt?: pulumi.Input<string>;
90
+ /**
91
+ * Environment variable value
45
92
  */
46
93
  value?: pulumi.Input<string>;
47
94
  }
48
- export interface DeploymentWorkerQueue {
49
- astroMachine: pulumi.Input<string>;
95
+ export interface DeploymentScalingSpec {
96
+ /**
97
+ * Hibernation configuration for the deployment. The deployment will hibernate according to the schedules defined in this configuration. To remove the hibernation configuration, set scaling*spec to null.
98
+ */
99
+ hibernationSpec: pulumi.Input<inputs.DeploymentScalingSpecHibernationSpec>;
100
+ }
101
+ export interface DeploymentScalingSpecHibernationSpec {
102
+ /**
103
+ * Hibernation override configuration. Set to null to remove the override.
104
+ */
105
+ override?: pulumi.Input<inputs.DeploymentScalingSpecHibernationSpecOverride>;
106
+ /**
107
+ * List of hibernation schedules. Set to null to remove all schedules.
108
+ */
109
+ schedules?: pulumi.Input<pulumi.Input<inputs.DeploymentScalingSpecHibernationSpecSchedule>[]>;
110
+ }
111
+ export interface DeploymentScalingSpecHibernationSpecOverride {
112
+ isActive?: pulumi.Input<boolean>;
113
+ isHibernating: pulumi.Input<boolean>;
114
+ overrideUntil?: pulumi.Input<string>;
115
+ }
116
+ export interface DeploymentScalingSpecHibernationSpecSchedule {
117
+ description?: pulumi.Input<string>;
118
+ hibernateAtCron: pulumi.Input<string>;
119
+ isEnabled: pulumi.Input<boolean>;
120
+ wakeAtCron: pulumi.Input<string>;
121
+ }
122
+ export interface DeploymentScalingStatus {
123
+ hibernationStatus?: pulumi.Input<inputs.DeploymentScalingStatusHibernationStatus>;
124
+ }
125
+ export interface DeploymentScalingStatusHibernationStatus {
126
+ isHibernating?: pulumi.Input<boolean>;
127
+ nextEventAt?: pulumi.Input<string>;
128
+ nextEventType?: pulumi.Input<string>;
129
+ reason?: pulumi.Input<string>;
130
+ }
131
+ export interface DeploymentUpdatedBy {
132
+ apiTokenName?: pulumi.Input<string>;
133
+ avatarUrl?: pulumi.Input<string>;
134
+ fullName?: pulumi.Input<string>;
50
135
  id?: pulumi.Input<string>;
136
+ subjectType?: pulumi.Input<string>;
137
+ username?: pulumi.Input<string>;
138
+ }
139
+ export interface DeploymentWorkerQueue {
140
+ /**
141
+ * Worker queue Astro machine value - required for 'STANDARD' and 'DEDICATED' deployments
142
+ */
143
+ astroMachine?: pulumi.Input<string>;
144
+ /**
145
+ * Worker queue default
146
+ */
51
147
  isDefault: pulumi.Input<boolean>;
148
+ /**
149
+ * Worker queue max worker count
150
+ */
52
151
  maxWorkerCount: pulumi.Input<number>;
152
+ /**
153
+ * Worker queue min worker count
154
+ */
53
155
  minWorkerCount: pulumi.Input<number>;
156
+ /**
157
+ * Worker queue name
158
+ */
54
159
  name: pulumi.Input<string>;
160
+ /**
161
+ * Worker queue Node pool identifier - required for 'HYBRID' deployments
162
+ */
163
+ nodePoolId?: pulumi.Input<string>;
164
+ /**
165
+ * Worker queue pod CPU
166
+ */
167
+ podCpu?: pulumi.Input<string>;
168
+ /**
169
+ * Worker queue pod memory
170
+ */
171
+ podMemory?: pulumi.Input<string>;
172
+ /**
173
+ * Worker queue worker concurrency
174
+ */
55
175
  workerConcurrency: pulumi.Input<number>;
56
176
  }
177
+ export interface TeamRolesDeploymentRole {
178
+ /**
179
+ * The ID of the deployment to assign the role to
180
+ */
181
+ deploymentId: pulumi.Input<string>;
182
+ /**
183
+ * The role to assign to the deployment
184
+ */
185
+ role: pulumi.Input<string>;
186
+ }
187
+ export interface TeamRolesWorkspaceRole {
188
+ /**
189
+ * The role to assign to the workspace
190
+ */
191
+ role: pulumi.Input<string>;
192
+ /**
193
+ * The ID of the workspace to assign the role to
194
+ */
195
+ workspaceId: pulumi.Input<string>;
196
+ }
197
+ export interface WorkspaceCreatedBy {
198
+ apiTokenName?: pulumi.Input<string>;
199
+ avatarUrl?: pulumi.Input<string>;
200
+ fullName?: pulumi.Input<string>;
201
+ id?: pulumi.Input<string>;
202
+ subjectType?: pulumi.Input<string>;
203
+ username?: pulumi.Input<string>;
204
+ }
205
+ export interface WorkspaceUpdatedBy {
206
+ apiTokenName?: pulumi.Input<string>;
207
+ avatarUrl?: pulumi.Input<string>;
208
+ fullName?: pulumi.Input<string>;
209
+ id?: pulumi.Input<string>;
210
+ subjectType?: pulumi.Input<string>;
211
+ username?: pulumi.Input<string>;
212
+ }