@ryan-pip/pulumi_astronomer 0.0.11 → 0.2.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 (86) hide show
  1. package/README.md +1 -2
  2. package/apiToken.d.ts +167 -0
  3. package/apiToken.js +86 -0
  4. package/apiToken.js.map +1 -0
  5. package/cluster.d.ts +110 -85
  6. package/cluster.js +51 -19
  7. package/cluster.js.map +1 -1
  8. package/config/vars.d.ts +6 -2
  9. package/config/vars.js +7 -1
  10. package/config/vars.js.map +1 -1
  11. package/deployment.d.ts +305 -90
  12. package/deployment.js +61 -21
  13. package/deployment.js.map +1 -1
  14. package/getApiToken.d.ts +113 -0
  15. package/getApiToken.js +49 -0
  16. package/getApiToken.js.map +1 -0
  17. package/getApiTokens.d.ts +77 -0
  18. package/getApiTokens.js +66 -0
  19. package/getApiTokens.js.map +1 -0
  20. package/getCluster.d.ts +46 -32
  21. package/getCluster.js +8 -6
  22. package/getCluster.js.map +1 -1
  23. package/getClusterOptions.d.ts +68 -0
  24. package/getClusterOptions.js +58 -0
  25. package/getClusterOptions.js.map +1 -0
  26. package/getClusters.d.ts +68 -0
  27. package/getClusters.js +59 -0
  28. package/getClusters.js.map +1 -0
  29. package/getDeployment.d.ts +198 -13
  30. package/getDeployment.js +26 -2
  31. package/getDeployment.js.map +1 -1
  32. package/getDeploymentOptions.d.ts +149 -0
  33. package/getDeploymentOptions.js +73 -0
  34. package/getDeploymentOptions.js.map +1 -0
  35. package/getDeployments.d.ts +77 -0
  36. package/getDeployments.js +66 -0
  37. package/getDeployments.js.map +1 -0
  38. package/getOrganization.d.ts +28 -46
  39. package/getOrganization.js +10 -15
  40. package/getOrganization.js.map +1 -1
  41. package/getTeam.d.ts +105 -0
  42. package/getTeam.js +49 -0
  43. package/getTeam.js.map +1 -0
  44. package/getTeams.d.ts +65 -0
  45. package/getTeams.js +58 -0
  46. package/getTeams.js.map +1 -0
  47. package/getUser.d.ts +97 -0
  48. package/getUser.js +49 -0
  49. package/getUser.js.map +1 -0
  50. package/getUsers.d.ts +68 -0
  51. package/getUsers.js +59 -0
  52. package/getUsers.js.map +1 -0
  53. package/getWorkspace.d.ts +31 -12
  54. package/getWorkspace.js +8 -6
  55. package/getWorkspace.js.map +1 -1
  56. package/getWorkspaces.d.ts +80 -0
  57. package/getWorkspaces.js +71 -0
  58. package/getWorkspaces.js.map +1 -0
  59. package/hybridClusterWorkspaceAuthorization.d.ts +82 -0
  60. package/hybridClusterWorkspaceAuthorization.js +76 -0
  61. package/hybridClusterWorkspaceAuthorization.js.map +1 -0
  62. package/index.d.ts +52 -1
  63. package/index.js +64 -1
  64. package/index.js.map +1 -1
  65. package/package.json +2 -2
  66. package/package.json.bak +1 -1
  67. package/provider.d.ts +13 -5
  68. package/provider.js +3 -2
  69. package/provider.js.map +1 -1
  70. package/team.d.ts +161 -0
  71. package/team.js +77 -0
  72. package/team.js.map +1 -0
  73. package/teamRoles.d.ts +89 -0
  74. package/teamRoles.js +64 -0
  75. package/teamRoles.js.map +1 -0
  76. package/types/input.d.ts +303 -17
  77. package/types/output.d.ts +1737 -33
  78. package/userInvite.d.ts +117 -0
  79. package/userInvite.js +82 -0
  80. package/userInvite.js.map +1 -0
  81. package/userRoles.d.ts +89 -0
  82. package/userRoles.js +64 -0
  83. package/userRoles.js.map +1 -0
  84. package/workspace.d.ts +55 -17
  85. package/workspace.js +21 -3
  86. package/workspace.js.map +1 -1
