@ryan-pip/pulumi_astronomer 0.0.11 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/README.md +1 -2
  2. package/cluster.d.ts +104 -87
  3. package/cluster.js +49 -19
  4. package/cluster.js.map +1 -1
  5. package/config/vars.d.ts +6 -2
  6. package/config/vars.js +7 -1
  7. package/config/vars.js.map +1 -1
  8. package/deployment.d.ts +305 -90
  9. package/deployment.js +61 -21
  10. package/deployment.js.map +1 -1
  11. package/getCluster.d.ts +40 -32
  12. package/getCluster.js +6 -6
  13. package/getCluster.js.map +1 -1
  14. package/getClusterOptions.d.ts +66 -0
  15. package/getClusterOptions.js +56 -0
  16. package/getClusterOptions.js.map +1 -0
  17. package/getClusters.d.ts +66 -0
  18. package/getClusters.js +57 -0
  19. package/getClusters.js.map +1 -0
  20. package/getDeployment.d.ts +196 -13
  21. package/getDeployment.js +24 -2
  22. package/getDeployment.js.map +1 -1
  23. package/getDeploymentOptions.d.ts +147 -0
  24. package/getDeploymentOptions.js +71 -0
  25. package/getDeploymentOptions.js.map +1 -0
  26. package/getDeployments.d.ts +75 -0
  27. package/getDeployments.js +64 -0
  28. package/getDeployments.js.map +1 -0
  29. package/getOrganization.d.ts +26 -46
  30. package/getOrganization.js +8 -15
  31. package/getOrganization.js.map +1 -1
  32. package/getTeam.d.ts +103 -0
  33. package/getTeam.js +47 -0
  34. package/getTeam.js.map +1 -0
  35. package/getTeams.d.ts +63 -0
  36. package/getTeams.js +56 -0
  37. package/getTeams.js.map +1 -0
  38. package/getWorkspace.d.ts +29 -12
  39. package/getWorkspace.js +6 -6
  40. package/getWorkspace.js.map +1 -1
  41. package/getWorkspaces.d.ts +78 -0
  42. package/getWorkspaces.js +69 -0
  43. package/getWorkspaces.js.map +1 -0
  44. package/hybridClusterWorkspaceAuthorization.d.ts +82 -0
  45. package/hybridClusterWorkspaceAuthorization.js +76 -0
  46. package/hybridClusterWorkspaceAuthorization.js.map +1 -0
  47. package/index.d.ts +28 -1
  48. package/index.js +32 -1
  49. package/index.js.map +1 -1
  50. package/package.json +2 -2
  51. package/package.json.bak +1 -1
  52. package/provider.d.ts +13 -5
  53. package/provider.js +3 -2
  54. package/provider.js.map +1 -1
  55. package/teamRoles.d.ts +89 -0
  56. package/teamRoles.js +64 -0
  57. package/teamRoles.js.map +1 -0
  58. package/types/input.d.ts +176 -20
  59. package/types/output.d.ts +1350 -36
  60. package/workspace.d.ts +55 -17
  61. package/workspace.js +21 -3
  62. package/workspace.js.map +1 -1
