@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
@@ -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,70 @@ 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 exampleOrganization = astronomer.getOrganization({});
13
+ * export const organization = exampleOrganization;
15
14
  * ```
16
15
  */
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
- }
16
+ export declare function getOrganization(opts?: pulumi.InvokeOptions): Promise<GetOrganizationResult>;
28
17
  /**
29
18
  * A collection of values returned by getOrganization.
30
19
  */
31
20
  export interface GetOrganizationResult {
32
21
  /**
33
- * Billing email on file for the organization.
22
+ * Organization billing email
34
23
  */
35
24
  readonly billingEmail: string;
36
25
  /**
37
- * Timestamped string of when this organization was created
26
+ * Organization creation timestamp
38
27
  */
39
28
  readonly createdAt: string;
40
29
  /**
41
- * Organization's unique identifier
30
+ * Organization creator
42
31
  */
43
- readonly id: string;
32
+ readonly createdBy: outputs.GetOrganizationCreatedBy;
44
33
  /**
45
- * Whether or not scim is enabled
34
+ * Organization identifier
46
35
  */
47
- readonly isScimEnabled: boolean;
36
+ readonly id: string;
48
37
  /**
49
- * List of managed domains (nested)
38
+ * Whether SCIM is enabled for the organization
50
39
  */
51
- readonly managedDomains: outputs.GetOrganizationManagedDomain[];
40
+ readonly isScimEnabled: boolean;
52
41
  /**
53
- * Organization's name
42
+ * Organization name
54
43
  */
55
44
  readonly name: string;
56
45
  /**
57
- * Payment method (if set)
46
+ * Organization payment method
58
47
  */
59
- readonly paymentMethod?: string;
48
+ readonly paymentMethod: string;
60
49
  /**
61
- * Type of astro product (e.g. hosted or hybrid)
50
+ * Organization product type
62
51
  */
63
52
  readonly product: string;
64
53
  /**
65
- * Status of the organization
54
+ * Organization status
66
55
  */
67
56
  readonly status: string;
68
57
  /**
69
- * Type of support plan the organization has
58
+ * Organization support plan
70
59
  */
71
60
  readonly supportPlan: string;
72
61
  /**
73
- * When the trial expires, if organization is in a trial
62
+ * Organization trial expiration timestamp
74
63
  */
75
64
  readonly trialExpiresAt: string;
76
65
  /**
77
- * Last time the organization was updated
66
+ * Organization last updated timestamp
78
67
  */
79
68
  readonly updatedAt: string;
69
+ /**
70
+ * Organization updater
71
+ */
72
+ readonly updatedBy: outputs.GetOrganizationUpdatedBy;
80
73
  }
81
74
  /**
82
- * Astronomer Organization Resource
75
+ * Organization data source
83
76
  *
84
77
  * ## Example Usage
85
78
  *
@@ -87,19 +80,8 @@ export interface GetOrganizationResult {
87
80
  * import * as pulumi from "@pulumi/pulumi";
88
81
  * import * as astronomer from "@pulumi/astronomer";
89
82
  *
90
- * const test = astronomer.getOrganization({
91
- * id: "abc123",
92
- * });
83
+ * const exampleOrganization = astronomer.getOrganization({});
84
+ * export const organization = exampleOrganization;
93
85
  * ```
94
86
  */
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
- }
87
+ 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,17 @@ 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 exampleOrganization = astronomer.getOrganization({});
18
+ * export const organization = exampleOrganization;
20
19
  * ```
21
20
  */
22
- function getOrganization(args, opts) {
21
+ function getOrganization(opts) {
23
22
  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);
23
+ return pulumi.runtime.invoke("astronomer:index/getOrganization:getOrganization", {}, opts);
28
24
  }
29
25
  exports.getOrganization = getOrganization;
30
26
  /**
31
- * Astronomer Organization Resource
27
+ * Organization data source
32
28
  *
33
29
  * ## Example Usage
34
30
  *
@@ -36,13 +32,12 @@ exports.getOrganization = getOrganization;
36
32
  * import * as pulumi from "@pulumi/pulumi";
37
33
  * import * as astronomer from "@pulumi/astronomer";
38
34
  *
39
- * const test = astronomer.getOrganization({
40
- * id: "abc123",
41
- * });
35
+ * const exampleOrganization = astronomer.getOrganization({});
36
+ * export const organization = exampleOrganization;
42
37
  * ```
