@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/getCluster.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import * as outputs from "./types/output";
3
3
  /**
4
- * Astronomer Cluster Data Source
4
+ * Cluster data source
5
5
  *
6
6
  * ## Example Usage
7
7
  *
@@ -9,9 +9,10 @@ import * as outputs from "./types/output";
9
9
  * import * as pulumi from "@pulumi/pulumi";
10
10
  * import * as astronomer from "@pulumi/astronomer";
11
11
  *
12
- * const importedCluster = astronomer.getCluster({
13
- * id: "clqoclq8201pp01p0cbt77feb",
12
+ * const exampleCluster = astronomer.getCluster({
13
+ * id: "clozc036j01to01jrlgvueo8t",
14
14
  * });
15
+ * export const cluster = exampleCluster;
15
16
  * ```
16
17
  */
17
18
  export declare function getCluster(args: GetClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetClusterResult>;
@@ -20,7 +21,7 @@ export declare function getCluster(args: GetClusterArgs, opts?: pulumi.InvokeOpt
20
21
  */
21
22
  export interface GetClusterArgs {
22
23
  /**
23
- * The cluster's identifier.
24
+ * Cluster identifier
24
25
  */
25
26
  id: string;
26
27
  }
@@ -29,80 +30,92 @@ export interface GetClusterArgs {
29
30
  */
30
31
  export interface GetClusterResult {
31
32
  /**
32
- * The cluster's cloud provider.
33
+ * Cluster cloud provider
33
34
  */
34
35
  readonly cloudProvider: string;
35
36
  /**
36
- * The type of database instance that is used for the cluster. Required for Hybrid clusters.
37
+ * Cluster creation timestamp
38
+ */
39
+ readonly createdAt: string;
40
+ /**
41
+ * Cluster database instance type
37
42
  */
38
43
  readonly dbInstanceType: string;
39
44
  /**
40
- * The cluster's identifier.
45
+ * Cluster health status
41
46
  */
42
- readonly id: string;
47
+ readonly healthStatus: outputs.GetClusterHealthStatus;
43
48
  /**
44
- * Whether the cluster is limited.
49
+ * Cluster identifier
45
50
  */
46
- readonly isLimited: boolean;
51
+ readonly id: string;
47
52
  /**
48
- * The Kubernetes tags in the cluster.
53
+ * Whether the cluster is limited
49
54
  */
50
- readonly k8sTags: outputs.GetClusterK8sTag[];
55
+ readonly isLimited: boolean;
51
56
  /**
52
- * The cluster's metadata.
57
+ * Cluster metadata
53
58
  */
54
59
  readonly metadata: outputs.GetClusterMetadata;
55
60
  /**
56
- * The cluster's name.
61
+ * Cluster name
57
62
  */
58
63
  readonly name: string;
59
64
  /**
60
- * The list of node pools to create in the cluster.
65
+ * Cluster node pools
61
66
  */
62
67
  readonly nodePools: outputs.GetClusterNodePool[];
63
68
  /**
64
- * The organization this cluster is associated with.
65
- */
66
- readonly organizationId: string;
67
- /**
68
- * The subnet range for Pods. For GCP clusters only.
69
+ * Cluster pod subnet range
69
70
  */
70
71
  readonly podSubnetRange: string;
71
72
  /**
72
- * The provider account ID. Required for Hybrid clusters.
73
+ * Cluster provider account
73
74
  */
74
75
  readonly providerAccount: string;
75
76
  /**
76
- * The cluster's region.
77
+ * Cluster region
77
78
  */
78
79
  readonly region: string;
79
80
  /**
80
- * The service peering range. For GCP clusters only.
81
+ * Cluster service peering range
81
82
  */
82
83
  readonly servicePeeringRange: string;
83
84
  /**
84
- * The service subnet range. For GCP clusters only.
85
+ * Cluster service subnet range
85
86
  */
86
87
  readonly serviceSubnetRange: string;
87
88
  /**
88
- * The tenant ID. For Azure clusters only.
89
+ * Cluster status
90
+ */
91
+ readonly status: string;
92
+ /**
93
+ * Cluster tags
94
+ */
95
+ readonly tags: outputs.GetClusterTag[];
96
+ /**
97
+ * Cluster tenant ID
89
98
  */
90
99
  readonly tenantId: string;
91
100
  /**
92
- * The cluster's type.
101
+ * Cluster type
93
102
  */
94
103
  readonly type: string;
95
104
  /**
96
- * The VPC subnet range.
105
+ * Cluster last updated timestamp
106
+ */
107
+ readonly updatedAt: string;
108
+ /**
109
+ * Cluster VPC subnet range
97
110
  */
98
111
  readonly vpcSubnetRange: string;
99
112
  /**
100
- * The list of Workspaces that are authorized to the cluster.
113
+ * Cluster workspace IDs
101
114
  */
102
115
  readonly workspaceIds: string[];
103
116
  }
104
117
  /**
105
- * Astronomer Cluster Data Source
118
+ * Cluster data source
106
119
  *
107
120
  * ## Example Usage
108
121
  *
@@ -110,9 +123,10 @@ export interface GetClusterResult {
110
123
  * import * as pulumi from "@pulumi/pulumi";
111
124
  * import * as astronomer from "@pulumi/astronomer";
112
125
  *
113
- * const importedCluster = astronomer.getCluster({
114
- * id: "clqoclq8201pp01p0cbt77feb",
126
+ * const exampleCluster = astronomer.getCluster({
127
+ * id: "clozc036j01to01jrlgvueo8t",
115
128
  * });
129
+ * export const cluster = exampleCluster;
116
130
  * ```
117
131
  */
118
132
  export declare function getClusterOutput(args: GetClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetClusterResult>;
@@ -121,7 +135,7 @@ export declare function getClusterOutput(args: GetClusterOutputArgs, opts?: pulu
121
135
  */
122
136
  export interface GetClusterOutputArgs {
123
137
  /**
124
- * The cluster's identifier.
138
+ * Cluster identifier
125
139
  */
126
140
  id: pulumi.Input<string>;
127
141
  }
package/getCluster.js CHANGED
@@ -6,7 +6,7 @@ exports.getClusterOutput = exports.getCluster = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * Astronomer Cluster Data Source
9
+ * Cluster data source
10
10
  *
11
11
  * ## Example Usage
12
12
  *
@@ -14,9 +14,10 @@ const utilities = require("./utilities");
14
14
  * import * as pulumi from "@pulumi/pulumi";
15
15
  * import * as astronomer from "@pulumi/astronomer";
16
16
  *
17
- * const importedCluster = astronomer.getCluster({
18
- * id: "clqoclq8201pp01p0cbt77feb",
17
+ * const exampleCluster = astronomer.getCluster({
18
+ * id: "clozc036j01to01jrlgvueo8t",
19
19
  * });
20
+ * export const cluster = exampleCluster;
20
21
  * ```
21
22
  */
22
23
  function getCluster(args, opts) {
@@ -27,7 +28,7 @@ function getCluster(args, opts) {
27
28
  }
28
29
  exports.getCluster = getCluster;
29
30
  /**
30
- * Astronomer Cluster Data Source
31
+ * Cluster data source
31
32
  *
32
33
  * ## Example Usage
33
34
  *
@@ -35,9 +36,10 @@ exports.getCluster = getCluster;
35
36
  * import * as pulumi from "@pulumi/pulumi";
36
37
  * import * as astronomer from "@pulumi/astronomer";
37
38
  *
38
- * const importedCluster = astronomer.getCluster({
39
- * id: "clqoclq8201pp01p0cbt77feb",
39
+ * const exampleCluster = astronomer.getCluster({
40
+ * id: "clozc036j01to01jrlgvueo8t",
40
41
  * });
42
+ * export const cluster = exampleCluster;
41
43
  * ```
42
44
  */
43
45
  function getClusterOutput(args, opts) {
package/getCluster.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getCluster.js","sourceRoot":"","sources":["../getCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gCAMC;AAyFD;;;;;;;;;;;;;GAaG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
1
+ {"version":3,"file":"getCluster.js","sourceRoot":"","sources":["../getCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gCAMC;AAqGD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
@@ -0,0 +1,68 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * ClusterOptions data source
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as astronomer from "@pulumi/astronomer";
11
+ *
12
+ * const exampleClusterOptions = astronomer.getClusterOptions({
13
+ * type: "HYBRID",
14
+ * });
15
+ * const exampleClusterOptionsFilterByProvider = astronomer.getClusterOptions({
16
+ * type: "HYBRID",
17
+ * cloudProvider: "AWS",
18
+ * });
19
+ * export const clusterOptions = exampleClusterOptions;
20
+ * ```
21
+ */
22
+ export declare function getClusterOptions(args: GetClusterOptionsArgs, opts?: pulumi.InvokeOptions): Promise<GetClusterOptionsResult>;
23
+ /**
24
+ * A collection of arguments for invoking getClusterOptions.
25
+ */
26
+ export interface GetClusterOptionsArgs {
27
+ cloudProvider?: string;
28
+ type: string;
29
+ }
30
+ /**
31
+ * A collection of values returned by getClusterOptions.
32
+ */
33
+ export interface GetClusterOptionsResult {
34
+ readonly cloudProvider?: string;
35
+ readonly clusterOptions: outputs.GetClusterOptionsClusterOption[];
36
+ /**
37
+ * The provider-assigned unique ID for this managed resource.
38
+ */
39
+ readonly id: string;
40
+ readonly type: string;
41
+ }
42
+ /**
43
+ * ClusterOptions data source
44
+ *
45
+ * ## Example Usage
46
+ *
47
+ * ```typescript
48
+ * import * as pulumi from "@pulumi/pulumi";
49
+ * import * as astronomer from "@pulumi/astronomer";
50
+ *
51
+ * const exampleClusterOptions = astronomer.getClusterOptions({
52
+ * type: "HYBRID",
53
+ * });
54
+ * const exampleClusterOptionsFilterByProvider = astronomer.getClusterOptions({
55
+ * type: "HYBRID",
56
+ * cloudProvider: "AWS",
57
+ * });
58
+ * export const clusterOptions = exampleClusterOptions;
59
+ * ```
60
+ */
61
+ export declare function getClusterOptionsOutput(args: GetClusterOptionsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetClusterOptionsResult>;
62
+ /**
63
+ * A collection of arguments for invoking getClusterOptions.
64
+ */
65
+ export interface GetClusterOptionsOutputArgs {
66
+ cloudProvider?: pulumi.Input<string>;
67
+ type: pulumi.Input<string>;
68
+ }
@@ -0,0 +1,58 @@
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.getClusterOptionsOutput = exports.getClusterOptions = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ClusterOptions data source
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as astronomer from "@pulumi/astronomer";
16
+ *
17
+ * const exampleClusterOptions = astronomer.getClusterOptions({
18
+ * type: "HYBRID",
19
+ * });
20
+ * const exampleClusterOptionsFilterByProvider = astronomer.getClusterOptions({
21
+ * type: "HYBRID",
22
+ * cloudProvider: "AWS",
23
+ * });
24
+ * export const clusterOptions = exampleClusterOptions;
25
+ * ```
26
+ */
27
+ function getClusterOptions(args, opts) {
28
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
29
+ return pulumi.runtime.invoke("astronomer:index/getClusterOptions:getClusterOptions", {
30
+ "cloudProvider": args.cloudProvider,
31
+ "type": args.type,
32
+ }, opts);
33
+ }
34
+ exports.getClusterOptions = getClusterOptions;
35
+ /**
36
+ * ClusterOptions data source
37
+ *
38
+ * ## Example Usage
39
+ *
40
+ * ```typescript
41
+ * import * as pulumi from "@pulumi/pulumi";
42
+ * import * as astronomer from "@pulumi/astronomer";
43
+ *
44
+ * const exampleClusterOptions = astronomer.getClusterOptions({
45
+ * type: "HYBRID",
46
+ * });
47
+ * const exampleClusterOptionsFilterByProvider = astronomer.getClusterOptions({
48
+ * type: "HYBRID",
49
+ * cloudProvider: "AWS",
50
+ * });
51
+ * export const clusterOptions = exampleClusterOptions;
52
+ * ```
53
+ */
54
+ function getClusterOptionsOutput(args, opts) {
55
+ return pulumi.output(args).apply((a) => getClusterOptions(a, opts));
56
+ }
57
+ exports.getClusterOptionsOutput = getClusterOptionsOutput;
58
+ //# sourceMappingURL=getClusterOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getClusterOptions.js","sourceRoot":"","sources":["../getClusterOptions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IAEtF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sDAAsD,EAAE;QACjF,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8CAOC;AAsBD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAA2B;IAClG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC5E,CAAC;AAFD,0DAEC"}
@@ -0,0 +1,68 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Clusters data source
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as astronomer from "@pulumi/astronomer";
11
+ *
12
+ * const exampleClusters = astronomer.getClusters({});
13
+ * const exampleClustersFilterByNames = astronomer.getClusters({
14
+ * names: ["my cluster"],
15
+ * });
16
+ * const exampleClustersFilterByCloudProvider = astronomer.getClusters({
17
+ * cloudProvider: "AWS",
18
+ * });
19
+ * export const clusters = exampleClusters;
20
+ * ```
21
+ */
22
+ export declare function getClusters(args?: GetClustersArgs, opts?: pulumi.InvokeOptions): Promise<GetClustersResult>;
23
+ /**
24
+ * A collection of arguments for invoking getClusters.
25
+ */
26
+ export interface GetClustersArgs {
27
+ cloudProvider?: string;
28
+ names?: string[];
29
+ }
30
+ /**
31
+ * A collection of values returned by getClusters.
32
+ */
33
+ export interface GetClustersResult {
34
+ readonly cloudProvider?: string;
35
+ readonly clusters: outputs.GetClustersCluster[];
36
+ /**
37
+ * The provider-assigned unique ID for this managed resource.
38
+ */
39
+ readonly id: string;
40
+ readonly names?: string[];
41
+ }
42
+ /**
43
+ * Clusters data source
44
+ *
45
+ * ## Example Usage
46
+ *
47
+ * ```typescript
48
+ * import * as pulumi from "@pulumi/pulumi";
49
+ * import * as astronomer from "@pulumi/astronomer";
50
+ *
51
+ * const exampleClusters = astronomer.getClusters({});
52
+ * const exampleClustersFilterByNames = astronomer.getClusters({
53
+ * names: ["my cluster"],
54
+ * });
55
+ * const exampleClustersFilterByCloudProvider = astronomer.getClusters({
56
+ * cloudProvider: "AWS",
57
+ * });
58
+ * export const clusters = exampleClusters;
59
+ * ```
60
+ */
61
+ export declare function getClustersOutput(args?: GetClustersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetClustersResult>;
62
+ /**
63
+ * A collection of arguments for invoking getClusters.
64
+ */
65
+ export interface GetClustersOutputArgs {
66
+ cloudProvider?: pulumi.Input<string>;
67
+ names?: pulumi.Input<pulumi.Input<string>[]>;
68
+ }
package/getClusters.js ADDED
@@ -0,0 +1,59 @@
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.getClustersOutput = exports.getClusters = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Clusters data source
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as astronomer from "@pulumi/astronomer";
16
+ *
17
+ * const exampleClusters = astronomer.getClusters({});
18
+ * const exampleClustersFilterByNames = astronomer.getClusters({
19
+ * names: ["my cluster"],
20
+ * });
21
+ * const exampleClustersFilterByCloudProvider = astronomer.getClusters({
22
+ * cloudProvider: "AWS",
23
+ * });
24
+ * export const clusters = exampleClusters;
25
+ * ```
26
+ */
27
+ function getClusters(args, opts) {
28
+ args = args || {};
29
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
30
+ return pulumi.runtime.invoke("astronomer:index/getClusters:getClusters", {
31
+ "cloudProvider": args.cloudProvider,
32
+ "names": args.names,
33
+ }, opts);
34
+ }
35
+ exports.getClusters = getClusters;
36
+ /**
37
+ * Clusters data source
38
+ *
39
+ * ## Example Usage
40
+ *
41
+ * ```typescript
42
+ * import * as pulumi from "@pulumi/pulumi";
43
+ * import * as astronomer from "@pulumi/astronomer";
44
+ *
45
+ * const exampleClusters = astronomer.getClusters({});
46
+ * const exampleClustersFilterByNames = astronomer.getClusters({
47
+ * names: ["my cluster"],
48
+ * });
49
+ * const exampleClustersFilterByCloudProvider = astronomer.getClusters({
50
+ * cloudProvider: "AWS",
51
+ * });
52
+ * export const clusters = exampleClusters;
53
+ * ```
54
+ */
55
+ function getClustersOutput(args, opts) {
56
+ return pulumi.output(args).apply((a) => getClusters(a, opts));
57
+ }
58
+ exports.getClustersOutput = getClustersOutput;
59
+ //# sourceMappingURL=getClusters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getClusters.js","sourceRoot":"","sources":["../getClusters.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,WAAW,CAAC,IAAsB,EAAE,IAA2B;IAC3E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,kCAQC;AAsBD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,8CAEC"}