@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
@@ -0,0 +1,117 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * User Invite resource
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as astronomer from "@ryan-pip/pulumi_astronomer";
12
+ *
13
+ * const userInvite = new astronomer.UserInvite("userInvite", {
14
+ * email: "email@organization.com",
15
+ * role: "ORGANIZATION_MEMBER",
16
+ * });
17
+ * ```
18
+ */
19
+ export declare class UserInvite extends pulumi.CustomResource {
20
+ /**
21
+ * Get an existing UserInvite resource's state with the given name, ID, and optional extra
22
+ * properties used to qualify the lookup.
23
+ *
24
+ * @param name The _unique_ name of the resulting resource.
25
+ * @param id The _unique_ provider ID of the resource to lookup.
26
+ * @param state Any extra arguments used during the lookup.
27
+ * @param opts Optional settings to control the behavior of the CustomResource.
28
+ */
29
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: UserInviteState, opts?: pulumi.CustomResourceOptions): UserInvite;
30
+ /**
31
+ * Returns true if the given object is an instance of UserInvite. This is designed to work even
32
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
33
+ */
34
+ static isInstance(obj: any): obj is UserInvite;
35
+ /**
36
+ * The email address of the user being invited
37
+ */
38
+ readonly email: pulumi.Output<string>;
39
+ /**
40
+ * The expiration date of the invite
41
+ */
42
+ readonly expiresAt: pulumi.Output<string>;
43
+ /**
44
+ * The ID of the invite
45
+ */
46
+ readonly inviteId: pulumi.Output<string>;
47
+ /**
48
+ * The profile of the invitee
49
+ */
50
+ readonly invitee: pulumi.Output<outputs.UserInviteInvitee>;
51
+ /**
52
+ * The profile of the inviter
53
+ */
54
+ readonly inviter: pulumi.Output<outputs.UserInviteInviter>;
55
+ /**
56
+ * The Organization role to assign to the user
57
+ */
58
+ readonly role: pulumi.Output<string>;
59
+ /**
60
+ * The ID of the user
61
+ */
62
+ readonly userId: pulumi.Output<string>;
63
+ /**
64
+ * Create a UserInvite resource with the given unique name, arguments, and options.
65
+ *
66
+ * @param name The _unique_ name of the resource.
67
+ * @param args The arguments to use to populate this resource's properties.
68
+ * @param opts A bag of options that control this resource's behavior.
69
+ */
70
+ constructor(name: string, args: UserInviteArgs, opts?: pulumi.CustomResourceOptions);
71
+ }
72
+ /**
73
+ * Input properties used for looking up and filtering UserInvite resources.
74
+ */
75
+ export interface UserInviteState {
76
+ /**
77
+ * The email address of the user being invited
78
+ */
79
+ email?: pulumi.Input<string>;
80
+ /**
81
+ * The expiration date of the invite
82
+ */
83
+ expiresAt?: pulumi.Input<string>;
84
+ /**
85
+ * The ID of the invite
86
+ */
87
+ inviteId?: pulumi.Input<string>;
88
+ /**
89
+ * The profile of the invitee
90
+ */
91
+ invitee?: pulumi.Input<inputs.UserInviteInvitee>;
92
+ /**
93
+ * The profile of the inviter
94
+ */
95
+ inviter?: pulumi.Input<inputs.UserInviteInviter>;
96
+ /**
97
+ * The Organization role to assign to the user
98
+ */
99
+ role?: pulumi.Input<string>;
100
+ /**
101
+ * The ID of the user
102
+ */
103
+ userId?: pulumi.Input<string>;
104
+ }
105
+ /**
106
+ * The set of arguments for constructing a UserInvite resource.
107
+ */
108
+ export interface UserInviteArgs {
109
+ /**
110
+ * The email address of the user being invited
111
+ */
112
+ email: pulumi.Input<string>;
113
+ /**
114
+ * The Organization role to assign to the user
115
+ */
116
+ role: pulumi.Input<string>;
117
+ }
package/userInvite.js ADDED
@@ -0,0 +1,82 @@
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.UserInvite = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * User Invite 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 userInvite = new astronomer.UserInvite("userInvite", {
18
+ * email: "email@organization.com",
19
+ * role: "ORGANIZATION_MEMBER",
20
+ * });
21
+ * ```
22
+ */
23
+ class UserInvite extends pulumi.CustomResource {
24
+ /**
25
+ * Get an existing UserInvite resource's state with the given name, ID, and optional extra
26
+ * properties used to qualify the lookup.
27
+ *
28
+ * @param name The _unique_ name of the resulting resource.
29
+ * @param id The _unique_ provider ID of the resource to lookup.
30
+ * @param state Any extra arguments used during the lookup.
31
+ * @param opts Optional settings to control the behavior of the CustomResource.
32
+ */
33
+ static get(name, id, state, opts) {
34
+ return new UserInvite(name, state, Object.assign(Object.assign({}, opts), { id: id }));
35
+ }
36
+ /**
37
+ * Returns true if the given object is an instance of UserInvite. This is designed to work even
38
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
39
+ */
40
+ static isInstance(obj) {
41
+ if (obj === undefined || obj === null) {
42
+ return false;
43
+ }
44
+ return obj['__pulumiType'] === UserInvite.__pulumiType;
45
+ }
46
+ constructor(name, argsOrState, opts) {
47
+ let resourceInputs = {};
48
+ opts = opts || {};
49
+ if (opts.id) {
50
+ const state = argsOrState;
51
+ resourceInputs["email"] = state ? state.email : undefined;
52
+ resourceInputs["expiresAt"] = state ? state.expiresAt : undefined;
53
+ resourceInputs["inviteId"] = state ? state.inviteId : undefined;
54
+ resourceInputs["invitee"] = state ? state.invitee : undefined;
55
+ resourceInputs["inviter"] = state ? state.inviter : undefined;
56
+ resourceInputs["role"] = state ? state.role : undefined;
57
+ resourceInputs["userId"] = state ? state.userId : undefined;
58
+ }
59
+ else {
60
+ const args = argsOrState;
61
+ if ((!args || args.email === undefined) && !opts.urn) {
62
+ throw new Error("Missing required property 'email'");
63
+ }
64
+ if ((!args || args.role === undefined) && !opts.urn) {
65
+ throw new Error("Missing required property 'role'");
66
+ }
67
+ resourceInputs["email"] = args ? args.email : undefined;
68
+ resourceInputs["role"] = args ? args.role : undefined;
69
+ resourceInputs["expiresAt"] = undefined /*out*/;
70
+ resourceInputs["inviteId"] = undefined /*out*/;
71
+ resourceInputs["invitee"] = undefined /*out*/;
72
+ resourceInputs["inviter"] = undefined /*out*/;
73
+ resourceInputs["userId"] = undefined /*out*/;
74
+ }
75
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
76
+ super(UserInvite.__pulumiType, name, resourceInputs, opts);
77
+ }
78
+ }
79
+ exports.UserInvite = UserInvite;
80
+ /** @internal */
81
+ UserInvite.__pulumiType = 'astronomer:index/userInvite:UserInvite';
82
+ //# sourceMappingURL=userInvite.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userInvite.js","sourceRoot":"","sources":["../userInvite.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAuCD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SA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AAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AA/FL,gCAgGC;AAlFG,gBAAgB;AACO,uBAAY,GAAG,wCAAwC,CAAC"}
package/userRoles.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
+ * User Roles resource
6
+ */
7
+ export declare class UserRoles extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing UserRoles 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?: UserRolesState, opts?: pulumi.CustomResourceOptions): UserRoles;
18
+ /**
19
+ * Returns true if the given object is an instance of UserRoles. 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 UserRoles;
23
+ /**
24
+ * The roles to assign to the deployments
25
+ */
26
+ readonly deploymentRoles: pulumi.Output<outputs.UserRolesDeploymentRole[] | undefined>;
27
+ /**
28
+ * The role to assign to the organization
29
+ */
30
+ readonly organizationRole: pulumi.Output<string>;
31
+ /**
32
+ * The ID of the user to assign the roles to
33
+ */
34
+ readonly userId: pulumi.Output<string>;
35
+ /**
36
+ * The roles to assign to the workspaces
37
+ */
38
+ readonly workspaceRoles: pulumi.Output<outputs.UserRolesWorkspaceRole[] | undefined>;
39
+ /**
40
+ * Create a UserRoles 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: UserRolesArgs, opts?: pulumi.CustomResourceOptions);
47
+ }
48
+ /**
49
+ * Input properties used for looking up and filtering UserRoles resources.
50
+ */
51
+ export interface UserRolesState {
52
+ /**
53
+ * The roles to assign to the deployments
54
+ */
55
+ deploymentRoles?: pulumi.Input<pulumi.Input<inputs.UserRolesDeploymentRole>[]>;
56
+ /**
57
+ * The role to assign to the organization
58
+ */
59
+ organizationRole?: pulumi.Input<string>;
60
+ /**
61
+ * The ID of the user to assign the roles to
62
+ */
63
+ userId?: pulumi.Input<string>;
64
+ /**
65
+ * The roles to assign to the workspaces
66
+ */
67
+ workspaceRoles?: pulumi.Input<pulumi.Input<inputs.UserRolesWorkspaceRole>[]>;
68
+ }
69
+ /**
70
+ * The set of arguments for constructing a UserRoles resource.
71
+ */
72
+ export interface UserRolesArgs {
73
+ /**
74
+ * The roles to assign to the deployments
75
+ */
76
+ deploymentRoles?: pulumi.Input<pulumi.Input<inputs.UserRolesDeploymentRole>[]>;
77
+ /**
78
+ * The role to assign to the organization
79
+ */
80
+ organizationRole: pulumi.Input<string>;
81
+ /**
82
+ * The ID of the user to assign the roles to
83
+ */
84
+ userId: pulumi.Input<string>;
85
+ /**
86
+ * The roles to assign to the workspaces
87
+ */
88
+ workspaceRoles?: pulumi.Input<pulumi.Input<inputs.UserRolesWorkspaceRole>[]>;
89
+ }
package/userRoles.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.UserRoles = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * User Roles resource
10
+ */
11
+ class UserRoles extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing UserRoles 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 UserRoles(name, state, Object.assign(Object.assign({}, opts), { id: id }));
23
+ }
24
+ /**
25
+ * Returns true if the given object is an instance of UserRoles. 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'] === UserRoles.__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["userId"] = state ? state.userId : 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.userId === undefined) && !opts.urn) {
50
+ throw new Error("Missing required property 'userId'");
51
+ }
52
+ resourceInputs["deploymentRoles"] = args ? args.deploymentRoles : undefined;
53
+ resourceInputs["organizationRole"] = args ? args.organizationRole : undefined;
54
+ resourceInputs["userId"] = args ? args.userId : undefined;
55
+ resourceInputs["workspaceRoles"] = args ? args.workspaceRoles : undefined;
56
+ }
57
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
58
+ super(UserRoles.__pulumiType, name, resourceInputs, opts);
59
+ }
60
+ }
61
+ exports.UserRoles = UserRoles;
62
+ /** @internal */
63
+ UserRoles.__pulumiType = 'astronomer:index/userRoles:UserRoles';
64
+ //# sourceMappingURL=userRoles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userRoles.js","sourceRoot":"","sources":["../userRoles.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,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAA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AAC,CAAC;IAC9D,CAAC;;AA7EL,8BA8EC;AAhEG,gBAAgB;AACO,sBAAY,GAAG,sCAAsC,CAAC"}
package/workspace.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
2
4
  /**
3
- * Astronomer Workspace Resource
5
+ * Workspace resource
4
6
  *
5
7
  * ## Example Usage
6
8
  *
@@ -8,9 +10,13 @@ import * as pulumi from "@pulumi/pulumi";
8
10
  * import * as pulumi from "@pulumi/pulumi";
9
11
  * import * as astronomer from "@ryan-pip/pulumi_astronomer";
10
12
  *
11
- * const completeSetup = new astronomer.Workspace("completeSetup", {
13
+ * const example = new astronomer.Workspace("example", {
14
+ * description: "my first workspace",
15
+ * cicdEnforcedDefault: true,
16
+ * });
17
+ * const importedWorkspace = new astronomer.Workspace("importedWorkspace", {
18
+ * description: "an existing workspace",
12
19
  * cicdEnforcedDefault: true,
13
- * description: "Testing Workspace",
14
20
  * });
15
21
  * ```
16
22
  */