package/README.md CHANGED
@@ -3,8 +3,7 @@
3
3
  The Astronomer Resource Provider lets you manage [astronomer](https://www.pulumi.com/registry/packages/astronomer/) resources as
4
4
  part of the [Astronomer Cloud](https://www.astronomer.io/).
5
5
 
6
- This provider is a bridged version of the [terraform provider](https://registry.terraform.io/providers/GK-Consulting/astronomer/latest/docs/resources/workspace). The
7
- majority of the credit needs to go to the original [authors](https://github.com/GK-Consulting/terraform-provider-astronomer) of the terraform provider.
6
+ This provider is a bridged version of the offical [astonomer terraform provider](https://registry.terraform.io/providers/astronomer/astro/latest/docs).
8
7
 
9
8
  ## Installing
10
9
 
package/apiToken.d.ts ADDED
@@ -0,0 +1,167 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * API Token resource
6
+ */
7
+ export declare class ApiToken extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing ApiToken resource's state with the given name, ID, and optional extra
10
+ * properties used to qualify the lookup.
11
+ *
12
+ * @param name The _unique_ name of the resulting resource.
13
+ * @param id The _unique_ provider ID of the resource to lookup.
14
+ * @param state Any extra arguments used during the lookup.
15
+ * @param opts Optional settings to control the behavior of the CustomResource.
16
+ */
17
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApiTokenState, opts?: pulumi.CustomResourceOptions): ApiToken;
18
+ /**
19
+ * Returns true if the given object is an instance of ApiToken. This is designed to work even
20
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
21
+ */
22
+ static isInstance(obj: any): obj is ApiToken;
23
+ /**
24
+ * API Token creation timestamp
25
+ */
26
+ readonly createdAt: pulumi.Output<string>;
27
+ /**
28
+ * API Token creator
29
+ */
30
+ readonly createdBy: pulumi.Output<outputs.ApiTokenCreatedBy>;
31
+ /**
32
+ * API Token description
33
+ */
34
+ readonly description: pulumi.Output<string | undefined>;
35
+ /**
36
+ * time when the API token will expire in UTC
37
+ */
38
+ readonly endAt: pulumi.Output<string>;
39
+ /**
40
+ * API Token expiry period in days
41
+ */
42
+ readonly expiryPeriodInDays: pulumi.Output<number | undefined>;
43
+ /**
44
+ * API Token last used timestamp
45
+ */
46
+ readonly lastUsedAt: pulumi.Output<string>;
47
+ /**
48
+ * API Token name
49
+ */
50
+ readonly name: pulumi.Output<string>;
51
+ /**
52
+ * The roles assigned to the API Token
53
+ */
54
+ readonly roles: pulumi.Output<outputs.ApiTokenRole[]>;
55
+ /**
56
+ * API Token short token
57
+ */
58
+ readonly shortToken: pulumi.Output<string>;
59
+ /**
60
+ * time when the API token will become valid in UTC
61
+ */
62
+ readonly startAt: pulumi.Output<string>;
63
+ readonly token: pulumi.Output<string>;
64
+ /**
65
+ * API Token type - if changing this value, the API Token will be recreated with the new type
66
+ */
67
+ readonly type: pulumi.Output<string>;
68
+ /**
69
+ * API Token last updated timestamp
70
+ */
71
+ readonly updatedAt: pulumi.Output<string>;
72
+ /**
73
+ * API Token updater
74
+ */
75
+ readonly updatedBy: pulumi.Output<outputs.ApiTokenUpdatedBy>;
76
+ /**
77
+ * Create a ApiToken resource with the given unique name, arguments, and options.
78
+ *
79
+ * @param name The _unique_ name of the resource.
80
+ * @param args The arguments to use to populate this resource's properties.
81
+ * @param opts A bag of options that control this resource's behavior.
82
+ */
83
+ constructor(name: string, args: ApiTokenArgs, opts?: pulumi.CustomResourceOptions);
84
+ }
85
+ /**
86
+ * Input properties used for looking up and filtering ApiToken resources.
87
+ */
88
+ export interface ApiTokenState {
89
+ /**
90
+ * API Token creation timestamp
91
+ */
92
+ createdAt?: pulumi.Input<string>;
93
+ /**
94
+ * API Token creator
95
+ */
96
+ createdBy?: pulumi.Input<inputs.ApiTokenCreatedBy>;
97
+ /**
98
+ * API Token description
99
+ */
100
+ description?: pulumi.Input<string>;
101
+ /**
102
+ * time when the API token will expire in UTC
103
+ */
104
+ endAt?: pulumi.Input<string>;
105
+ /**
106
+ * API Token expiry period in days
107
+ */
108
+ expiryPeriodInDays?: pulumi.Input<number>;
109
+ /**
110
+ * API Token last used timestamp
111
+ */
112
+ lastUsedAt?: pulumi.Input<string>;
113
+ /**
114
+ * API Token name
115
+ */
116
+ name?: pulumi.Input<string>;
117
+ /**
118
+ * The roles assigned to the API Token
119
+ */
120
+ roles?: pulumi.Input<pulumi.Input<inputs.ApiTokenRole>[]>;
121
+ /**
122
+ * API Token short token
123
+ */
124
+ shortToken?: pulumi.Input<string>;
125
+ /**
126
+ * time when the API token will become valid in UTC
127
+ */
128
+ startAt?: pulumi.Input<string>;
129
+ token?: pulumi.Input<string>;
130
+ /**
131
+ * API Token type - if changing this value, the API Token will be recreated with the new type
132
+ */
133
+ type?: pulumi.Input<string>;
134
+ /**
135
+ * API Token last updated timestamp
136
+ */
137
+ updatedAt?: pulumi.Input<string>;
138
+ /**
139
+ * API Token updater
140
+ */
141
+ updatedBy?: pulumi.Input<inputs.ApiTokenUpdatedBy>;
142
+ }
143
+ /**
144
+ * The set of arguments for constructing a ApiToken resource.
145
+ */
146
+ export interface ApiTokenArgs {
147
+ /**
148
+ * API Token description
149
+ */
150
+ description?: pulumi.Input<string>;
151
+ /**
152
+ * API Token expiry period in days
153
+ */
154
+ expiryPeriodInDays?: pulumi.Input<number>;
155
+ /**
156
+ * API Token name
157
+ */
158
+ name?: pulumi.Input<string>;
159
+ /**
160
+ * The roles assigned to the API Token
161
+ */
162
+ roles: pulumi.Input<pulumi.Input<inputs.ApiTokenRole>[]>;
163
+ /**
164
+ * API Token type - if changing this value, the API Token will be recreated with the new type
165
+ */
166
+ type: pulumi.Input<string>;
167
+ }
package/apiToken.js ADDED
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.ApiToken = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * API Token resource
10
+ */
11
+ class ApiToken extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing ApiToken resource's state with the given name, ID, and optional extra
14
+ * properties used to qualify the lookup.
15
+ *
16
+ * @param name The _unique_ name of the resulting resource.
17
+ * @param id The _unique_ provider ID of the resource to lookup.
18
+ * @param state Any extra arguments used during the lookup.
19
+ * @param opts Optional settings to control the behavior of the CustomResource.
20
+ */
21
+ static get(name, id, state, opts) {
22
+ return new ApiToken(name, state, Object.assign(Object.assign({}, opts), { id: id }));
23
+ }
24
+ /**
25
+ * Returns true if the given object is an instance of ApiToken. This is designed to work even
26
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
27
+ */
28
+ static isInstance(obj) {
29
+ if (obj === undefined || obj === null) {
30
+ return false;
31
+ }
32
+ return obj['__pulumiType'] === ApiToken.__pulumiType;
33
+ }
34
+ constructor(name, argsOrState, opts) {
35
+ let resourceInputs = {};
36
+ opts = opts || {};
37
+ if (opts.id) {
38
+ const state = argsOrState;
39
+ resourceInputs["createdAt"] = state ? state.createdAt : undefined;
40
+ resourceInputs["createdBy"] = state ? state.createdBy : undefined;
41
+ resourceInputs["description"] = state ? state.description : undefined;
42
+ resourceInputs["endAt"] = state ? state.endAt : undefined;
43
+ resourceInputs["expiryPeriodInDays"] = state ? state.expiryPeriodInDays : undefined;
44
+ resourceInputs["lastUsedAt"] = state ? state.lastUsedAt : undefined;
45
+ resourceInputs["name"] = state ? state.name : undefined;
46
+ resourceInputs["roles"] = state ? state.roles : undefined;
47
+ resourceInputs["shortToken"] = state ? state.shortToken : undefined;
48
+ resourceInputs["startAt"] = state ? state.startAt : undefined;
49
+ resourceInputs["token"] = state ? state.token : undefined;
50
+ resourceInputs["type"] = state ? state.type : undefined;
51
+ resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
52
+ resourceInputs["updatedBy"] = state ? state.updatedBy : undefined;
53
+ }
54
+ else {
55
+ const args = argsOrState;
56
+ if ((!args || args.roles === undefined) && !opts.urn) {
57
+ throw new Error("Missing required property 'roles'");
58
+ }
59
+ if ((!args || args.type === undefined) && !opts.urn) {
60
+ throw new Error("Missing required property 'type'");
61
+ }
62
+ resourceInputs["description"] = args ? args.description : undefined;
63
+ resourceInputs["expiryPeriodInDays"] = args ? args.expiryPeriodInDays : undefined;
64
+ resourceInputs["name"] = args ? args.name : undefined;
65
+ resourceInputs["roles"] = args ? args.roles : undefined;
66
+ resourceInputs["type"] = args ? args.type : undefined;
67
+ resourceInputs["createdAt"] = undefined /*out*/;
68
+ resourceInputs["createdBy"] = undefined /*out*/;
69
+ resourceInputs["endAt"] = undefined /*out*/;
70
+ resourceInputs["lastUsedAt"] = undefined /*out*/;
71
+ resourceInputs["shortToken"] = undefined /*out*/;
72
+ resourceInputs["startAt"] = undefined /*out*/;
73
+ resourceInputs["token"] = undefined /*out*/;
74
+ resourceInputs["updatedAt"] = undefined /*out*/;
75
+ resourceInputs["updatedBy"] = undefined /*out*/;
76
+ }
77
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
78
+ const secretOpts = { additionalSecretOutputs: ["token"] };
79
+ opts = pulumi.mergeOptions(opts, secretOpts);
80
+ super(ApiToken.__pulumiType, name, resourceInputs, opts);
81
+ }
82
+ }
83
+ exports.ApiToken = ApiToken;
84
+ /** @internal */
85
+ ApiToken.__pulumiType = 'astronomer:index/apiToken:ApiToken';
86
+ //# sourceMappingURL=apiToken.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apiToken.js","sourceRoot":"","sources":["../apiToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAgED,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE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ACxD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAxIL,4BAyIC;AA3HG,gBAAgB;AACO,qBAAY,GAAG,oCAAoC,CAAC"}
package/cluster.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
4
  /**
5
- * A cluster within an organization. An Astro cluster is a Kubernetes cluster that hosts the infrastructure required to run Deployments.
5
+ * Cluster resource. If creating multiple clusters, add a delay between each cluster creation to avoid cluster creation limiting errors.
6
6
  *
7
7
  * ## Example Usage
8
8
  *
@@ -10,18 +10,44 @@ import * as outputs from "./types/output";
10
10
  * import * as pulumi from "@pulumi/pulumi";
11
11
  * import * as astronomer from "@ryan-pip/pulumi_astronomer";
12
12
  *
13
- * const dedicated = new astronomer.Workspace("dedicated", {
14
- * cicdEnforcedDefault: true,
15
- * description: "Workspace that demos a dedicated deployment set up",
16
- * });
17
- * const awsDedicated = new astronomer.Cluster("awsDedicated", {
18
- * cloudProvider: "AWS",
19
- * region: "us-east-1",
13
+ * const awsExample = new astronomer.Cluster("awsExample", {
20
14
  * type: "DEDICATED",
15
+ * region: "us-east-1",
16
+ * cloudProvider: "AWS",
21
17
  * vpcSubnetRange: "172.20.0.0/20",
22
- * k8sTags: [],
23
- * nodePools: [],
24
- * workspaceIds: [dedicated.id],
18
+ * workspaceIds: [],
19
+ * timeouts: {
20
+ * create: "3h",
21
+ * update: "2h",
22
+ * "delete": "1h",
23
+ * },
24
+ * });
25
+ * const azureExample = new astronomer.Cluster("azureExample", {
26
+ * type: "DEDICATED",
27
+ * region: "westus2",
28
+ * cloudProvider: "AZURE",
29
+ * vpcSubnetRange: "172.20.0.0/19",
30
+ * workspaceIds: ["clv4wcf6f003u01m3zp7gsvzg"],
31
+ * });
32
+ * const gcpExample = new astronomer.Cluster("gcpExample", {
33
+ * type: "DEDICATED",
34
+ * region: "us-central1",
35
+ * cloudProvider: "GCP",
36
+ * podSubnetRange: "172.21.0.0/19",
37
+ * servicePeeringRange: "172.23.0.0/20",
38
+ * serviceSubnetRange: "172.22.0.0/22",
39
+ * vpcSubnetRange: "172.20.0.0/22",
40
+ * workspaceIds: [],
41
+ * });
42
+ * const importedCluster = new astronomer.Cluster("importedCluster", {
43
+ * type: "DEDICATED",
44
+ * region: "us-central1",
45
+ * cloudProvider: "GCP",
46
+ * podSubnetRange: "172.21.0.0/19",
47
+ * servicePeeringRange: "172.23.0.0/20",
48
+ * serviceSubnetRange: "172.22.0.0/22",
49
+ * vpcSubnetRange: "172.20.0.0/22",
50
+ * workspaceIds: [],
25
51
  * });
26
52
  * ```
27
53
  */
@@ -42,71 +68,80 @@ export declare class Cluster extends pulumi.CustomResource {
42
68
  */
43
69
  static isInstance(obj: any): obj is Cluster;
44
70
  /**
45
- * The cluster's cloud provider.
71
+ * Cluster cloud provider - if changed, the cluster will be recreated.
46
72
  */
47
73
  readonly cloudProvider: pulumi.Output<string>;
48
74
  /**
49
- * The type of database instance that is used for the cluster. Required for Hybrid clusters.
75
+ * Cluster creation timestamp
76
+ */
77
+ readonly createdAt: pulumi.Output<string>;
78
+ /**
79
+ * Cluster database instance type
50
80
  */
51
81
  readonly dbInstanceType: pulumi.Output<string>;
52
82
  /**
53
- * Whether the cluster is limited.
83
+ * Cluster health status
54
84
  */
55
- readonly isLimited: pulumi.Output<boolean>;
85
+ readonly healthStatus: pulumi.Output<outputs.ClusterHealthStatus>;
56
86
  /**
57
- * The Kubernetes tags in the cluster.
87
+ * Whether the cluster is limited
58
88
  */
59
- readonly k8sTags: pulumi.Output<outputs.ClusterK8sTag[] | undefined>;
89
+ readonly isLimited: pulumi.Output<boolean>;
60
90
  /**
61
- * The cluster's metadata.
91
+ * Cluster metadata
62
92
  */
63
93
  readonly metadata: pulumi.Output<outputs.ClusterMetadata>;
64
94
  /**
65
- * The name of the node pool.
95
+ * Cluster name
66
96
  */
67
97
  readonly name: pulumi.Output<string>;
68
98
  /**
69
- * The list of node pools to create in the cluster.
99
+ * Cluster node pools
70
100
  */
71
- readonly nodePools: pulumi.Output<outputs.ClusterNodePool[] | undefined>;
101
+ readonly nodePools: pulumi.Output<outputs.ClusterNodePool[]>;
72
102
  /**
73
- * The organization this cluster is associated with.
74
- */
75
- readonly organizationId: pulumi.Output<string>;
76
- /**
77
- * The subnet range for Pods. For GCP clusters only.
103
+ * Cluster pod subnet range - required for 'GCP' clusters. If changed, the cluster will be recreated.
78
104
  */
79
105
  readonly podSubnetRange: pulumi.Output<string | undefined>;
80
106
  /**
81
- * The provider account ID. Required for Hybrid clusters.
107
+ * Cluster provider account
82
108
  */
83
109
  readonly providerAccount: pulumi.Output<string>;
84
110
  /**
85
- * The cluster's region.
111
+ * Cluster region - if changed, the cluster will be recreated.
86
112
  */
87
113
  readonly region: pulumi.Output<string>;
88
114
  /**
89
- * The service peering range. For GCP clusters only.
115
+ * Cluster service peering range - required for 'GCP' clusters. If changed, the cluster will be recreated.
90
116
  */
91
117
  readonly servicePeeringRange: pulumi.Output<string | undefined>;
92
118
  /**
93
- * The service subnet range. For GCP clusters only.
119
+ * Cluster service subnet range - required for 'GCP' clusters. If changed, the cluster will be recreated.
94
120
  */
95
121
  readonly serviceSubnetRange: pulumi.Output<string | undefined>;
96
122
  /**
97
- * The tenant ID. For Azure clusters only.
123
+ * Cluster status
124
+ */
125
+ readonly status: pulumi.Output<string>;
126
+ /**
127
+ * Cluster tenant ID
98
128
  */
99
129
  readonly tenantId: pulumi.Output<string>;
130
+ readonly timeouts: pulumi.Output<outputs.ClusterTimeouts | undefined>;
100
131
  /**
101
- * The cluster's type.
132
+ * Cluster type
102
133
  */
103
134
  readonly type: pulumi.Output<string>;
104
135
  /**
105
- * The VPC subnet range.
136
+ * Cluster last updated timestamp
137
+ */
138
+ readonly updatedAt: pulumi.Output<string>;
139
+ /**
140
+ * Cluster VPC subnet range. If changed, the cluster will be recreated.
106
141
  */
107
142
  readonly vpcSubnetRange: pulumi.Output<string>;
108
143
  /**
109
- * The list of Workspaces that are authorized to the cluster.
144
+ * Cluster workspace IDs
110
145
  */
111
146
  readonly workspaceIds: pulumi.Output<string[]>;
112
147
  /**
@@ -123,71 +158,80 @@ export declare class Cluster extends pulumi.CustomResource {
123
158
  */
124
159
  export interface ClusterState {
125
160
  /**
126
- * The cluster's cloud provider.
161
+ * Cluster cloud provider - if changed, the cluster will be recreated.
127
162
  */
128
163
  cloudProvider?: pulumi.Input<string>;
129
164
  /**
130
- * The type of database instance that is used for the cluster. Required for Hybrid clusters.
165
+ * Cluster creation timestamp
166
+ */
167
+ createdAt?: pulumi.Input<string>;
168
+ /**
169
+ * Cluster database instance type
131
170
  */
132
171
  dbInstanceType?: pulumi.Input<string>;
133
172
  /**
134
- * Whether the cluster is limited.
173
+ * Cluster health status
135
174
  */
136
- isLimited?: pulumi.Input<boolean>;
175
+ healthStatus?: pulumi.Input<inputs.ClusterHealthStatus>;
137
176
  /**
138
- * The Kubernetes tags in the cluster.
177
+ * Whether the cluster is limited
139
178
  */
140
- k8sTags?: pulumi.Input<pulumi.Input<inputs.ClusterK8sTag>[]>;
179
+ isLimited?: pulumi.Input<boolean>;
141
180
  /**
142
- * The cluster's metadata.
181
+ * Cluster metadata
143
182
  */
144
183
  metadata?: pulumi.Input<inputs.ClusterMetadata>;
145
184
  /**
146
- * The name of the node pool.
185
+ * Cluster name
147
186
  */
148
187
  name?: pulumi.Input<string>;
149
188
  /**
150
- * The list of node pools to create in the cluster.
189
+ * Cluster node pools
151
190
  */
152
191
  nodePools?: pulumi.Input<pulumi.Input<inputs.ClusterNodePool>[]>;
153
192
  /**
154
- * The organization this cluster is associated with.
155
- */
156
- organizationId?: pulumi.Input<string>;
157
- /**
158
- * The subnet range for Pods. For GCP clusters only.
193
+ * Cluster pod subnet range - required for 'GCP' clusters. If changed, the cluster will be recreated.
159
194
  */
160
195
  podSubnetRange?: pulumi.Input<string>;
161
196
  /**
162
- * The provider account ID. Required for Hybrid clusters.
197
+ * Cluster provider account
163
198
  */
164
199
  providerAccount?: pulumi.Input<string>;
165
200
  /**
166
- * The cluster's region.
201
+ * Cluster region - if changed, the cluster will be recreated.
167
202
  */
168
203
  region?: pulumi.Input<string>;
169
204
  /**
170
- * The service peering range. For GCP clusters only.
205
+ * Cluster service peering range - required for 'GCP' clusters. If changed, the cluster will be recreated.
171
206
  */
172
207
  servicePeeringRange?: pulumi.Input<string>;
173
208
  /**
174
- * The service subnet range. For GCP clusters only.
209
+ * Cluster service subnet range - required for 'GCP' clusters. If changed, the cluster will be recreated.
175
210
  */
176
211
  serviceSubnetRange?: pulumi.Input<string>;
177
212
  /**
178
- * The tenant ID. For Azure clusters only.
213
+ * Cluster status
214
+ */
215
+ status?: pulumi.Input<string>;
216
+ /**
217
+ * Cluster tenant ID
179
218
  */
180
219
  tenantId?: pulumi.Input<string>;
220
+ timeouts?: pulumi.Input<inputs.ClusterTimeouts>;
181
221
  /**
182
- * The cluster's type.
222
+ * Cluster type
183
223
  */
184
224
  type?: pulumi.Input<string>;
185
225
  /**
186
- * The VPC subnet range.
226
+ * Cluster last updated timestamp
227
+ */
228
+ updatedAt?: pulumi.Input<string>;
229
+ /**
230
+ * Cluster VPC subnet range. If changed, the cluster will be recreated.
187
231
  */
188
232
  vpcSubnetRange?: pulumi.Input<string>;
189
233
  /**
190
- * The list of Workspaces that are authorized to the cluster.
234
+ * Cluster workspace IDs
191
235
  */
192
236
  workspaceIds?: pulumi.Input<pulumi.Input<string>[]>;
193
237
  }
@@ -196,59 +240,40 @@ export interface ClusterState {
196
240
  */
197
241
  export interface ClusterArgs {
198
242
  /**
199
- * The cluster's cloud provider.
243
+ * Cluster cloud provider - if changed, the cluster will be recreated.
200
244
  */
201
245
  cloudProvider: pulumi.Input<string>;
202
246
  /**
203
- * The type of database instance that is used for the cluster. Required for Hybrid clusters.
204
- */
205
- dbInstanceType?: pulumi.Input<string>;
206
- /**
207
- * The Kubernetes tags in the cluster.
208
- */
209
- k8sTags?: pulumi.Input<pulumi.Input<inputs.ClusterK8sTag>[]>;
210
- /**
211
- * The name of the node pool.
247
+ * Cluster name
212
248
  */
213
249
  name?: pulumi.Input<string>;
214
250
  /**
215
- * The list of node pools to create in the cluster.
216
- */
217
- nodePools?: pulumi.Input<pulumi.Input<inputs.ClusterNodePool>[]>;
218
- /**
219
- * The subnet range for Pods. For GCP clusters only.
251
+ * Cluster pod subnet range - required for 'GCP' clusters. If changed, the cluster will be recreated.
220
252
  */
221
253
  podSubnetRange?: pulumi.Input<string>;
222
254
  /**
223
- * The provider account ID. Required for Hybrid clusters.
224
- */
225
- providerAccount?: pulumi.Input<string>;
226
- /**
227
- * The cluster's region.
255
+ * Cluster region - if changed, the cluster will be recreated.
228
256
  */
229
257
  region: pulumi.Input<string>;
230
258
  /**
231
- * The service peering range. For GCP clusters only.
259
+ * Cluster service peering range - required for 'GCP' clusters. If changed, the cluster will be recreated.
232
260
  */
233
261
  servicePeeringRange?: pulumi.Input<string>;
234
262
  /**
235
- * The service subnet range. For GCP clusters only.
263
+ * Cluster service subnet range - required for 'GCP' clusters. If changed, the cluster will be recreated.
236
264
  */
237
265
  serviceSubnetRange?: pulumi.Input<string>;
266
+ timeouts?: pulumi.Input<inputs.ClusterTimeouts>;
238
267
  /**
239
- * The tenant ID. For Azure clusters only.
240
- */
241
- tenantId?: pulumi.Input<string>;
242
- /**
243
- * The cluster's type.
268
+ * Cluster type
244
269
  */
245
270
  type: pulumi.Input<string>;
246
271
  /**
247
- * The VPC subnet range.
272
+ * Cluster VPC subnet range. If changed, the cluster will be recreated.
248
273
  */
249
274
  vpcSubnetRange: pulumi.Input<string>;
250
275
  /**
251
- * The list of Workspaces that are authorized to the cluster.
276
+ * Cluster workspace IDs
252
277
  */
253
278
  workspaceIds: pulumi.Input<pulumi.Input<string>[]>;
254
279
  }