@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.
- package/README.md +1 -2
- package/apiToken.d.ts +167 -0
- package/apiToken.js +86 -0
- package/apiToken.js.map +1 -0
- package/cluster.d.ts +110 -85
- package/cluster.js +51 -19
- package/cluster.js.map +1 -1
- package/config/vars.d.ts +6 -2
- package/config/vars.js +7 -1
- package/config/vars.js.map +1 -1
- package/deployment.d.ts +305 -90
- package/deployment.js +61 -21
- package/deployment.js.map +1 -1
- package/getApiToken.d.ts +113 -0
- package/getApiToken.js +49 -0
- package/getApiToken.js.map +1 -0
- package/getApiTokens.d.ts +77 -0
- package/getApiTokens.js +66 -0
- package/getApiTokens.js.map +1 -0
- package/getCluster.d.ts +46 -32
- package/getCluster.js +8 -6
- package/getCluster.js.map +1 -1
- package/getClusterOptions.d.ts +68 -0
- package/getClusterOptions.js +58 -0
- package/getClusterOptions.js.map +1 -0
- package/getClusters.d.ts +68 -0
- package/getClusters.js +59 -0
- package/getClusters.js.map +1 -0
- package/getDeployment.d.ts +198 -13
- package/getDeployment.js +26 -2
- package/getDeployment.js.map +1 -1
- package/getDeploymentOptions.d.ts +149 -0
- package/getDeploymentOptions.js +73 -0
- package/getDeploymentOptions.js.map +1 -0
- package/getDeployments.d.ts +77 -0
- package/getDeployments.js +66 -0
- package/getDeployments.js.map +1 -0
- package/getOrganization.d.ts +28 -46
- package/getOrganization.js +10 -15
- package/getOrganization.js.map +1 -1
- package/getTeam.d.ts +105 -0
- package/getTeam.js +49 -0
- package/getTeam.js.map +1 -0
- package/getTeams.d.ts +65 -0
- package/getTeams.js +58 -0
- package/getTeams.js.map +1 -0
- package/getUser.d.ts +97 -0
- package/getUser.js +49 -0
- package/getUser.js.map +1 -0
- package/getUsers.d.ts +68 -0
- package/getUsers.js +59 -0
- package/getUsers.js.map +1 -0
- package/getWorkspace.d.ts +31 -12
- package/getWorkspace.js +8 -6
- package/getWorkspace.js.map +1 -1
- package/getWorkspaces.d.ts +80 -0
- package/getWorkspaces.js +71 -0
- package/getWorkspaces.js.map +1 -0
- package/hybridClusterWorkspaceAuthorization.d.ts +82 -0
- package/hybridClusterWorkspaceAuthorization.js +76 -0
- package/hybridClusterWorkspaceAuthorization.js.map +1 -0
- package/index.d.ts +52 -1
- package/index.js +64 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.bak +1 -1
- package/provider.d.ts +13 -5
- package/provider.js +3 -2
- package/provider.js.map +1 -1
- package/team.d.ts +161 -0
- package/team.js +77 -0
- package/team.js.map +1 -0
- package/teamRoles.d.ts +89 -0
- package/teamRoles.js +64 -0
- package/teamRoles.js.map +1 -0
- package/types/input.d.ts +303 -17
- package/types/output.d.ts +1737 -33
- package/userInvite.d.ts +117 -0
- package/userInvite.js +82 -0
- package/userInvite.js.map +1 -0
- package/userRoles.d.ts +89 -0
- package/userRoles.js +64 -0
- package/userRoles.js.map +1 -0
- package/workspace.d.ts +55 -17
- package/workspace.js +21 -3
- package/workspace.js.map +1 -1
package/getUsers.d.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Users 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 exampleUsersUsers = astronomer.getUsers({});
|
|
13
|
+
* const exampleUsersFilterByWorkspaceId = astronomer.getUsers({
|
|
14
|
+
* workspaceId: "clx42sxw501gl01o0gjenthnh",
|
|
15
|
+
* });
|
|
16
|
+
* const exampleUsersFilterByDeploymentId = astronomer.getUsers({
|
|
17
|
+
* deploymentId: "clx44jyu001m201m5dzsbexqr",
|
|
18
|
+
* });
|
|
19
|
+
* export const exampleUsers = exampleUsersUsers;
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function getUsers(args?: GetUsersArgs, opts?: pulumi.InvokeOptions): Promise<GetUsersResult>;
|
|
23
|
+
/**
|
|
24
|
+
* A collection of arguments for invoking getUsers.
|
|
25
|
+
*/
|
|
26
|
+
export interface GetUsersArgs {
|
|
27
|
+
deploymentId?: string;
|
|
28
|
+
workspaceId?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* A collection of values returned by getUsers.
|
|
32
|
+
*/
|
|
33
|
+
export interface GetUsersResult {
|
|
34
|
+
readonly deploymentId?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The provider-assigned unique ID for this managed resource.
|
|
37
|
+
*/
|
|
38
|
+
readonly id: string;
|
|
39
|
+
readonly users: outputs.GetUsersUser[];
|
|
40
|
+
readonly workspaceId?: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Users 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 exampleUsersUsers = astronomer.getUsers({});
|
|
52
|
+
* const exampleUsersFilterByWorkspaceId = astronomer.getUsers({
|
|
53
|
+
* workspaceId: "clx42sxw501gl01o0gjenthnh",
|
|
54
|
+
* });
|
|
55
|
+
* const exampleUsersFilterByDeploymentId = astronomer.getUsers({
|
|
56
|
+
* deploymentId: "clx44jyu001m201m5dzsbexqr",
|
|
57
|
+
* });
|
|
58
|
+
* export const exampleUsers = exampleUsersUsers;
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export declare function getUsersOutput(args?: GetUsersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetUsersResult>;
|
|
62
|
+
/**
|
|
63
|
+
* A collection of arguments for invoking getUsers.
|
|
64
|
+
*/
|
|
65
|
+
export interface GetUsersOutputArgs {
|
|
66
|
+
deploymentId?: pulumi.Input<string>;
|
|
67
|
+
workspaceId?: pulumi.Input<string>;
|
|
68
|
+
}
|
package/getUsers.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.getUsersOutput = exports.getUsers = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Users 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 exampleUsersUsers = astronomer.getUsers({});
|
|
18
|
+
* const exampleUsersFilterByWorkspaceId = astronomer.getUsers({
|
|
19
|
+
* workspaceId: "clx42sxw501gl01o0gjenthnh",
|
|
20
|
+
* });
|
|
21
|
+
* const exampleUsersFilterByDeploymentId = astronomer.getUsers({
|
|
22
|
+
* deploymentId: "clx44jyu001m201m5dzsbexqr",
|
|
23
|
+
* });
|
|
24
|
+
* export const exampleUsers = exampleUsersUsers;
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
function getUsers(args, opts) {
|
|
28
|
+
args = args || {};
|
|
29
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
30
|
+
return pulumi.runtime.invoke("astronomer:index/getUsers:getUsers", {
|
|
31
|
+
"deploymentId": args.deploymentId,
|
|
32
|
+
"workspaceId": args.workspaceId,
|
|
33
|
+
}, opts);
|
|
34
|
+
}
|
|
35
|
+
exports.getUsers = getUsers;
|
|
36
|
+
/**
|
|
37
|
+
* Users 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 exampleUsersUsers = astronomer.getUsers({});
|
|
46
|
+
* const exampleUsersFilterByWorkspaceId = astronomer.getUsers({
|
|
47
|
+
* workspaceId: "clx42sxw501gl01o0gjenthnh",
|
|
48
|
+
* });
|
|
49
|
+
* const exampleUsersFilterByDeploymentId = astronomer.getUsers({
|
|
50
|
+
* deploymentId: "clx44jyu001m201m5dzsbexqr",
|
|
51
|
+
* });
|
|
52
|
+
* export const exampleUsers = exampleUsersUsers;
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
function getUsersOutput(args, opts) {
|
|
56
|
+
return pulumi.output(args).apply((a) => getUsers(a, opts));
|
|
57
|
+
}
|
|
58
|
+
exports.getUsersOutput = getUsersOutput;
|
|
59
|
+
//# sourceMappingURL=getUsers.js.map
|
package/getUsers.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUsers.js","sourceRoot":"","sources":["../getUsers.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,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,4BAQC;AAsBD;;;;;;;;;;;;;;;;;;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/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
|
-
*
|
|
4
|
+
* Workspace data source
|
|
4
5
|
*
|
|
5
6
|
* ## Example Usage
|
|
6
7
|
*
|
|
@@ -8,9 +9,10 @@ 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
|
|
12
|
-
* id: "
|
|
12
|
+
* const exampleWorkspace = astronomer.getWorkspace({
|
|
13
|
+
* id: "clozc036j01to01jrlgvueo8t",
|
|
13
14
|
* });
|
|
15
|
+
* export const workspace = exampleWorkspace;
|
|
14
16
|
* ```
|
|
15
17
|
*/
|
|
16
18
|
export declare function getWorkspace(args: GetWorkspaceArgs, opts?: pulumi.InvokeOptions): Promise<GetWorkspaceResult>;
|
|
@@ -19,7 +21,7 @@ export declare function getWorkspace(args: GetWorkspaceArgs, opts?: pulumi.Invok
|
|
|
19
21
|
*/
|
|
20
22
|
export interface GetWorkspaceArgs {
|
|
21
23
|
/**
|
|
22
|
-
*
|
|
24
|
+
* Workspace identifier
|
|
23
25
|
*/
|
|
24
26
|
id: string;
|
|
25
27
|
}
|
|
@@ -28,24 +30,40 @@ export interface GetWorkspaceArgs {
|
|
|
28
30
|
*/
|
|
29
31
|
export interface GetWorkspaceResult {
|
|
30
32
|
/**
|
|
31
|
-
* Whether new Deployments enforce CI/CD deploys by default
|
|
33
|
+
* Whether new Deployments enforce CI/CD deploys by default
|
|
32
34
|
*/
|
|
33
35
|
readonly cicdEnforcedDefault: boolean;
|
|
34
36
|
/**
|
|
35
|
-
*
|
|
37
|
+
* Workspace creation timestamp
|
|
38
|
+
*/
|
|
39
|
+
readonly createdAt: string;
|
|
40
|
+
/**
|
|
41
|
+
* Workspace creator
|
|
42
|
+
*/
|
|
43
|
+
readonly createdBy: outputs.GetWorkspaceCreatedBy;
|
|
44
|
+
/**
|
|
45
|
+
* Workspace description
|
|
36
46
|
*/
|
|
37
47
|
readonly description: string;
|
|
38
48
|
/**
|
|
39
|
-
*
|
|
49
|
+
* Workspace identifier
|
|
40
50
|
*/
|
|
41
51
|
readonly id: string;
|
|
42
52
|
/**
|
|
43
|
-
*
|
|
53
|
+
* Workspace name
|
|
44
54
|
*/
|
|
45
55
|
readonly name: string;
|
|
56
|
+
/**
|
|
57
|
+
* Workspace last updated timestamp
|
|
58
|
+
*/
|
|
59
|
+
readonly updatedAt: string;
|
|
60
|
+
/**
|
|
61
|
+
* Workspace updater
|
|
62
|
+
*/
|
|
63
|
+
readonly updatedBy: outputs.GetWorkspaceUpdatedBy;
|
|
46
64
|
}
|
|
47
65
|
/**
|
|
48
|
-
*
|
|
66
|
+
* Workspace data source
|
|
49
67
|
*
|
|
50
68
|
* ## Example Usage
|
|
51
69
|
*
|
|
@@ -53,9 +71,10 @@ export interface GetWorkspaceResult {
|
|
|
53
71
|
* import * as pulumi from "@pulumi/pulumi";
|
|
54
72
|
* import * as astronomer from "@pulumi/astronomer";
|
|
55
73
|
*
|
|
56
|
-
* const
|
|
57
|
-
* id: "
|
|
74
|
+
* const exampleWorkspace = astronomer.getWorkspace({
|
|
75
|
+
* id: "clozc036j01to01jrlgvueo8t",
|
|
58
76
|
* });
|
|
77
|
+
* export const workspace = exampleWorkspace;
|
|
59
78
|
* ```
|
|
60
79
|
*/
|
|
61
80
|
export declare function getWorkspaceOutput(args: GetWorkspaceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetWorkspaceResult>;
|
|
@@ -64,7 +83,7 @@ export declare function getWorkspaceOutput(args: GetWorkspaceOutputArgs, opts?:
|
|
|
64
83
|
*/
|
|
65
84
|
export interface GetWorkspaceOutputArgs {
|
|
66
85
|
/**
|
|
67
|
-
*
|
|
86
|
+
* Workspace identifier
|
|
68
87
|
*/
|
|
69
88
|
id: pulumi.Input<string>;
|
|
70
89
|
}
|
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
|
-
*
|
|
9
|
+
* Workspace 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
|
|
18
|
-
* id: "
|
|
17
|
+
* const exampleWorkspace = astronomer.getWorkspace({
|
|
18
|
+
* id: "clozc036j01to01jrlgvueo8t",
|
|
19
19
|
* });
|
|
20
|
+
* export const workspace = exampleWorkspace;
|
|
20
21
|
* ```
|
|
21
22
|
*/
|
|
22
23
|
function getWorkspace(args, opts) {
|
|
@@ -27,7 +28,7 @@ function getWorkspace(args, opts) {
|
|
|
27
28
|
}
|
|
28
29
|
exports.getWorkspace = getWorkspace;
|
|
29
30
|
/**
|
|
30
|
-
*
|
|
31
|
+
* Workspace data source
|
|
31
32
|
*
|
|
32
33
|
* ## Example Usage
|
|
33
34
|
*
|
|
@@ -35,9 +36,10 @@ exports.getWorkspace = getWorkspace;
|
|
|
35
36
|
* import * as pulumi from "@pulumi/pulumi";
|
|
36
37
|
* import * as astronomer from "@pulumi/astronomer";
|
|
37
38
|
*
|
|
38
|
-
* const
|
|
39
|
-
* id: "
|
|
39
|
+
* const exampleWorkspace = astronomer.getWorkspace({
|
|
40
|
+
* id: "clozc036j01to01jrlgvueo8t",
|
|
40
41
|
* });
|
|
42
|
+
* export const workspace = exampleWorkspace;
|
|
41
43
|
* ```
|
|
42
44
|
*/
|
|
43
45
|
function getWorkspaceOutput(args, opts) {
|
package/getWorkspace.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWorkspace.js","sourceRoot":"","sources":["../getWorkspace.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getWorkspace.js","sourceRoot":"","sources":["../getWorkspace.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;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;;;;;;;;;;;;;;GAcG;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,80 @@
|
|
|
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 exampleWorkspacesWorkspaces = 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
|
+
* export const exampleWorkspaces = exampleWorkspacesWorkspaces;
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function getWorkspaces(args?: GetWorkspacesArgs, opts?: pulumi.InvokeOptions): Promise<GetWorkspacesResult>;
|
|
29
|
+
/**
|
|
30
|
+
* A collection of arguments for invoking getWorkspaces.
|
|
31
|
+
*/
|
|
32
|
+
export interface GetWorkspacesArgs {
|
|
33
|
+
names?: string[];
|
|
34
|
+
workspaceIds?: string[];
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A collection of values returned by getWorkspaces.
|
|
38
|
+
*/
|
|
39
|
+
export interface GetWorkspacesResult {
|
|
40
|
+
/**
|
|
41
|
+
* The provider-assigned unique ID for this managed resource.
|
|
42
|
+
*/
|
|
43
|
+
readonly id: string;
|
|
44
|
+
readonly names?: string[];
|
|
45
|
+
readonly workspaceIds?: string[];
|
|
46
|
+
readonly workspaces: outputs.GetWorkspacesWorkspace[];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Workspaces data source
|
|
50
|
+
*
|
|
51
|
+
* ## Example Usage
|
|
52
|
+
*
|
|
53
|
+
* ```typescript
|
|
54
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
55
|
+
* import * as astronomer from "@pulumi/astronomer";
|
|
56
|
+
*
|
|
57
|
+
* const exampleWorkspacesWorkspaces = astronomer.getWorkspaces({});
|
|
58
|
+
* const exampleWorkspacesFilterByWorkspaceIds = astronomer.getWorkspaces({
|
|
59
|
+
* workspaceIds: [
|
|
60
|
+
* "clozc036j01to01jrlgvueo8t",
|
|
61
|
+
* "clozc036j01to01jrlgvueo81",
|
|
62
|
+
* ],
|
|
63
|
+
* });
|
|
64
|
+
* const exampleWorkspacesFilterByNames = astronomer.getWorkspaces({
|
|
65
|
+
* names: [
|
|
66
|
+
* "my first workspace",
|
|
67
|
+
* "my second workspace",
|
|
68
|
+
* ],
|
|
69
|
+
* });
|
|
70
|
+
* export const exampleWorkspaces = exampleWorkspacesWorkspaces;
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
export declare function getWorkspacesOutput(args?: GetWorkspacesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetWorkspacesResult>;
|
|
74
|
+
/**
|
|
75
|
+
* A collection of arguments for invoking getWorkspaces.
|
|
76
|
+
*/
|
|
77
|
+
export interface GetWorkspacesOutputArgs {
|
|
78
|
+
names?: pulumi.Input<pulumi.Input<string>[]>;
|
|
79
|
+
workspaceIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
80
|
+
}
|
package/getWorkspaces.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
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 exampleWorkspacesWorkspaces = 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
|
+
* export const exampleWorkspaces = exampleWorkspacesWorkspaces;
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
function getWorkspaces(args, opts) {
|
|
34
|
+
args = args || {};
|
|
35
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
36
|
+
return pulumi.runtime.invoke("astronomer:index/getWorkspaces:getWorkspaces", {
|
|
37
|
+
"names": args.names,
|
|
38
|
+
"workspaceIds": args.workspaceIds,
|
|
39
|
+
}, opts);
|
|
40
|
+
}
|
|
41
|
+
exports.getWorkspaces = getWorkspaces;
|
|
42
|
+
/**
|
|
43
|
+
* Workspaces 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 exampleWorkspacesWorkspaces = astronomer.getWorkspaces({});
|
|
52
|
+
* const exampleWorkspacesFilterByWorkspaceIds = astronomer.getWorkspaces({
|
|
53
|
+
* workspaceIds: [
|
|
54
|
+
* "clozc036j01to01jrlgvueo8t",
|
|
55
|
+
* "clozc036j01to01jrlgvueo81",
|
|
56
|
+
* ],
|
|
57
|
+
* });
|
|
58
|
+
* const exampleWorkspacesFilterByNames = astronomer.getWorkspaces({
|
|
59
|
+
* names: [
|
|
60
|
+
* "my first workspace",
|
|
61
|
+
* "my second workspace",
|
|
62
|
+
* ],
|
|
63
|
+
* });
|
|
64
|
+
* export const exampleWorkspaces = exampleWorkspacesWorkspaces;
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
function getWorkspacesOutput(args, opts) {
|
|
68
|
+
return pulumi.output(args).apply((a) => getWorkspaces(a, opts));
|
|
69
|
+
}
|
|
70
|
+
exports.getWorkspacesOutput = getWorkspacesOutput;
|
|
71
|
+
//# 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;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;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;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;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,CAAC,cAAc,CAAC,KAAK,mCAAmC,CAAC,YAAY,CAAC;IACpF,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAgG,EAAE,IAAmC;QAC3J,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmE,CAAC;YAClF,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3E;aAAM;YACH,MAAM,IAAI,GAAG,WAAkE,CAAC;YAChF,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;SACzE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mCAAmC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxF,CAAC;;AA9DL,kFA+DC;AAjDG,gBAAgB;AACO,gDAAY,GAAG,0FAA0F,CAAC"}
|