@@ -31,17 +37,33 @@ export declare class Workspace extends pulumi.CustomResource {
31
37
  */
32
38
  static isInstance(obj: any): obj is Workspace;
33
39
  /**
34
- * Whether new Deployments enforce CI/CD deploys by default.
40
+ * Whether new Deployments enforce CI/CD deploys by default
41
+ */
42
+ readonly cicdEnforcedDefault: pulumi.Output<boolean>;
43
+ /**
44
+ * Workspace creation timestamp
45
+ */
46
+ readonly createdAt: pulumi.Output<string>;
47
+ /**
48
+ * Workspace creator
35
49
  */
36
- readonly cicdEnforcedDefault: pulumi.Output<boolean | undefined>;
50
+ readonly createdBy: pulumi.Output<outputs.WorkspaceCreatedBy>;
37
51
  /**
38
- * The Workspace's description.
52
+ * Workspace description
39
53
  */
40
- readonly description: pulumi.Output<string | undefined>;
54
+ readonly description: pulumi.Output<string>;
41
55
  /**
42
- * The Workspace's name.
56
+ * Workspace name
43
57
  */
44
58
  readonly name: pulumi.Output<string>;
59
+ /**
60
+ * Workspace last updated timestamp
61
+ */
62
+ readonly updatedAt: pulumi.Output<string>;
63
+ /**
64
+ * Workspace updater
65
+ */
66
+ readonly updatedBy: pulumi.Output<outputs.WorkspaceUpdatedBy>;
45
67
  /**
46
68
  * Create a Workspace resource with the given unique name, arguments, and options.
47
69
  *
@@ -49,39 +71,55 @@ export declare class Workspace extends pulumi.CustomResource {
49
71
  * @param args The arguments to use to populate this resource's properties.
50
72
  * @param opts A bag of options that control this resource's behavior.
51
73
  */
52
- constructor(name: string, args?: WorkspaceArgs, opts?: pulumi.CustomResourceOptions);
74
+ constructor(name: string, args: WorkspaceArgs, opts?: pulumi.CustomResourceOptions);
53
75
  }