43
38
  */
44
- function getOrganizationOutput(args, opts) {
45
- return pulumi.output(args).apply((a) => getOrganization(a, opts));
39
+ function getOrganizationOutput(opts) {
40
+ return pulumi.output(getOrganization(opts));
46
41
  }
47
42
  exports.getOrganizationOutput = getOrganizationOutput;
48
43
  //# 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;;;;;;;;;;;;GAYG;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;;;;;;;;;;;;GAYG;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,105 @@
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 exampleTeam = astronomer.getTeam({
13
+ * id: "clwbclrc100bl01ozjj5s4jmq",
14
+ * });
15
+ * export const team = exampleTeam;
16
+ * ```
17
+ */
18
+ export declare function getTeam(args: GetTeamArgs, opts?: pulumi.InvokeOptions): Promise<GetTeamResult>;
19
+ /**
20
+ * A collection of arguments for invoking getTeam.
21
+ */
22
+ export interface GetTeamArgs {
23
+ /**
24
+ * Team ID
25
+ */
26
+ id: string;
27
+ }
28
+ /**
29
+ * A collection of values returned by getTeam.
30
+ */
31
+ export interface GetTeamResult {
32
+ /**
33
+ * Team creation timestamp
34
+ */
35
+ readonly createdAt: string;
36
+ /**
37
+ * Team creator
38
+ */
39
+ readonly createdBy: outputs.GetTeamCreatedBy;
40
+ /**
41
+ * The roles assigned to the Deployments
42
+ */
43
+ readonly deploymentRoles: outputs.GetTeamDeploymentRole[];
44
+ /**
45
+ * Team description
46
+ */
47
+ readonly description: string;
48
+ /**
49
+ * Team ID
50
+ */
51
+ readonly id: string;
52
+ /**
53
+ * Whether the Team is managed by an identity provider
54
+ */
55
+ readonly isIdpManaged: boolean;
56
+ /**
57
+ * Team name
58
+ */
59
+ readonly name: string;
60
+ /**
61
+ * The role assigned to the Organization
62
+ */
63
+ readonly organizationRole: string;
64
+ /**
65
+ * Number of roles assigned to the Team
66
+ */
67
+ readonly rolesCount: number;
68
+ /**
69
+ * Team last updated timestamp
70
+ */
71
+ readonly updatedAt: string;
72
+ /**
73
+ * Team updater
74
+ */
75
+ readonly updatedBy: outputs.GetTeamUpdatedBy;
76
+ /**
77
+ * The roles assigned to the Workspaces
78
+ */
79
+ readonly workspaceRoles: outputs.GetTeamWorkspaceRole[];
80
+ }
81
+ /**
82
+ * Team data source
83
+ *
84
+ * ## Example Usage
85
+ *
86
+ * ```typescript
87
+ * import * as pulumi from "@pulumi/pulumi";
88
+ * import * as astronomer from "@pulumi/astronomer";
89
+ *
90
+ * const exampleTeam = astronomer.getTeam({
91
+ * id: "clwbclrc100bl01ozjj5s4jmq",
92
+ * });
93
+ * export const team = exampleTeam;
94
+ * ```
95
+ */
96
+ export declare function getTeamOutput(args: GetTeamOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTeamResult>;
97
+ /**
98
+ * A collection of arguments for invoking getTeam.
99
+ */
100
+ export interface GetTeamOutputArgs {
101
+ /**
102
+ * Team ID
103
+ */
104
+ id: pulumi.Input<string>;
105
+ }
package/getTeam.js ADDED
@@ -0,0 +1,49 @@
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 exampleTeam = astronomer.getTeam({
18
+ * id: "clwbclrc100bl01ozjj5s4jmq",
19
+ * });
20
+ * export const team = exampleTeam;
21
+ * ```
22
+ */
23
+ function getTeam(args, opts) {
24
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
25
+ return pulumi.runtime.invoke("astronomer:index/getTeam:getTeam", {
26
+ "id": args.id,
27
+ }, opts);
28
+ }
29
+ exports.getTeam = getTeam;
30
+ /**
31
+ * Team data source
32
+ *
33
+ * ## Example Usage
34
+ *
35
+ * ```typescript
36
+ * import * as pulumi from "@pulumi/pulumi";
37
+ * import * as astronomer from "@pulumi/astronomer";
38
+ *
39
+ * const exampleTeam = astronomer.getTeam({
40
+ * id: "clwbclrc100bl01ozjj5s4jmq",
41
+ * });
42
+ * export const team = exampleTeam;
43
+ * ```
44
+ */
45
+ function getTeamOutput(args, opts) {
46
+ return pulumi.output(args).apply((a) => getTeam(a, opts));
47
+ }
48
+ exports.getTeamOutput = getTeamOutput;
49
+ //# 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;;;;;;;;;;;;;;GAcG;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;;;;;;;;;;;;;;GAcG;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,65 @@
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 exampleTeamsTeams = astronomer.getTeams({});
13
+ * const exampleTeamsFilterByNames = astronomer.getTeams({
14
+ * names: [
15
+ * "my first team",
16
+ * "my second team",
17
+ * ],
18
+ * });
19
+ * export const exampleTeams = exampleTeamsTeams;
20
+ * ```
21
+ */
22
+ export declare function getTeams(args?: GetTeamsArgs, opts?: pulumi.InvokeOptions): Promise<GetTeamsResult>;
23
+ /**
24
+ * A collection of arguments for invoking getTeams.
25
+ */
26
+ export interface GetTeamsArgs {
27
+ names?: string[];
28
+ }
29
+ /**
30
+ * A collection of values returned by getTeams.
31
+ */
32
+ export interface GetTeamsResult {
33
+ /**
34
+ * The provider-assigned unique ID for this managed resource.
35
+ */
36
+ readonly id: string;
37
+ readonly names?: string[];
38
+ readonly teams: outputs.GetTeamsTeam[];
39
+ }
40
+ /**
41
+ * Teams data source
42
+ *
43
+ * ## Example Usage
44
+ *
45
+ * ```typescript
46
+ * import * as pulumi from "@pulumi/pulumi";
47
+ * import * as astronomer from "@pulumi/astronomer";
48
+ *
49
+ * const exampleTeamsTeams = astronomer.getTeams({});
50
+ * const exampleTeamsFilterByNames = astronomer.getTeams({
51
+ * names: [
52
+ * "my first team",
53
+ * "my second team",
54
+ * ],
55
+ * });
56
+ * export const exampleTeams = exampleTeamsTeams;
57
+ * ```
58
+ */
59
+ export declare function getTeamsOutput(args?: GetTeamsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTeamsResult>;
60
+ /**
61
+ * A collection of arguments for invoking getTeams.
62
+ */
63
+ export interface GetTeamsOutputArgs {
64
+ names?: pulumi.Input<pulumi.Input<string>[]>;
65
+ }
package/getTeams.js ADDED
@@ -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.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 exampleTeamsTeams = astronomer.getTeams({});
18
+ * const exampleTeamsFilterByNames = astronomer.getTeams({
19
+ * names: [
20
+ * "my first team",
21
+ * "my second team",
22
+ * ],
23
+ * });
24
+ * export const exampleTeams = exampleTeamsTeams;
25
+ * ```
26
+ */
27
+ function getTeams(args, opts) {
28
+ args = args || {};
29
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
30
+ return pulumi.runtime.invoke("astronomer:index/getTeams:getTeams", {
31
+ "names": args.names,
32
+ }, opts);
33
+ }
34
+ exports.getTeams = getTeams;
35
+ /**
36
+ * Teams 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 exampleTeamsTeams = astronomer.getTeams({});
45
+ * const exampleTeamsFilterByNames = astronomer.getTeams({
46
+ * names: [
47
+ * "my first team",
48
+ * "my second team",
49
+ * ],
50
+ * });
51
+ * export const exampleTeams = exampleTeamsTeams;
52
+ * ```
53
+ */
54
+ function getTeamsOutput(args, opts) {
55
+ return pulumi.output(args).apply((a) => getTeams(a, opts));
56
+ }
57
+ exports.getTeamsOutput = getTeamsOutput;
58
+ //# 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;;;;;;;;;;;;;;;;;;GAkBG;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;;;;;;;;;;;;;;;;;;GAkBG;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/getUser.d.ts ADDED
@@ -0,0 +1,97 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * User 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 exampleUser = astronomer.getUser({
13
+ * id: "clhpichn8002m01mqa4ocs7g6",
14
+ * });
15
+ * export const user = exampleUser;
16
+ * ```
17
+ */
18
+ export declare function getUser(args: GetUserArgs, opts?: pulumi.InvokeOptions): Promise<GetUserResult>;
19
+ /**
20
+ * A collection of arguments for invoking getUser.
21
+ */
22
+ export interface GetUserArgs {
23
+ /**
24
+ * User identifier
25
+ */
26
+ id: string;
27
+ }
28
+ /**
29
+ * A collection of values returned by getUser.
30
+ */
31
+ export interface GetUserResult {
32
+ /**
33
+ * User avatar URL
34
+ */
35
+ readonly avatarUrl: string;
36
+ /**
37
+ * User creation timestamp
38
+ */
39
+ readonly createdAt: string;
40
+ /**
41
+ * The roles assigned to the deployments
42
+ */
43
+ readonly deploymentRoles: outputs.GetUserDeploymentRole[];
44
+ /**
45
+ * User full name
46
+ */
47
+ readonly fullName: string;
48
+ /**
49
+ * User identifier
50
+ */
51
+ readonly id: string;
52
+ /**
53
+ * The role assigned to the organization
54
+ */
55
+ readonly organizationRole: string;
56
+ /**
57
+ * User status
58
+ */
59
+ readonly status: string;
60
+ /**
61
+ * User last updated timestamp
62
+ */
63
+ readonly updatedAt: string;
64
+ /**
65
+ * User username
66
+ */
67
+ readonly username: string;
68
+ /**
69
+ * The roles assigned to the workspaces
70
+ */
71
+ readonly workspaceRoles: outputs.GetUserWorkspaceRole[];
72
+ }
73
+ /**
74
+ * User data source
75
+ *
76
+ * ## Example Usage
77
+ *
78
+ * ```typescript
79
+ * import * as pulumi from "@pulumi/pulumi";
80
+ * import * as astronomer from "@pulumi/astronomer";
81
+ *
82
+ * const exampleUser = astronomer.getUser({
83
+ * id: "clhpichn8002m01mqa4ocs7g6",
84
+ * });
85
+ * export const user = exampleUser;
86
+ * ```
87
+ */
88
+ export declare function getUserOutput(args: GetUserOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetUserResult>;
89
+ /**
90
+ * A collection of arguments for invoking getUser.
91
+ */
92
+ export interface GetUserOutputArgs {
93
+ /**
94
+ * User identifier
95
+ */
96
+ id: pulumi.Input<string>;
97
+ }
package/getUser.js ADDED
@@ -0,0 +1,49 @@
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.getUserOutput = exports.getUser = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * User 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 exampleUser = astronomer.getUser({
18
+ * id: "clhpichn8002m01mqa4ocs7g6",
19
+ * });
20
+ * export const user = exampleUser;
21
+ * ```
22
+ */
23
+ function getUser(args, opts) {
24
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
25
+ return pulumi.runtime.invoke("astronomer:index/getUser:getUser", {
26
+ "id": args.id,
27
+ }, opts);
28
+ }
29
+ exports.getUser = getUser;
30
+ /**
31
+ * User data source
32
+ *
33
+ * ## Example Usage
34
+ *
35
+ * ```typescript
36
+ * import * as pulumi from "@pulumi/pulumi";
37
+ * import * as astronomer from "@pulumi/astronomer";
38
+ *
39
+ * const exampleUser = astronomer.getUser({
40
+ * id: "clhpichn8002m01mqa4ocs7g6",
41
+ * });
42
+ * export const user = exampleUser;
43
+ * ```
44
+ */
45
+ function getUserOutput(args, opts) {
46
+ return pulumi.output(args).apply((a) => getUser(a, opts));
47
+ }
48
+ exports.getUserOutput = getUserOutput;
49
+ //# sourceMappingURL=getUser.js.map
package/getUser.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUser.js","sourceRoot":"","sources":["../getUser.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;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;AAyDD;;;;;;;;;;;;;;GAcG;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"}