@@ -0,0 +1,69 @@
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.getWorkspacesOutput = exports.getWorkspaces = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Workspaces 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 exampleWorkspaces = astronomer.getWorkspaces({});
18
+ * const exampleWorkspacesFilterByWorkspaceIds = astronomer.getWorkspaces({
19
+ * workspaceIds: [
20
+ * "clozc036j01to01jrlgvueo8t",
21
+ * "clozc036j01to01jrlgvueo81",
22
+ * ],
23
+ * });
24
+ * const exampleWorkspacesFilterByNames = astronomer.getWorkspaces({
25
+ * names: [
26
+ * "my first workspace",
27
+ * "my second workspace",
28
+ * ],
29
+ * });
30
+ * ```
31
+ */
32
+ function getWorkspaces(args, opts) {
33
+ args = args || {};
34
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
35
+ return pulumi.runtime.invoke("astronomer:index/getWorkspaces:getWorkspaces", {
36
+ "names": args.names,
37
+ "workspaceIds": args.workspaceIds,
38
+ }, opts);
39
+ }
40
+ exports.getWorkspaces = getWorkspaces;
41
+ /**
42
+ * Workspaces data source
43
+ *
44
+ * ## Example Usage
45
+ *
46
+ * ```typescript
47
+ * import * as pulumi from "@pulumi/pulumi";
48
+ * import * as astronomer from "@pulumi/astronomer";
49
+ *
50
+ * const exampleWorkspaces = astronomer.getWorkspaces({});
51
+ * const exampleWorkspacesFilterByWorkspaceIds = astronomer.getWorkspaces({
52
+ * workspaceIds: [
53
+ * "clozc036j01to01jrlgvueo8t",
54
+ * "clozc036j01to01jrlgvueo81",
55
+ * ],
56
+ * });
57
+ * const exampleWorkspacesFilterByNames = astronomer.getWorkspaces({
58
+ * names: [
59
+ * "my first workspace",
60
+ * "my second workspace",
61
+ * ],
62
+ * });
63
+ * ```
64
+ */
65
+ function getWorkspacesOutput(args, opts) {
66
+ return pulumi.output(args).apply((a) => getWorkspaces(a, opts));
67
+ }
68
+ exports.getWorkspacesOutput = getWorkspacesOutput;
69
+ //# sourceMappingURL=getWorkspaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getWorkspaces.js","sourceRoot":"","sources":["../getWorkspaces.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,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,8CAA8C,EAAE;QACzE,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sCAQC;AAsBD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
@@ -0,0 +1,82 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Hybrid cluster workspace authorization resource
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as astronomer from "@ryan-pip/pulumi_astronomer";
10
+ *
11
+ * const example = new astronomer.HybridClusterWorkspaceAuthorization("example", {
12
+ * clusterId: "clk8h0fv1006801j8yysfybbt",
13
+ * workspaceIds: [
14
+ * "cl70oe7cu445571iynrkthtybl",
15
+ * "cl70oe7cu445571iynrkthacsd",
16
+ * ],
17
+ * });
18
+ * const importedClusterWorkspaceAuthorization = new astronomer.HybridClusterWorkspaceAuthorization("importedClusterWorkspaceAuthorization", {
19
+ * clusterId: "clk8h0fv1006801j8yysfybbt",
20
+ * workspaceIds: ["cl70oe7cu445571iynrkthtybl"],
21
+ * });
22
+ * ```
23
+ */
24
+ export declare class HybridClusterWorkspaceAuthorization extends pulumi.CustomResource {
25
+ /**
26
+ * Get an existing HybridClusterWorkspaceAuthorization resource's state with the given name, ID, and optional extra
27
+ * properties used to qualify the lookup.
28
+ *
29
+ * @param name The _unique_ name of the resulting resource.
30
+ * @param id The _unique_ provider ID of the resource to lookup.
31
+ * @param state Any extra arguments used during the lookup.
32
+ * @param opts Optional settings to control the behavior of the CustomResource.
33
+ */
34
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: HybridClusterWorkspaceAuthorizationState, opts?: pulumi.CustomResourceOptions): HybridClusterWorkspaceAuthorization;
35
+ /**
36
+ * Returns true if the given object is an instance of HybridClusterWorkspaceAuthorization. This is designed to work even
37
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
38
+ */
39
+ static isInstance(obj: any): obj is HybridClusterWorkspaceAuthorization;
40
+ /**
41
+ * The ID of the hybrid cluster to set authorizations for
42
+ */
43
+ readonly clusterId: pulumi.Output<string>;
44
+ /**
45
+ * The IDs of the workspaces to authorize for the hybrid cluster
46
+ */
47
+ readonly workspaceIds: pulumi.Output<string[] | undefined>;
48
+ /**
49
+ * Create a HybridClusterWorkspaceAuthorization resource with the given unique name, arguments, and options.
50
+ *
51
+ * @param name The _unique_ name of the resource.
52
+ * @param args The arguments to use to populate this resource's properties.
53
+ * @param opts A bag of options that control this resource's behavior.
54
+ */
55
+ constructor(name: string, args: HybridClusterWorkspaceAuthorizationArgs, opts?: pulumi.CustomResourceOptions);
56
+ }
57
+ /**
58
+ * Input properties used for looking up and filtering HybridClusterWorkspaceAuthorization resources.
59
+ */
60
+ export interface HybridClusterWorkspaceAuthorizationState {
61
+ /**
62
+ * The ID of the hybrid cluster to set authorizations for
63
+ */
64
+ clusterId?: pulumi.Input<string>;
65
+ /**
66
+ * The IDs of the workspaces to authorize for the hybrid cluster
67
+ */
68
+ workspaceIds?: pulumi.Input<pulumi.Input<string>[]>;
69
+ }
70
+ /**
71
+ * The set of arguments for constructing a HybridClusterWorkspaceAuthorization resource.
72
+ */
73
+ export interface HybridClusterWorkspaceAuthorizationArgs {
74
+ /**
75
+ * The ID of the hybrid cluster to set authorizations for
76
+ */
77
+ clusterId: pulumi.Input<string>;
78
+ /**
79
+ * The IDs of the workspaces to authorize for the hybrid cluster
80
+ */
81
+ workspaceIds?: pulumi.Input<pulumi.Input<string>[]>;
82
+ }
@@ -0,0 +1,76 @@
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.HybridClusterWorkspaceAuthorization = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Hybrid cluster workspace authorization resource
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as astronomer from "@ryan-pip/pulumi_astronomer";
16
+ *
17
+ * const example = new astronomer.HybridClusterWorkspaceAuthorization("example", {
18
+ * clusterId: "clk8h0fv1006801j8yysfybbt",
19
+ * workspaceIds: [
20
+ * "cl70oe7cu445571iynrkthtybl",
21
+ * "cl70oe7cu445571iynrkthacsd",
22
+ * ],
23
+ * });
24
+ * const importedClusterWorkspaceAuthorization = new astronomer.HybridClusterWorkspaceAuthorization("importedClusterWorkspaceAuthorization", {
25
+ * clusterId: "clk8h0fv1006801j8yysfybbt",
26
+ * workspaceIds: ["cl70oe7cu445571iynrkthtybl"],
27
+ * });
28
+ * ```
29
+ */
30
+ class HybridClusterWorkspaceAuthorization extends pulumi.CustomResource {
31
+ /**
32
+ * Get an existing HybridClusterWorkspaceAuthorization resource's state with the given name, ID, and optional extra
33
+ * properties used to qualify the lookup.
34
+ *
35
+ * @param name The _unique_ name of the resulting resource.
36
+ * @param id The _unique_ provider ID of the resource to lookup.
37
+ * @param state Any extra arguments used during the lookup.
38
+ * @param opts Optional settings to control the behavior of the CustomResource.
39
+ */
40
+ static get(name, id, state, opts) {
41
+ return new HybridClusterWorkspaceAuthorization(name, state, Object.assign(Object.assign({}, opts), { id: id }));
42
+ }
43
+ /**
44
+ * Returns true if the given object is an instance of HybridClusterWorkspaceAuthorization. This is designed to work even
45
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
46
+ */
47
+ static isInstance(obj) {
48
+ if (obj === undefined || obj === null) {
49
+ return false;
50
+ }
51
+ return obj['__pulumiType'] === HybridClusterWorkspaceAuthorization.__pulumiType;
52
+ }
53
+ constructor(name, argsOrState, opts) {
54
+ let resourceInputs = {};
55
+ opts = opts || {};
56
+ if (opts.id) {
57
+ const state = argsOrState;
58
+ resourceInputs["clusterId"] = state ? state.clusterId : undefined;
59
+ resourceInputs["workspaceIds"] = state ? state.workspaceIds : undefined;
60
+ }
61
+ else {
62
+ const args = argsOrState;
63
+ if ((!args || args.clusterId === undefined) && !opts.urn) {
64
+ throw new Error("Missing required property 'clusterId'");
65
+ }
66
+ resourceInputs["clusterId"] = args ? args.clusterId : undefined;
67
+ resourceInputs["workspaceIds"] = args ? args.workspaceIds : undefined;
68
+ }
69
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
70
+ super(HybridClusterWorkspaceAuthorization.__pulumiType, name, resourceInputs, opts);
71
+ }
72
+ }
73
+ exports.HybridClusterWorkspaceAuthorization = HybridClusterWorkspaceAuthorization;
74
+ /** @internal */
75
+ HybridClusterWorkspaceAuthorization.__pulumiType = 'astronomer:index/hybridClusterWorkspaceAuthorization:HybridClusterWorkspaceAuthorization';
76
+ //# sourceMappingURL=hybridClusterWorkspaceAuthorization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hybridClusterWorkspaceAuthorization.js","sourceRoot":"","sources":["../hybridClusterWorkspaceAuthorization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,mCAAoC,SAAQ,MAAM,CAAC,cAAc;IAC1E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgD,EAAE,IAAmC;QAC9I,OAAO,IAAI,mCAAmC,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1F,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,CA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ployment;
7
7
  export { GetClusterArgs, GetClusterResult, GetClusterOutputArgs } from "./getCluster";
8
8
  export declare const getCluster: typeof import("./getCluster").getCluster;
9
9
  export declare const getClusterOutput: typeof import("./getCluster").getClusterOutput;
10
+ export { GetClusterOptionsArgs, GetClusterOptionsResult, GetClusterOptionsOutputArgs } from "./getClusterOptions";
11
+ export declare const getClusterOptions: typeof import("./getClusterOptions").getClusterOptions;
12
+ export declare const getClusterOptionsOutput: typeof import("./getClusterOptions").getClusterOptionsOutput;
13
+ export { GetClustersArgs, GetClustersResult, GetClustersOutputArgs } from "./getClusters";
14
+ export declare const getClusters: typeof import("./getClusters").getClusters;
15
+ export declare const getClustersOutput: typeof import("./getClusters").getClustersOutput;
10
16
  export { GetDeploymentArgs, GetDeploymentResult, GetDeploymentOutputArgs } from "./getDeployment";
11
17
  export declare const getDeployment: typeof import("./getDeployment").getDeployment;
12
18
  export declare const getDeploymentOutput: typeof import("./getDeployment").getDeploymentOutput;
13
- export { GetOrganizationArgs, GetOrganizationResult, GetOrganizationOutputArgs } from "./getOrganization";
19
+ export { GetDeploymentOptionsArgs, GetDeploymentOptionsResult, GetDeploymentOptionsOutputArgs } from "./getDeploymentOptions";
20
+ export declare const getDeploymentOptions: typeof import("./getDeploymentOptions").getDeploymentOptions;
21
+ export declare const getDeploymentOptionsOutput: typeof import("./getDeploymentOptions").getDeploymentOptionsOutput;
22
+ export { GetDeploymentsArgs, GetDeploymentsResult, GetDeploymentsOutputArgs } from "./getDeployments";
23
+ export declare const getDeployments: typeof import("./getDeployments").getDeployments;
24
+ export declare const getDeploymentsOutput: typeof import("./getDeployments").getDeploymentsOutput;
25
+ export { GetOrganizationResult } from "./getOrganization";
14
26
  export declare const getOrganization: typeof import("./getOrganization").getOrganization;
15
27
  export declare const getOrganizationOutput: typeof import("./getOrganization").getOrganizationOutput;
28
+ export { GetTeamArgs, GetTeamResult, GetTeamOutputArgs } from "./getTeam";
29
+ export declare const getTeam: typeof import("./getTeam").getTeam;
30
+ export declare const getTeamOutput: typeof import("./getTeam").getTeamOutput;
31
+ export { GetTeamsArgs, GetTeamsResult, GetTeamsOutputArgs } from "./getTeams";
32
+ export declare const getTeams: typeof import("./getTeams").getTeams;
33
+ export declare const getTeamsOutput: typeof import("./getTeams").getTeamsOutput;
16
34
  export { GetWorkspaceArgs, GetWorkspaceResult, GetWorkspaceOutputArgs } from "./getWorkspace";
17
35
  export declare const getWorkspace: typeof import("./getWorkspace").getWorkspace;
18
36
  export declare const getWorkspaceOutput: typeof import("./getWorkspace").getWorkspaceOutput;
37
+ export { GetWorkspacesArgs, GetWorkspacesResult, GetWorkspacesOutputArgs } from "./getWorkspaces";
38
+ export declare const getWorkspaces: typeof import("./getWorkspaces").getWorkspaces;
39
+ export declare const getWorkspacesOutput: typeof import("./getWorkspaces").getWorkspacesOutput;
40
+ export { HybridClusterWorkspaceAuthorizationArgs, HybridClusterWorkspaceAuthorizationState } from "./hybridClusterWorkspaceAuthorization";
41
+ export type HybridClusterWorkspaceAuthorization = import("./hybridClusterWorkspaceAuthorization").HybridClusterWorkspaceAuthorization;
42
+ export declare const HybridClusterWorkspaceAuthorization: typeof import("./hybridClusterWorkspaceAuthorization").HybridClusterWorkspaceAuthorization;
19
43
  export { ProviderArgs } from "./provider";
20
44
  export type Provider = import("./provider").Provider;
21
45
  export declare const Provider: typeof import("./provider").Provider;
46
+ export { TeamRolesArgs, TeamRolesState } from "./teamRoles";
47
+ export type TeamRoles = import("./teamRoles").TeamRoles;
48
+ export declare const TeamRoles: typeof import("./teamRoles").TeamRoles;
22
49
  export { WorkspaceArgs, WorkspaceState } from "./workspace";
23
50
  export type Workspace = import("./workspace").Workspace;
24
51
  export declare const Workspace: typeof import("./workspace").Workspace;
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.types = exports.config = exports.Workspace = exports.Provider = exports.getWorkspaceOutput = exports.getWorkspace = exports.getOrganizationOutput = exports.getOrganization = exports.getDeploymentOutput = exports.getDeployment = exports.getClusterOutput = exports.getCluster = exports.Deployment = exports.Cluster = void 0;
5
+ exports.types = exports.config = exports.Workspace = exports.TeamRoles = exports.Provider = exports.HybridClusterWorkspaceAuthorization = exports.getWorkspacesOutput = exports.getWorkspaces = exports.getWorkspaceOutput = exports.getWorkspace = exports.getTeamsOutput = exports.getTeams = exports.getTeamOutput = exports.getTeam = exports.getOrganizationOutput = exports.getOrganization = exports.getDeploymentsOutput = exports.getDeployments = exports.getDeploymentOptionsOutput = exports.getDeploymentOptions = exports.getDeploymentOutput = exports.getDeployment = exports.getClustersOutput = exports.getClusters = exports.getClusterOptionsOutput = exports.getClusterOptions = exports.getClusterOutput = exports.getCluster = exports.Deployment = exports.Cluster = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  exports.Cluster = null;
@@ -12,17 +12,42 @@ utilities.lazyLoad(exports, ["Deployment"], () => require("./deployment"));
12
12
  exports.getCluster = null;
13
13
  exports.getClusterOutput = null;
14
14
  utilities.lazyLoad(exports, ["getCluster", "getClusterOutput"], () => require("./getCluster"));
15
+ exports.getClusterOptions = null;
16
+ exports.getClusterOptionsOutput = null;
17
+ utilities.lazyLoad(exports, ["getClusterOptions", "getClusterOptionsOutput"], () => require("./getClusterOptions"));
18
+ exports.getClusters = null;
19
+ exports.getClustersOutput = null;
20
+ utilities.lazyLoad(exports, ["getClusters", "getClustersOutput"], () => require("./getClusters"));
15
21
  exports.getDeployment = null;
16
22
  exports.getDeploymentOutput = null;
17
23
  utilities.lazyLoad(exports, ["getDeployment", "getDeploymentOutput"], () => require("./getDeployment"));
24
+ exports.getDeploymentOptions = null;
25
+ exports.getDeploymentOptionsOutput = null;
26
+ utilities.lazyLoad(exports, ["getDeploymentOptions", "getDeploymentOptionsOutput"], () => require("./getDeploymentOptions"));
27
+ exports.getDeployments = null;
28
+ exports.getDeploymentsOutput = null;
29
+ utilities.lazyLoad(exports, ["getDeployments", "getDeploymentsOutput"], () => require("./getDeployments"));
18
30
  exports.getOrganization = null;
19
31
  exports.getOrganizationOutput = null;
20
32
  utilities.lazyLoad(exports, ["getOrganization", "getOrganizationOutput"], () => require("./getOrganization"));
33
+ exports.getTeam = null;
34
+ exports.getTeamOutput = null;
35
+ utilities.lazyLoad(exports, ["getTeam", "getTeamOutput"], () => require("./getTeam"));
36
+ exports.getTeams = null;
37
+ exports.getTeamsOutput = null;
38
+ utilities.lazyLoad(exports, ["getTeams", "getTeamsOutput"], () => require("./getTeams"));
21
39
  exports.getWorkspace = null;
22
40
  exports.getWorkspaceOutput = null;
23
41
  utilities.lazyLoad(exports, ["getWorkspace", "getWorkspaceOutput"], () => require("./getWorkspace"));
42
+ exports.getWorkspaces = null;
43
+ exports.getWorkspacesOutput = null;
44
+ utilities.lazyLoad(exports, ["getWorkspaces", "getWorkspacesOutput"], () => require("./getWorkspaces"));
45
+ exports.HybridClusterWorkspaceAuthorization = null;
46
+ utilities.lazyLoad(exports, ["HybridClusterWorkspaceAuthorization"], () => require("./hybridClusterWorkspaceAuthorization"));
24
47
  exports.Provider = null;
25
48
  utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
49
+ exports.TeamRoles = null;
50
+ utilities.lazyLoad(exports, ["TeamRoles"], () => require("./teamRoles"));
26
51
  exports.Workspace = null;
27
52
  utilities.lazyLoad(exports, ["Workspace"], () => require("./workspace"));
28
53
  // Export sub-modules:
@@ -38,6 +63,10 @@ const _module = {
38
63
  return new exports.Cluster(name, undefined, { urn });
39
64
  case "astronomer:index/deployment:Deployment":
40
65
  return new exports.Deployment(name, undefined, { urn });
66
+ case "astronomer:index/hybridClusterWorkspaceAuthorization:HybridClusterWorkspaceAuthorization":
67
+ return new exports.HybridClusterWorkspaceAuthorization(name, undefined, { urn });
68
+ case "astronomer:index/teamRoles:TeamRoles":
69
+ return new exports.TeamRoles(name, undefined, { urn });
41
70
  case "astronomer:index/workspace:Workspace":
42
71
  return new exports.Workspace(name, undefined, { urn });
43
72
  default:
@@ -47,6 +76,8 @@ const _module = {
47
76
  };
48
77
  pulumi.runtime.registerResourceModule("astronomer", "index/cluster", _module);
49
78
  pulumi.runtime.registerResourceModule("astronomer", "index/deployment", _module);
79
+ pulumi.runtime.registerResourceModule("astronomer", "index/hybridClusterWorkspaceAuthorization", _module);
80
+ pulumi.runtime.registerResourceModule("astronomer", "index/teamRoles", _module);
50
81
  pulumi.runtime.registerResourceModule("astronomer", "index/workspace", _module);
51
82
  pulumi.runtime.registerResourcePackage("astronomer", {
52
83
  version: utilities.getVersion(),
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAK5B,QAAA,OAAO,GAAuC,IAAW,CAAC;AACvE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAIxD,QAAA,UAAU,GAA6C,IAAW,CAAC;AAChF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;AAG9D,QAAA,UAAU,GAA6C,IAAW,CAAC;AACnE,QAAA,gBAAgB,GAAmD,IAAW,CAAC;AAC5F,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,YAAY,EAAC,kBAAkB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;AAGjF,QAAA,aAAa,GAAmD,IAAW,CAAC;AAC5E,QAAA,mBAAmB,GAAyD,IAAW,CAAC;AACrG,SAAS,CAAC,QAAQ,CAAC,OA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,7 @@
1
1
  {
2
2
  "name": "@ryan-pip/pulumi_astronomer",
3
- "version": "v0.0.11",
4
- "description": "A Pulumi package for creating and managing Astronomer Cloud resources. Based on terraform-provider-astronomer: version v0.3.0",
3
+ "version": "v0.1.0",
4
+ "description": "A Pulumi package for creating and managing Astronomer Cloud resources. Based on terraform-provider-astro: version v0.3.0",
5
5
  "keywords": [
6
6
  "pulumi",
7
7
  "astronomer",
package/package.json.bak CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ryan-pip/pulumi_astronomer",
3
3
  "version": "${VERSION}",
4
- "description": "A Pulumi package for creating and managing Astronomer Cloud resources. Based on terraform-provider-astronomer: version v0.3.0",
4
+ "description": "A Pulumi package for creating and managing Astronomer Cloud resources. Based on terraform-provider-astro: version v0.3.0",
5
5
  "keywords": [
6
6
  "pulumi",
7
7
  "astronomer",
package/provider.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * The provider type for the astronomer package. By default, resources use package-wide configuration
3
+ * The provider type for the astro package. By default, resources use package-wide configuration
4
4
  * settings, however an explicit `Provider` instance may be created and passed during resource
5
5
  * construction to achieve fine-grained programmatic control over provider settings. See the
6
6
  * [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
@@ -12,11 +12,15 @@ export declare class Provider extends pulumi.ProviderResource {
12
12
  */
13
13
  static isInstance(obj: any): obj is Provider;
14
14
  /**
15
- * Organization id this provider will operate on.
15
+ * API host to use for the provider. Default is `https://api.astronomer.io`
16
+ */
17
+ readonly host: pulumi.Output<string | undefined>;
18
+ /**
19
+ * Organization ID this provider will operate on.
16
20
  */