54
76
  /**
55
77
  * Input properties used for looking up and filtering Workspace resources.
56
78
  */
57
79
  export interface WorkspaceState {
58
80
  /**
59
- * Whether new Deployments enforce CI/CD deploys by default.
81
+ * Whether new Deployments enforce CI/CD deploys by default
60
82
  */
61
83
  cicdEnforcedDefault?: pulumi.Input<boolean>;
62
84
  /**
63
- * The Workspace's description.
85
+ * Workspace creation timestamp
86
+ */
87
+ createdAt?: pulumi.Input<string>;
88
+ /**
89
+ * Workspace creator
90
+ */
91
+ createdBy?: pulumi.Input<inputs.WorkspaceCreatedBy>;
92
+ /**
93
+ * Workspace description
64
94
  */
65
95
  description?: pulumi.Input<string>;
66
96
  /**
67
- * The Workspace's name.
97
+ * Workspace name
68
98
  */
69
99
  name?: pulumi.Input<string>;
100
+ /**
101
+ * Workspace last updated timestamp
102
+ */
103
+ updatedAt?: pulumi.Input<string>;
104
+ /**
105
+ * Workspace updater
106
+ */
107
+ updatedBy?: pulumi.Input<inputs.WorkspaceUpdatedBy>;
70
108
  }
