@ryan-pip/pulumi_astronomer 0.0.10 → 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 +312 -85
  9. package/deployment.js +63 -18
  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
@@ -1,7 +1,7 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import * as outputs from "./types/output";
3
3
  /**
4
- * Astronomer Organization Resource
4
+ * Organization data source
5
5
  *
6
6
  * ## Example Usage
7
7
  *
@@ -9,77 +9,69 @@ 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 test = astronomer.getOrganization({
13
- * id: "abc123",
14
- * });
12
+ * const example = astronomer.getOrganization({});
15
13
  * ```
16
14
  */
17
- export declare function getOrganization(args: GetOrganizationArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationResult>;
18
- /**
19
- * A collection of arguments for invoking getOrganization.
20
- */
21
- export interface GetOrganizationArgs {
22
- id: string;
23
- /**
24
- * Payment method (if set)
25
- */
26
- paymentMethod?: string;
27
- }
15
+ export declare function getOrganization(opts?: pulumi.InvokeOptions): Promise<GetOrganizationResult>;
28
16
  /**
29
17
  * A collection of values returned by getOrganization.
30
18
  */
31
19
  export interface GetOrganizationResult {
32
20
  /**
33
- * Billing email on file for the organization.
21
+ * Organization billing email
34
22
  */
35
23
  readonly billingEmail: string;
36
24
  /**
37
- * Timestamped string of when this organization was created
25
+ * Organization creation timestamp
38
26
  */
39
27
  readonly createdAt: string;
40
28
  /**
41
- * Organization's unique identifier
29
+ * Organization creator
42
30
  */
43
- readonly id: string;
31
+ readonly createdBy: outputs.GetOrganizationCreatedBy;
44
32
  /**
45
- * Whether or not scim is enabled
33
+ * Organization identifier
46
34
  */
47
- readonly isScimEnabled: boolean;
35
+ readonly id: string;
48
36
  /**
49
- * List of managed domains (nested)
37
+ * Whether SCIM is enabled for the organization
50
38
  */
51
- readonly managedDomains: outputs.GetOrganizationManagedDomain[];
39
+ readonly isScimEnabled: boolean;
52
40
  /**
53
- * Organization's name
41
+ * Organization name
54
42
  */
55
43
  readonly name: string;
56
44
  /**
57
- * Payment method (if set)
45
+ * Organization payment method
58
46
  */
59
- readonly paymentMethod?: string;
47
+ readonly paymentMethod: string;
60
48
  /**
61
- * Type of astro product (e.g. hosted or hybrid)
49
+ * Organization product type
62
50
  */
63
51
  readonly product: string;
64
52
  /**
65
- * Status of the organization
53
+ * Organization status
66
54
  */
67
55
  readonly status: string;
68
56
  /**
69
- * Type of support plan the organization has
57
+ * Organization support plan
70
58
  */
71
59
  readonly supportPlan: string;
72
60
  /**
73
- * When the trial expires, if organization is in a trial
61
+ * Organization trial expiration timestamp
74
62
  */
75
63
  readonly trialExpiresAt: string;
76
64
  /**
77
- * Last time the organization was updated
65
+ * Organization last updated timestamp
78
66
  */
79
67
  readonly updatedAt: string;
68
+ /**
69
+ * Organization updater
70
+ */
71
+ readonly updatedBy: outputs.GetOrganizationUpdatedBy;
80
72
  }
81
73
  /**
82
- * Astronomer Organization Resource
74
+ * Organization data source
83
75
  *
84
76
  * ## Example Usage
85
77
  *
@@ -87,19 +79,7 @@ export interface GetOrganizationResult {
87
79
  * import * as pulumi from "@pulumi/pulumi";
88
80
  * import * as astronomer from "@pulumi/astronomer";
89
81
  *
90
- * const test = astronomer.getOrganization({
91
- * id: "abc123",
92
- * });
82
+ * const example = astronomer.getOrganization({});
93
83
  * ```
94
84
  */
95
- export declare function getOrganizationOutput(args: GetOrganizationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetOrganizationResult>;
96
- /**
97
- * A collection of arguments for invoking getOrganization.
98
- */
99
- export interface GetOrganizationOutputArgs {
100
- id: pulumi.Input<string>;
101
- /**
102
- * Payment method (if set)
103
- */
104
- paymentMethod?: pulumi.Input<string>;
105
- }
85
+ export declare function getOrganizationOutput(opts?: pulumi.InvokeOptions): pulumi.Output<GetOrganizationResult>;
@@ -6,7 +6,7 @@ exports.getOrganizationOutput = exports.getOrganization = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * Astronomer Organization Resource
9
+ * Organization data source
10
10
  *
11
11
  * ## Example Usage
12
12
  *
@@ -14,21 +14,16 @@ const utilities = require("./utilities");
14
14
  * import * as pulumi from "@pulumi/pulumi";
15
15
  * import * as astronomer from "@pulumi/astronomer";
16
16
  *
17
- * const test = astronomer.getOrganization({
18
- * id: "abc123",
19
- * });
17
+ * const example = astronomer.getOrganization({});
20
18
  * ```
21
19
  */
22
- function getOrganization(args, opts) {
20
+ function getOrganization(opts) {
23
21
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
24
- return pulumi.runtime.invoke("astronomer:index/getOrganization:getOrganization", {
25
- "id": args.id,
26
- "paymentMethod": args.paymentMethod,
27
- }, opts);
22
+ return pulumi.runtime.invoke("astronomer:index/getOrganization:getOrganization", {}, opts);
28
23
  }
29
24
  exports.getOrganization = getOrganization;
30
25
  /**
31
- * Astronomer Organization Resource
26
+ * Organization data source
32
27
  *
33
28
  * ## Example Usage
34
29
  *
@@ -36,13 +31,11 @@ exports.getOrganization = getOrganization;
36
31
  * import * as pulumi from "@pulumi/pulumi";
37
32
  * import * as astronomer from "@pulumi/astronomer";
38
33
  *
39
- * const test = astronomer.getOrganization({
40
- * id: "abc123",
41
- * });
34
+ * const example = astronomer.getOrganization({});
42
35
  * ```
43
36
  */
44
- function getOrganizationOutput(args, opts) {
45
- return pulumi.output(args).apply((a) => getOrganization(a, opts));
37
+ function getOrganizationOutput(opts) {
38
+ return pulumi.output(getOrganization(opts));
46
39
  }
47
40
  exports.getOrganizationOutput = getOrganizationOutput;
48
41
  //# sourceMappingURL=getOrganization.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getOrganization.js","sourceRoot":"","sources":["../getOrganization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAElF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kDAAkD,EAAE;QAC7E,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,eAAe,EAAE,IAAI,CAAC,aAAa;KACtC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0CAOC;AAkED;;;;;;;;;;;;;GAaG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
1
+ {"version":3,"file":"getOrganization.js","sourceRoot":"","sources":["../getOrganization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;GAWG;AACH,SAAgB,eAAe,CAAC,IAA2B;IAEvD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kDAAkD,EAAE,EAChF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0CAKC;AA2DD;;;;;;;;;;;GAWG;AACH,SAAgB,qBAAqB,CAAC,IAA2B;IAC7D,OAAO,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAA;AAC/C,CAAC;AAFD,sDAEC"}
package/getTeam.d.ts ADDED
@@ -0,0 +1,103 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Team 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 example = astronomer.getTeam({
13
+ * id: "clwbclrc100bl01ozjj5s4jmq",
14
+ * });
15
+ * ```
16
+ */
17
+ export declare function getTeam(args: GetTeamArgs, opts?: pulumi.InvokeOptions): Promise<GetTeamResult>;
18
+ /**
19
+ * A collection of arguments for invoking getTeam.
20
+ */
21
+ export interface GetTeamArgs {
22
+ /**
23
+ * Team identifier
24
+ */
25
+ id: string;
26
+ }
27
+ /**
28
+ * A collection of values returned by getTeam.
29
+ */
30
+ export interface GetTeamResult {
31
+ /**
32
+ * Team creation timestamp
33
+ */
34
+ readonly createdAt: string;
35
+ /**
36
+ * Team creator
37
+ */
38
+ readonly createdBy: outputs.GetTeamCreatedBy;
39
+ /**
40
+ * The roles assigned to the deployments
41
+ */
42
+ readonly deploymentRoles: outputs.GetTeamDeploymentRole[];
43
+ /**
44
+ * Team description
45
+ */
46
+ readonly description: string;
47
+ /**
48
+ * Team identifier
49
+ */
50
+ readonly id: string;
51
+ /**
52
+ * Whether the team is managed by an identity provider
53
+ */
54
+ readonly isIdpManaged: boolean;
55
+ /**
56
+ * Team name
57
+ */
58
+ readonly name: string;
59
+ /**
60
+ * The role assigned to the organization
61
+ */
62
+ readonly organizationRole: string;
63
+ /**
64
+ * Number of roles assigned to the team
65
+ */
66
+ readonly rolesCount: number;
67
+ /**
68
+ * Team last updated timestamp
69
+ */
70
+ readonly updatedAt: string;
71
+ /**
72
+ * Team updater
73
+ */
74
+ readonly updatedBy: outputs.GetTeamUpdatedBy;
75
+ /**
76
+ * The roles assigned to the workspaces
77
+ */
78
+ readonly workspaceRoles: outputs.GetTeamWorkspaceRole[];
79
+ }
80
+ /**
81
+ * Team data source
82
+ *
83
+ * ## Example Usage
84
+ *
85
+ * ```typescript
86
+ * import * as pulumi from "@pulumi/pulumi";
87
+ * import * as astronomer from "@pulumi/astronomer";
88
+ *
89
+ * const example = astronomer.getTeam({
90
+ * id: "clwbclrc100bl01ozjj5s4jmq",
91
+ * });
92
+ * ```
93
+ */
94
+ export declare function getTeamOutput(args: GetTeamOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTeamResult>;
95
+ /**
96
+ * A collection of arguments for invoking getTeam.
97
+ */
98
+ export interface GetTeamOutputArgs {
99
+ /**
100
+ * Team identifier
101
+ */
102
+ id: pulumi.Input<string>;
103
+ }
package/getTeam.js ADDED
@@ -0,0 +1,47 @@
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.getTeamOutput = exports.getTeam = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Team 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 example = astronomer.getTeam({
18
+ * id: "clwbclrc100bl01ozjj5s4jmq",
19
+ * });
20
+ * ```
21
+ */
22
+ function getTeam(args, opts) {
23
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
24
+ return pulumi.runtime.invoke("astronomer:index/getTeam:getTeam", {
25
+ "id": args.id,
26
+ }, opts);
27
+ }
28
+ exports.getTeam = getTeam;
29
+ /**
30
+ * Team data source
31
+ *
32
+ * ## Example Usage
33
+ *
34
+ * ```typescript
35
+ * import * as pulumi from "@pulumi/pulumi";
36
+ * import * as astronomer from "@pulumi/astronomer";
37
+ *
38
+ * const example = astronomer.getTeam({
39
+ * id: "clwbclrc100bl01ozjj5s4jmq",
40
+ * });
41
+ * ```
42
+ */
43
+ function getTeamOutput(args, opts) {
44
+ return pulumi.output(args).apply((a) => getTeam(a, opts));
45
+ }
46
+ exports.getTeamOutput = getTeamOutput;
47
+ //# sourceMappingURL=getTeam.js.map
package/getTeam.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTeam.js","sourceRoot":"","sources":["../getTeam.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,OAAO,CAAC,IAAiB,EAAE,IAA2B;IAElE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kCAAkC,EAAE;QAC7D,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,0BAMC;AAiED;;;;;;;;;;;;;GAaG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAC9E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,sCAEC"}
package/getTeams.d.ts ADDED
@@ -0,0 +1,63 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Teams 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 exampleTeams = astronomer.getTeams({});
13
+ * const exampleTeamsFilterByNames = astronomer.getTeams({
14
+ * names: [
15
+ * "my first team",
16
+ * "my second team",
17
+ * ],
18
+ * });
19
+ * ```
20
+ */
21
+ export declare function getTeams(args?: GetTeamsArgs, opts?: pulumi.InvokeOptions): Promise<GetTeamsResult>;
22
+ /**
23
+ * A collection of arguments for invoking getTeams.
24
+ */
25
+ export interface GetTeamsArgs {
26
+ names?: string[];
27
+ }
28
+ /**
29
+ * A collection of values returned by getTeams.
30
+ */
31
+ export interface GetTeamsResult {
32
+ /**
33
+ * The provider-assigned unique ID for this managed resource.
34
+ */
35
+ readonly id: string;
36
+ readonly names?: string[];
37
+ readonly teams: outputs.GetTeamsTeam[];
38
+ }
39
+ /**
40
+ * Teams data source
41
+ *
42
+ * ## Example Usage
43
+ *
44
+ * ```typescript
45
+ * import * as pulumi from "@pulumi/pulumi";
46
+ * import * as astronomer from "@pulumi/astronomer";
47
+ *
48
+ * const exampleTeams = astronomer.getTeams({});
49
+ * const exampleTeamsFilterByNames = astronomer.getTeams({
50
+ * names: [
51
+ * "my first team",
52
+ * "my second team",
53
+ * ],
54
+ * });
55
+ * ```
56
+ */
57
+ export declare function getTeamsOutput(args?: GetTeamsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTeamsResult>;
58
+ /**
59
+ * A collection of arguments for invoking getTeams.
60
+ */
61
+ export interface GetTeamsOutputArgs {
62
+ names?: pulumi.Input<pulumi.Input<string>[]>;
63
+ }
package/getTeams.js ADDED
@@ -0,0 +1,56 @@
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.getTeamsOutput = exports.getTeams = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Teams 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 exampleTeams = astronomer.getTeams({});
18
+ * const exampleTeamsFilterByNames = astronomer.getTeams({
19
+ * names: [
20
+ * "my first team",
21
+ * "my second team",
22
+ * ],
23
+ * });
24
+ * ```
25
+ */
26
+ function getTeams(args, opts) {
27
+ args = args || {};
28
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
29
+ return pulumi.runtime.invoke("astronomer:index/getTeams:getTeams", {
30
+ "names": args.names,
31
+ }, opts);
32
+ }
33
+ exports.getTeams = getTeams;
34
+ /**
35
+ * Teams data source
36
+ *
37
+ * ## Example Usage
38
+ *
39
+ * ```typescript
40
+ * import * as pulumi from "@pulumi/pulumi";
41
+ * import * as astronomer from "@pulumi/astronomer";
42
+ *
43
+ * const exampleTeams = astronomer.getTeams({});
44
+ * const exampleTeamsFilterByNames = astronomer.getTeams({
45
+ * names: [
46
+ * "my first team",
47
+ * "my second team",
48
+ * ],
49
+ * });
50
+ * ```
51
+ */
52
+ function getTeamsOutput(args, opts) {
53
+ return pulumi.output(args).apply((a) => getTeams(a, opts));
54
+ }
55
+ exports.getTeamsOutput = getTeamsOutput;
56
+ //# sourceMappingURL=getTeams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTeams.js","sourceRoot":"","sources":["../getTeams.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,QAAQ,CAAC,IAAmB,EAAE,IAA2B;IACrE,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,oCAAoC,EAAE;QAC/D,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,4BAOC;AAoBD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,wCAEC"}
package/getWorkspace.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
2
3
  /**
3
- * Astronomer Workspace Resource
4
+ * Workspace data source
4
5
  *
5
6
  * ## Example Usage
6
7
  *
@@ -8,8 +9,8 @@ import * as pulumi from "@pulumi/pulumi";
8
9
  * import * as pulumi from "@pulumi/pulumi";
9
10
  * import * as astronomer from "@pulumi/astronomer";
10
11
  *
11
- * const importedWorkspace = astronomer.getWorkspace({
12
- * id: "cabcabcabcabcabcabcabcabcabc",
12
+ * const example = astronomer.getWorkspace({
13
+ * id: "clozc036j01to01jrlgvueo8t",
13
14
  * });
14
15
  * ```
15
16
  */
@@ -19,7 +20,7 @@ export declare function getWorkspace(args: GetWorkspaceArgs, opts?: pulumi.Invok
19
20
  */
20
21
  export interface GetWorkspaceArgs {
21
22
  /**
22
- * The Workspace's identifier.
23
+ * Workspace identifier
23
24
  */
24
25
  id: string;
25
26
  }
@@ -28,24 +29,40 @@ export interface GetWorkspaceArgs {
28
29
  */
29
30
  export interface GetWorkspaceResult {
30
31
  /**
31
- * Whether new Deployments enforce CI/CD deploys by default.
32
+ * Whether new Deployments enforce CI/CD deploys by default
32
33
  */
33
34
  readonly cicdEnforcedDefault: boolean;
34
35
  /**
35
- * The Workspace's description
36
+ * Workspace creation timestamp
37
+ */
38
+ readonly createdAt: string;
39
+ /**
40
+ * Workspace creator
41
+ */
42
+ readonly createdBy: outputs.GetWorkspaceCreatedBy;
43
+ /**
44
+ * Workspace description
36
45
  */
37
46
  readonly description: string;
38
47
  /**
39
- * The Workspace's identifier.
48
+ * Workspace identifier
40
49
  */
41
50
  readonly id: string;
42
51
  /**
43
- * The Workspace's name
52
+ * Workspace name
44
53
  */
45
54
  readonly name: string;
55
+ /**
56
+ * Workspace last updated timestamp
57
+ */
58
+ readonly updatedAt: string;
59
+ /**
60
+ * Workspace updater
61
+ */
62
+ readonly updatedBy: outputs.GetWorkspaceUpdatedBy;
46
63
  }
47
64
  /**
48
- * Astronomer Workspace Resource
65
+ * Workspace data source
49
66
  *
50
67
  * ## Example Usage
51
68
  *
@@ -53,8 +70,8 @@ export interface GetWorkspaceResult {
53
70
  * import * as pulumi from "@pulumi/pulumi";
54
71
  * import * as astronomer from "@pulumi/astronomer";
55
72
  *
56
- * const importedWorkspace = astronomer.getWorkspace({
57
- * id: "cabcabcabcabcabcabcabcabcabc",
73
+ * const example = astronomer.getWorkspace({
74
+ * id: "clozc036j01to01jrlgvueo8t",
58
75
  * });
59
76
  * ```
60
77
  */
@@ -64,7 +81,7 @@ export declare function getWorkspaceOutput(args: GetWorkspaceOutputArgs, opts?:
64
81
  */
65
82
  export interface GetWorkspaceOutputArgs {
66
83
  /**
67
- * The Workspace's identifier.
84
+ * Workspace identifier
68
85
  */
69
86
  id: pulumi.Input<string>;
70
87
  }
package/getWorkspace.js CHANGED
@@ -6,7 +6,7 @@ exports.getWorkspaceOutput = exports.getWorkspace = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * Astronomer Workspace Resource
9
+ * Workspace data source
10
10
  *
11
11
  * ## Example Usage
12
12
  *
@@ -14,8 +14,8 @@ const utilities = require("./utilities");
14
14
  * import * as pulumi from "@pulumi/pulumi";
15
15
  * import * as astronomer from "@pulumi/astronomer";
16
16
  *
17
- * const importedWorkspace = astronomer.getWorkspace({
18
- * id: "cabcabcabcabcabcabcabcabcabc",
17
+ * const example = astronomer.getWorkspace({
18
+ * id: "clozc036j01to01jrlgvueo8t",
19
19
  * });
20
20
  * ```
21
21
  */
@@ -27,7 +27,7 @@ function getWorkspace(args, opts) {
27
27
  }
28
28
  exports.getWorkspace = getWorkspace;
29
29
  /**
30
- * Astronomer Workspace Resource
30
+ * Workspace data source
31
31
  *
32
32
  * ## Example Usage
33
33
  *
@@ -35,8 +35,8 @@ exports.getWorkspace = getWorkspace;
35
35
  * import * as pulumi from "@pulumi/pulumi";
36
36
  * import * as astronomer from "@pulumi/astronomer";
37
37
  *
38
- * const importedWorkspace = astronomer.getWorkspace({
39
- * id: "cabcabcabcabcabcabcabcabcabc",
38
+ * const example = astronomer.getWorkspace({
39
+ * id: "clozc036j01to01jrlgvueo8t",
40
40
  * });
41
41
  * ```
42
42
  */
@@ -1 +1 @@
1
- {"version":3,"file":"getWorkspace.js","sourceRoot":"","sources":["../getWorkspace.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAE5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,oCAMC;AAiCD;;;;;;;;;;;;;GAaG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,gDAEC"}
1
+ {"version":3,"file":"getWorkspace.js","sourceRoot":"","sources":["../getWorkspace.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAE5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,oCAMC;AAiDD;;;;;;;;;;;;;GAaG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,gDAEC"}
@@ -0,0 +1,78 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Workspaces 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 exampleWorkspaces = astronomer.getWorkspaces({});
13
+ * const exampleWorkspacesFilterByWorkspaceIds = astronomer.getWorkspaces({
14
+ * workspaceIds: [
15
+ * "clozc036j01to01jrlgvueo8t",
16
+ * "clozc036j01to01jrlgvueo81",
17
+ * ],
18
+ * });
19
+ * const exampleWorkspacesFilterByNames = astronomer.getWorkspaces({
20
+ * names: [
21
+ * "my first workspace",
22
+ * "my second workspace",
23
+ * ],
24
+ * });
25
+ * ```
26
+ */
27
+ export declare function getWorkspaces(args?: GetWorkspacesArgs, opts?: pulumi.InvokeOptions): Promise<GetWorkspacesResult>;
28
+ /**
29
+ * A collection of arguments for invoking getWorkspaces.
30
+ */
31
+ export interface GetWorkspacesArgs {
32
+ names?: string[];
33
+ workspaceIds?: string[];
34
+ }
35
+ /**
36
+ * A collection of values returned by getWorkspaces.
37
+ */
38
+ export interface GetWorkspacesResult {
39
+ /**
40
+ * The provider-assigned unique ID for this managed resource.
41
+ */
42
+ readonly id: string;
43
+ readonly names?: string[];
44
+ readonly workspaceIds?: string[];
45
+ readonly workspaces: outputs.GetWorkspacesWorkspace[];
46
+ }
47
+ /**
48
+ * Workspaces data source
49
+ *
50
+ * ## Example Usage
51
+ *
52
+ * ```typescript
53
+ * import * as pulumi from "@pulumi/pulumi";
54
+ * import * as astronomer from "@pulumi/astronomer";
55
+ *
56
+ * const exampleWorkspaces = astronomer.getWorkspaces({});
57
+ * const exampleWorkspacesFilterByWorkspaceIds = astronomer.getWorkspaces({
58
+ * workspaceIds: [
59
+ * "clozc036j01to01jrlgvueo8t",
60
+ * "clozc036j01to01jrlgvueo81",
61
+ * ],
62
+ * });
63
+ * const exampleWorkspacesFilterByNames = astronomer.getWorkspaces({
64
+ * names: [
65
+ * "my first workspace",
66
+ * "my second workspace",
67
+ * ],
68
+ * });
69
+ * ```
70
+ */
71
+ export declare function getWorkspacesOutput(args?: GetWorkspacesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetWorkspacesResult>;
72
+ /**
73
+ * A collection of arguments for invoking getWorkspaces.
74
+ */
75
+ export interface GetWorkspacesOutputArgs {
76
+ names?: pulumi.Input<pulumi.Input<string>[]>;
77
+ workspaceIds?: pulumi.Input<pulumi.Input<string>[]>;
78
+ }