17
21
  readonly organizationId: pulumi.Output<string>;
18
22
  /**
19
- * Astronomer API Token. Can be set with an `ASTRONOMER_API_TOKEN` env var.
23
+ * Astro API Token. Can be set with an `ASTRO_API_TOKEN` env var.
20
24
  */
21
25
  readonly token: pulumi.Output<string | undefined>;
22
26
  /**
@@ -33,11 +37,15 @@ export declare class Provider extends pulumi.ProviderResource {
33
37
  */
34
38
  export interface ProviderArgs {
35
39
  /**
36
- * Organization id this provider will operate on.
40
+ * API host to use for the provider. Default is `https://api.astronomer.io`
41
+ */
42
+ host?: pulumi.Input<string>;
43
+ /**
44
+ * Organization ID this provider will operate on.
37
45
  */
38
46
  organizationId: pulumi.Input<string>;
39
47
  /**
40
- * Astronomer API Token. Can be set with an `ASTRONOMER_API_TOKEN` env var.
48
+ * Astro API Token. Can be set with an `ASTRO_API_TOKEN` env var.
41
49
  */
42
50
  token?: pulumi.Input<string>;
43
51
  }
package/provider.js CHANGED
@@ -6,7 +6,7 @@ exports.Provider = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * The provider type for the astronomer package. By default, resources use package-wide configuration
9
+ * The provider type for the astro package. By default, resources use package-wide configuration
10
10
  * settings, however an explicit `Provider` instance may be created and passed during resource