71
109
  /**
72
110
  * The set of arguments for constructing a Workspace resource.
73
111
  */
74
112
  export interface WorkspaceArgs {
75
113
  /**
76
- * Whether new Deployments enforce CI/CD deploys by default.
114
+ * Whether new Deployments enforce CI/CD deploys by default
77
115
  */
78
- cicdEnforcedDefault?: pulumi.Input<boolean>;
116
+ cicdEnforcedDefault: pulumi.Input<boolean>;
79
117
  /**
80
- * The Workspace's description.
118
+ * Workspace description
81
119
  */
82
- description?: pulumi.Input<string>;
120
+ description: pulumi.Input<string>;
83
121
  /**
84
- * The Workspace's name.
122
+ * Workspace name
85
123
  */
86
124
  name?: pulumi.Input<string>;
87
125
  }
package/workspace.js CHANGED
@@ -6,7 +6,7 @@ exports.Workspace = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * Astronomer Workspace Resource
9
+ * Workspace resource
10
10
  *
11
11
  * ## Example Usage
12
12
  *
@@ -14,9 +14,13 @@ const utilities = require("./utilities");
14
14
  * import * as pulumi from "@pulumi/pulumi";
15
15
  * import * as astronomer from "@ryan-pip/pulumi_astronomer";
16
16
  *
17
- * const completeSetup = new astronomer.Workspace("completeSetup", {
17
+ * const example = new astronomer.Workspace("example", {
18
+ * description: "my first workspace",
19
+ * cicdEnforcedDefault: true,
20
+ * });
21
+ * const importedWorkspace = new astronomer.Workspace("importedWorkspace", {
22
+ * description: "an existing workspace",
18
23
  * cicdEnforcedDefault: true,
19
- * description: "Testing Workspace",
20
24
  * });
21
25
  * ```
22
26
  */
@@ -49,14 +53,28 @@ class Workspace extends pulumi.CustomResource {
49
53
  if (opts.id) {
50
54
  const state = argsOrState;
51
55
  resourceInputs["cicdEnforcedDefault"] = state ? state.cicdEnforcedDefault : undefined;
56
+ resourceInputs["createdAt"] = state ? state.createdAt : undefined;
57
+ resourceInputs["createdBy"] = state ? state.createdBy : undefined;
52
58
  resourceInputs["description"] = state ? state.description : undefined;
53
59
  resourceInputs["name"] = state ? state.name : undefined;
60
+ resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
61
+ resourceInputs["updatedBy"] = state ? state.updatedBy : undefined;
54
62
  }
55
63
  else {
56
64
  const args = argsOrState;
65
+ if ((!args || args.cicdEnforcedDefault === undefined) && !opts.urn) {
66
+ throw new Error("Missing required property 'cicdEnforcedDefault'");
67
+ }
68
+ if ((!args || args.description === undefined) && !opts.urn) {
69
+ throw new Error("Missing required property 'description'");
70
+ }
57
71
  resourceInputs["cicdEnforcedDefault"] = args ? args.cicdEnforcedDefault : undefined;
58
72
  resourceInputs["description"] = args ? args.description : undefined;
59
73
  resourceInputs["name"] = args ? args.name : undefined;
74
+ resourceInputs["createdAt"] = undefined /*out*/;
75
+ resourceInputs["createdBy"] = undefined /*out*/;
76
+ resourceInputs["updatedAt"] = undefined /*out*/;
77
+ resourceInputs["updatedBy"] = undefined /*out*/;
60
78
  }
61
79
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
62
80
  super(Workspace.__pulumiType, name, resourceInputs, opts);
package/workspace.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"workspace.js","sourceRoot":"","sources":["../workspace.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;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;IAuBD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,C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