11
11
  * construction to achieve fine-grained programmatic control over provider settings. See the
12
12
  * [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
@@ -37,8 +37,9 @@ class Provider extends pulumi.ProviderResource {
37
37
  if ((!args || args.organizationId === undefined) && !opts.urn) {
38
38
  throw new Error("Missing required property 'organizationId'");
39
39
  }
40
+ resourceInputs["host"] = args ? args.host : undefined;
40
41
  resourceInputs["organizationId"] = args ? args.organizationId : undefined;
41
- resourceInputs["token"] = (_a = ((args === null || args === void 0 ? void 0 : args.token) ? pulumi.secret(args.token) : undefined)) !== null && _a !== void 0 ? _a : utilities.getEnv("ASTRONOMER_API_TOKEN");
42
+ resourceInputs["token"] = (_a = ((args === null || args === void 0 ? void 0 : args.token) ? pulumi.secret(args.token) : undefined)) !== null && _a !== void 0 ? _a : utilities.getEnv("ASTRO_API_TOKEN");
42
43
  }
43
44
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
44
45
  const secretOpts = { additionalSecretOutputs: ["token"] };
package/provider.js.map CHANGED
@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S,CAAC;YAC1E,cAAc,CAAC,OAAO,CAAC,GAAG,MAAA,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,mCAAI,SAAS,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;SAC1H;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;;AAlDL,4BAmDC;AAlDG,gBAAgB;AACO,qBAAY,GAAG,YAAY,CAAC"}
package/teamRoles.d.ts ADDED
@@ -0,0 +1,89 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Team Roles resource
6
+ */
7
+ export declare class TeamRoles extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing TeamRoles 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?: TeamRolesState, opts?: pulumi.CustomResourceOptions): TeamRoles;
18
+ /**
19
+ * Returns true if the given object is an instance of TeamRoles. 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 TeamRoles;
23
+ /**
24
+ * The roles to assign to the deployments
25
+ */
26
+ readonly deploymentRoles: pulumi.Output<outputs.TeamRolesDeploymentRole[] | undefined>;
27
+ /**
28
+ * The role to assign to the organization
29
+ */
30
+ readonly organizationRole: pulumi.Output<string>;
31
+ /**
32
+ * The ID of the team to assign the roles to
33
+ */
34
+ readonly teamId: pulumi.Output<string>;
35
+ /**
36
+ * The roles to assign to the workspaces
37
+ */
38
+ readonly workspaceRoles: pulumi.Output<outputs.TeamRolesWorkspaceRole[] | undefined>;
39
+ /**
40
+ * Create a TeamRoles resource with the given unique name, arguments, and options.
41
+ *
42
+ * @param name The _unique_ name of the resource.
43
+ * @param args The arguments to use to populate this resource's properties.
44
+ * @param opts A bag of options that control this resource's behavior.
45
+ */
46
+ constructor(name: string, args: TeamRolesArgs, opts?: pulumi.CustomResourceOptions);
47
+ }
48
+ /**
49
+ * Input properties used for looking up and filtering TeamRoles resources.
50
+ */
51
+ export interface TeamRolesState {
52
+ /**
53
+ * The roles to assign to the deployments
54
+ */
55
+ deploymentRoles?: pulumi.Input<pulumi.Input<inputs.TeamRolesDeploymentRole>[]>;
56
+ /**
57
+ * The role to assign to the organization
58
+ */
59
+ organizationRole?: pulumi.Input<string>;
60
+ /**
61
+ * The ID of the team to assign the roles to
62
+ */
63
+ teamId?: pulumi.Input<string>;
64
+ /**
65
+ * The roles to assign to the workspaces
66
+ */
67
+ workspaceRoles?: pulumi.Input<pulumi.Input<inputs.TeamRolesWorkspaceRole>[]>;
68
+ }
69
+ /**
70
+ * The set of arguments for constructing a TeamRoles resource.
71
+ */
72
+ export interface TeamRolesArgs {
73
+ /**
74
+ * The roles to assign to the deployments
75
+ */
76
+ deploymentRoles?: pulumi.Input<pulumi.Input<inputs.TeamRolesDeploymentRole>[]>;
77
+ /**
78
+ * The role to assign to the organization
79
+ */
80
+ organizationRole: pulumi.Input<string>;
81
+ /**
82
+ * The ID of the team to assign the roles to
83
+ */
84
+ teamId: pulumi.Input<string>;
85
+ /**
86
+ * The roles to assign to the workspaces
87
+ */
88
+ workspaceRoles?: pulumi.Input<pulumi.Input<inputs.TeamRolesWorkspaceRole>[]>;
89
+ }
package/teamRoles.js ADDED
@@ -0,0 +1,64 @@
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.TeamRoles = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Team Roles resource
10
+ */
11
+ class TeamRoles extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing TeamRoles 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 TeamRoles(name, state, Object.assign(Object.assign({}, opts), { id: id }));
23
+ }
24
+ /**
25
+ * Returns true if the given object is an instance of TeamRoles. 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'] === TeamRoles.__pulumiType;
33
+ }
34
+ constructor(name, argsOrState, opts) {
35
+ let resourceInputs = {};
36
+ opts = opts || {};
37
+ if (opts.id) {
38
+ const state = argsOrState;
39
+ resourceInputs["deploymentRoles"] = state ? state.deploymentRoles : undefined;
40
+ resourceInputs["organizationRole"] = state ? state.organizationRole : undefined;
41
+ resourceInputs["teamId"] = state ? state.teamId : undefined;
42
+ resourceInputs["workspaceRoles"] = state ? state.workspaceRoles : undefined;
43
+ }
44
+ else {
45
+ const args = argsOrState;
46
+ if ((!args || args.organizationRole === undefined) && !opts.urn) {
47
+ throw new Error("Missing required property 'organizationRole'");
48
+ }
49
+ if ((!args || args.teamId === undefined) && !opts.urn) {
50
+ throw new Error("Missing required property 'teamId'");
51
+ }
52
+ resourceInputs["deploymentRoles"] = args ? args.deploymentRoles : undefined;
53
+ resourceInputs["organizationRole"] = args ? args.organizationRole : undefined;
54
+ resourceInputs["teamId"] = args ? args.teamId : undefined;
55
+ resourceInputs["workspaceRoles"] = args ? args.workspaceRoles : undefined;
56
+ }
57
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
58
+ super(TeamRoles.__pulumiType, name, resourceInputs, opts);
59
+ }
60
+ }
61
+ exports.TeamRoles = TeamRoles;
62
+ /** @internal */
63
+ TeamRoles.__pulumiType = 'astronomer:index/teamRoles:TeamRoles';
64
+ //# sourceMappingURL=teamRoles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teamRoles.js","sourceRoot":"","sources":["../teamRoles.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,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,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IA2BD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAA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