@pulumi/dbtcloud 0.1.0-alpha.1715944408

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 (166) hide show
  1. package/LICENSE +177 -0
  2. package/README.md +70 -0
  3. package/bigQueryConnection.d.ts +399 -0
  4. package/bigQueryConnection.js +196 -0
  5. package/bigQueryConnection.js.map +1 -0
  6. package/bigQueryCredential.d.ts +117 -0
  7. package/bigQueryCredential.js +91 -0
  8. package/bigQueryCredential.js.map +1 -0
  9. package/config/index.d.ts +1 -0
  10. package/config/index.js +21 -0
  11. package/config/index.js.map +1 -0
  12. package/config/vars.d.ts +14 -0
  13. package/config/vars.js +29 -0
  14. package/config/vars.js.map +1 -0
  15. package/connection.d.ts +321 -0
  16. package/connection.js +149 -0
  17. package/connection.js.map +1 -0
  18. package/databricksCredential.d.ts +168 -0
  19. package/databricksCredential.js +120 -0
  20. package/databricksCredential.js.map +1 -0
  21. package/environment.d.ts +209 -0
  22. package/environment.js +123 -0
  23. package/environment.js.map +1 -0
  24. package/environmentVariable.d.ts +120 -0
  25. package/environmentVariable.js +101 -0
  26. package/environmentVariable.js.map +1 -0
  27. package/environmentVariableJobOverride.d.ts +119 -0
  28. package/environmentVariableJobOverride.js +93 -0
  29. package/environmentVariableJobOverride.js.map +1 -0
  30. package/extendedAttributes.d.ts +135 -0
  31. package/extendedAttributes.js +107 -0
  32. package/extendedAttributes.js.map +1 -0
  33. package/fabricConnection.d.ts +177 -0
  34. package/fabricConnection.js +108 -0
  35. package/fabricConnection.js.map +1 -0
  36. package/fabricCredential.d.ts +167 -0
  37. package/fabricCredential.js +93 -0
  38. package/fabricCredential.js.map +1 -0
  39. package/getAzureDevOpsProject.d.ts +72 -0
  40. package/getAzureDevOpsProject.js +53 -0
  41. package/getAzureDevOpsProject.js.map +1 -0
  42. package/getAzureDevOpsRepository.d.ts +98 -0
  43. package/getAzureDevOpsRepository.js +56 -0
  44. package/getAzureDevOpsRepository.js.map +1 -0
  45. package/getBigQueryConnection.d.ts +134 -0
  46. package/getBigQueryConnection.js +20 -0
  47. package/getBigQueryConnection.js.map +1 -0
  48. package/getBigQueryCredential.d.ts +58 -0
  49. package/getBigQueryCredential.js +20 -0
  50. package/getBigQueryCredential.js.map +1 -0
  51. package/getConnection.d.ts +86 -0
  52. package/getConnection.js +20 -0
  53. package/getConnection.js.map +1 -0
  54. package/getDatabricksCredential.d.ts +66 -0
  55. package/getDatabricksCredential.js +20 -0
  56. package/getDatabricksCredential.js.map +1 -0
  57. package/getEnvironment.d.ts +82 -0
  58. package/getEnvironment.js +20 -0
  59. package/getEnvironment.js.map +1 -0
  60. package/getEnvironmentVariable.d.ts +52 -0
  61. package/getEnvironmentVariable.js +20 -0
  62. package/getEnvironmentVariable.js.map +1 -0
  63. package/getExtendedAttributes.d.ts +80 -0
  64. package/getExtendedAttributes.js +46 -0
  65. package/getExtendedAttributes.js.map +1 -0
  66. package/getGroup.d.ts +50 -0
  67. package/getGroup.js +19 -0
  68. package/getGroup.js.map +1 -0
  69. package/getGroupUsers.d.ts +67 -0
  70. package/getGroupUsers.js +47 -0
  71. package/getGroupUsers.js.map +1 -0
  72. package/getJob.d.ts +89 -0
  73. package/getJob.js +20 -0
  74. package/getJob.js.map +1 -0
  75. package/getNotification.d.ts +82 -0
  76. package/getNotification.js +43 -0
  77. package/getNotification.js.map +1 -0
  78. package/getPostgresCredential.d.ts +62 -0
  79. package/getPostgresCredential.js +20 -0
  80. package/getPostgresCredential.js.map +1 -0
  81. package/getPrivatelinkEndpoint.d.ts +98 -0
  82. package/getPrivatelinkEndpoint.js +61 -0
  83. package/getPrivatelinkEndpoint.js.map +1 -0
  84. package/getProject.d.ts +102 -0
  85. package/getProject.js +57 -0
  86. package/getProject.js.map +1 -0
  87. package/getRepository.d.ts +86 -0
  88. package/getRepository.js +21 -0
  89. package/getRepository.js.map +1 -0
  90. package/getServiceToken.d.ts +47 -0
  91. package/getServiceToken.js +19 -0
  92. package/getServiceToken.js.map +1 -0
  93. package/getSnowflakeCredential.d.ts +66 -0
  94. package/getSnowflakeCredential.js +20 -0
  95. package/getSnowflakeCredential.js.map +1 -0
  96. package/getUser.d.ts +58 -0
  97. package/getUser.js +43 -0
  98. package/getUser.js.map +1 -0
  99. package/getUserGroups.d.ts +62 -0
  100. package/getUserGroups.js +43 -0
  101. package/getUserGroups.js.map +1 -0
  102. package/getWebhook.d.ts +66 -0
  103. package/getWebhook.js +19 -0
  104. package/getWebhook.js.map +1 -0
  105. package/group.d.ts +127 -0
  106. package/group.js +95 -0
  107. package/group.js.map +1 -0
  108. package/index.d.ts +144 -0
  109. package/index.js +220 -0
  110. package/index.js.map +1 -0
  111. package/job.d.ts +443 -0
  112. package/job.js +228 -0
  113. package/job.js.map +1 -0
  114. package/licenseMap.d.ts +96 -0
  115. package/licenseMap.js +90 -0
  116. package/licenseMap.js.map +1 -0
  117. package/notification.d.ts +202 -0
  118. package/notification.js +126 -0
  119. package/notification.js.map +1 -0
  120. package/package.json +31 -0
  121. package/package.json.bak +31 -0
  122. package/postgresCredential.d.ts +171 -0
  123. package/postgresCredential.js +110 -0
  124. package/postgresCredential.js.map +1 -0
  125. package/project.d.ts +87 -0
  126. package/project.js +78 -0
  127. package/project.js.map +1 -0
  128. package/projectArtefacts.d.ts +99 -0
  129. package/projectArtefacts.js +83 -0
  130. package/projectArtefacts.js.map +1 -0
  131. package/projectConnection.d.ts +86 -0
  132. package/projectConnection.js +83 -0
  133. package/projectConnection.js.map +1 -0
  134. package/projectRepository.d.ts +86 -0
  135. package/projectRepository.js +83 -0
  136. package/projectRepository.js.map +1 -0
  137. package/provider.d.ts +50 -0
  138. package/provider.js +48 -0
  139. package/provider.js.map +1 -0
  140. package/repository.d.ts +204 -0
  141. package/repository.js +103 -0
  142. package/repository.js.map +1 -0
  143. package/serviceToken.d.ts +126 -0
  144. package/serviceToken.js +95 -0
  145. package/serviceToken.js.map +1 -0
  146. package/snowflakeCredential.d.ts +218 -0
  147. package/snowflakeCredential.js +120 -0
  148. package/snowflakeCredential.js.map +1 -0
  149. package/types/index.d.ts +3 -0
  150. package/types/index.js +11 -0
  151. package/types/index.js.map +1 -0
  152. package/types/input.d.ts +43 -0
  153. package/types/input.js +5 -0
  154. package/types/input.js.map +1 -0
  155. package/types/output.d.ts +74 -0
  156. package/types/output.js +5 -0
  157. package/types/output.js.map +1 -0
  158. package/userGroups.d.ts +105 -0
  159. package/userGroups.js +102 -0
  160. package/userGroups.js.map +1 -0
  161. package/utilities.d.ts +8 -0
  162. package/utilities.js +101 -0
  163. package/utilities.js.map +1 -0
  164. package/webhook.d.ts +175 -0
  165. package/webhook.js +110 -0
  166. package/webhook.js.map +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snowflakeCredential.js","sourceRoot":"","sources":["../snowflakeCredential.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;IA+DD,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;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AC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACtD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,sBAAsB,CAAC,EAAE,CAAC;QACnG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AA9IL,kDA+IC;AAjIG,gBAAgB;AACO,gCAAY,GAAG,wDAAwD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import * as input from "./input";
2
+ import * as output from "./output";
3
+ export { input, output, };
package/types/index.js ADDED
@@ -0,0 +1,11 @@
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.output = exports.input = void 0;
6
+ // Export sub-modules:
7
+ const input = require("./input");
8
+ exports.input = input;
9
+ const output = require("./output");
10
+ exports.output = output;
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
@@ -0,0 +1,43 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export interface GroupGroupPermission {
3
+ /**
4
+ * Whether or not to apply this permission to all projects for this group
5
+ */
6
+ allProjects: pulumi.Input<boolean>;
7
+ /**
8
+ * Set of permissions to apply
9
+ */
10
+ permissionSet: pulumi.Input<string>;
11
+ /**
12
+ * Project ID to apply this permission to for this group
13
+ */
14
+ projectId?: pulumi.Input<number>;
15
+ }
16
+ export interface JobJobCompletionTriggerCondition {
17
+ /**
18
+ * The ID of the job that would trigger this job after completion.
19
+ */
20
+ jobId: pulumi.Input<number>;
21
+ /**
22
+ * The ID of the project where the trigger job is running in.
23
+ */
24
+ projectId: pulumi.Input<number>;
25
+ /**
26
+ * List of statuses to trigger the job on. Possible values are `success`, `error` and `canceled`.
27
+ */
28
+ statuses: pulumi.Input<pulumi.Input<string>[]>;
29
+ }
30
+ export interface ServiceTokenServiceTokenPermission {
31
+ /**
32
+ * Whether or not to apply this permission to all projects for this service token
33
+ */
34
+ allProjects: pulumi.Input<boolean>;
35
+ /**
36
+ * Set of permissions to apply
37
+ */
38
+ permissionSet: pulumi.Input<string>;
39
+ /**
40
+ * Project ID to apply this permission to for this service token
41
+ */
42
+ projectId?: pulumi.Input<number>;
43
+ }
package/types/input.js ADDED
@@ -0,0 +1,5 @@
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
+ //# sourceMappingURL=input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF"}
@@ -0,0 +1,74 @@
1
+ export interface GetGroupUsersUser {
2
+ email: string;
3
+ id: number;
4
+ }
5
+ export interface GetJobJobCompletionTriggerCondition {
6
+ /**
7
+ * The ID of the job that would trigger this job after completion.
8
+ */
9
+ jobId: number;
10
+ /**
11
+ * The ID of the project where the trigger job is running in.
12
+ */
13
+ projectId: number;
14
+ /**
15
+ * List of statuses to trigger the job on.
16
+ */
17
+ statuses: string[];
18
+ }
19
+ export interface GetServiceTokenServiceTokenPermission {
20
+ /**
21
+ * Whether or not to apply this permission to all projects for this service token
22
+ */
23
+ allProjects: boolean;
24
+ /**
25
+ * Set of permissions to apply
26
+ */
27
+ permissionSet: string;
28
+ /**
29
+ * Project ID to apply this permission to for this service token
30
+ */
31
+ projectId: number;
32
+ }
33
+ export interface GroupGroupPermission {
34
+ /**
35
+ * Whether or not to apply this permission to all projects for this group
36
+ */
37
+ allProjects: boolean;
38
+ /**
39
+ * Set of permissions to apply
40
+ */
41
+ permissionSet: string;
42
+ /**
43
+ * Project ID to apply this permission to for this group
44
+ */
45
+ projectId?: number;
46
+ }
47
+ export interface JobJobCompletionTriggerCondition {
48
+ /**
49
+ * The ID of the job that would trigger this job after completion.
50
+ */
51
+ jobId: number;
52
+ /**
53
+ * The ID of the project where the trigger job is running in.
54
+ */
55
+ projectId: number;
56
+ /**
57
+ * List of statuses to trigger the job on. Possible values are `success`, `error` and `canceled`.
58
+ */
59
+ statuses: string[];
60
+ }
61
+ export interface ServiceTokenServiceTokenPermission {
62
+ /**
63
+ * Whether or not to apply this permission to all projects for this service token
64
+ */
65
+ allProjects: boolean;
66
+ /**
67
+ * Set of permissions to apply
68
+ */
69
+ permissionSet: string;
70
+ /**
71
+ * Project ID to apply this permission to for this service token
72
+ */
73
+ projectId?: number;
74
+ }
@@ -0,0 +1,5 @@
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
+ //# sourceMappingURL=output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF"}
@@ -0,0 +1,105 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Assigns a set of dbt Cloud groups to a given User ID.
4
+ *
5
+ * > If additional groups were assigned manually in dbt Cloud, they will be removed. The full list of groups need to be provided as config.
6
+ *
7
+ * > This resource does not currently support deletion (e.g. a deleted resource will stay as-is in dbt Cloud).
8
+ * This is intentional in order to prevent accidental deletion of all users groups assigned to a user.
9
+ * If you would like a different behavior, please open an issue on GitHub. To remove all groups for a user, set "groupIds" to the empty set "[]".
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as dbtcloud from "@pulumi/dbtcloud";
16
+ *
17
+ * // we can assign groups to users
18
+ * const myUserGroups = new dbtcloud.UserGroups("my_user_groups", {
19
+ * userId: myUser.id,
20
+ * groupIds: [
21
+ * 1234,
22
+ * myGroup.id,
23
+ * myGroupId,
24
+ * ],
25
+ * });
26
+ * // as Delete is not handled currently, by design, removing all groups from a user can be done with
27
+ * const myOtherUserGroups = new dbtcloud.UserGroups("my_other_user_groups", {
28
+ * userId: 123456,
29
+ * groupIds: [],
30
+ * });
31
+ * ```
32
+ *
33
+ * ## Import
34
+ *
35
+ * Import using the User ID
36
+ *
37
+ * The User ID can be retrieved from the dbt Cloud UI or with the data source dbtcloud_user
38
+ *
39
+ * ```sh
40
+ * $ pulumi import dbtcloud:index/userGroups:UserGroups my_user_groups "user_id"
41
+ * ```
42
+ *
43
+ * ```sh
44
+ * $ pulumi import dbtcloud:index/userGroups:UserGroups my_user_groups 123456
45
+ * ```
46
+ */
47
+ export declare class UserGroups extends pulumi.CustomResource {
48
+ /**
49
+ * Get an existing UserGroups resource's state with the given name, ID, and optional extra
50
+ * properties used to qualify the lookup.
51
+ *
52
+ * @param name The _unique_ name of the resulting resource.
53
+ * @param id The _unique_ provider ID of the resource to lookup.
54
+ * @param state Any extra arguments used during the lookup.
55
+ * @param opts Optional settings to control the behavior of the CustomResource.
56
+ */
57
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: UserGroupsState, opts?: pulumi.CustomResourceOptions): UserGroups;
58
+ /**
59
+ * Returns true if the given object is an instance of UserGroups. This is designed to work even
60
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
61
+ */
62
+ static isInstance(obj: any): obj is UserGroups;
63
+ /**
64
+ * IDs of the groups to assign to the user. If additional groups were assigned manually in dbt Cloud, they will be removed.
65
+ */
66
+ readonly groupIds: pulumi.Output<number[]>;
67
+ /**
68
+ * The internal ID of a dbt Cloud user
69
+ */
70
+ readonly userId: pulumi.Output<number>;
71
+ /**
72
+ * Create a UserGroups resource with the given unique name, arguments, and options.
73
+ *
74
+ * @param name The _unique_ name of the resource.
75
+ * @param args The arguments to use to populate this resource's properties.
76
+ * @param opts A bag of options that control this resource's behavior.
77
+ */
78
+ constructor(name: string, args: UserGroupsArgs, opts?: pulumi.CustomResourceOptions);
79
+ }
80
+ /**
81
+ * Input properties used for looking up and filtering UserGroups resources.
82
+ */
83
+ export interface UserGroupsState {
84
+ /**
85
+ * IDs of the groups to assign to the user. If additional groups were assigned manually in dbt Cloud, they will be removed.
86
+ */
87
+ groupIds?: pulumi.Input<pulumi.Input<number>[]>;
88
+ /**
89
+ * The internal ID of a dbt Cloud user
90
+ */
91
+ userId?: pulumi.Input<number>;
92
+ }
93
+ /**
94
+ * The set of arguments for constructing a UserGroups resource.
95
+ */
96
+ export interface UserGroupsArgs {
97
+ /**
98
+ * IDs of the groups to assign to the user. If additional groups were assigned manually in dbt Cloud, they will be removed.
99
+ */
100
+ groupIds: pulumi.Input<pulumi.Input<number>[]>;
101
+ /**
102
+ * The internal ID of a dbt Cloud user
103
+ */
104
+ userId: pulumi.Input<number>;
105
+ }
package/userGroups.js ADDED
@@ -0,0 +1,102 @@
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.UserGroups = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Assigns a set of dbt Cloud groups to a given User ID.
10
+ *
11
+ * > If additional groups were assigned manually in dbt Cloud, they will be removed. The full list of groups need to be provided as config.
12
+ *
13
+ * > This resource does not currently support deletion (e.g. a deleted resource will stay as-is in dbt Cloud).
14
+ * This is intentional in order to prevent accidental deletion of all users groups assigned to a user.
15
+ * If you would like a different behavior, please open an issue on GitHub. To remove all groups for a user, set "groupIds" to the empty set "[]".
16
+ *
17
+ * ## Example Usage
18
+ *
19
+ * ```typescript
20
+ * import * as pulumi from "@pulumi/pulumi";
21
+ * import * as dbtcloud from "@pulumi/dbtcloud";
22
+ *
23
+ * // we can assign groups to users
24
+ * const myUserGroups = new dbtcloud.UserGroups("my_user_groups", {
25
+ * userId: myUser.id,
26
+ * groupIds: [
27
+ * 1234,
28
+ * myGroup.id,
29
+ * myGroupId,
30
+ * ],
31
+ * });
32
+ * // as Delete is not handled currently, by design, removing all groups from a user can be done with
33
+ * const myOtherUserGroups = new dbtcloud.UserGroups("my_other_user_groups", {
34
+ * userId: 123456,
35
+ * groupIds: [],
36
+ * });
37
+ * ```
38
+ *
39
+ * ## Import
40
+ *
41
+ * Import using the User ID
42
+ *
43
+ * The User ID can be retrieved from the dbt Cloud UI or with the data source dbtcloud_user
44
+ *
45
+ * ```sh
46
+ * $ pulumi import dbtcloud:index/userGroups:UserGroups my_user_groups "user_id"
47
+ * ```
48
+ *
49
+ * ```sh
50
+ * $ pulumi import dbtcloud:index/userGroups:UserGroups my_user_groups 123456
51
+ * ```
52
+ */
53
+ class UserGroups extends pulumi.CustomResource {
54
+ /**
55
+ * Get an existing UserGroups resource's state with the given name, ID, and optional extra
56
+ * properties used to qualify the lookup.
57
+ *
58
+ * @param name The _unique_ name of the resulting resource.
59
+ * @param id The _unique_ provider ID of the resource to lookup.
60
+ * @param state Any extra arguments used during the lookup.
61
+ * @param opts Optional settings to control the behavior of the CustomResource.
62
+ */
63
+ static get(name, id, state, opts) {
64
+ return new UserGroups(name, state, Object.assign(Object.assign({}, opts), { id: id }));
65
+ }
66
+ /**
67
+ * Returns true if the given object is an instance of UserGroups. This is designed to work even
68
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
69
+ */
70
+ static isInstance(obj) {
71
+ if (obj === undefined || obj === null) {
72
+ return false;
73
+ }
74
+ return obj['__pulumiType'] === UserGroups.__pulumiType;
75
+ }
76
+ constructor(name, argsOrState, opts) {
77
+ let resourceInputs = {};
78
+ opts = opts || {};
79
+ if (opts.id) {
80
+ const state = argsOrState;
81
+ resourceInputs["groupIds"] = state ? state.groupIds : undefined;
82
+ resourceInputs["userId"] = state ? state.userId : undefined;
83
+ }
84
+ else {
85
+ const args = argsOrState;
86
+ if ((!args || args.groupIds === undefined) && !opts.urn) {
87
+ throw new Error("Missing required property 'groupIds'");
88
+ }
89
+ if ((!args || args.userId === undefined) && !opts.urn) {
90
+ throw new Error("Missing required property 'userId'");
91
+ }
92
+ resourceInputs["groupIds"] = args ? args.groupIds : undefined;
93
+ resourceInputs["userId"] = args ? args.userId : undefined;
94
+ }
95
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
96
+ super(UserGroups.__pulumiType, name, resourceInputs, opts);
97
+ }
98
+ }
99
+ exports.UserGroups = UserGroups;
100
+ /** @internal */
101
+ UserGroups.__pulumiType = 'dbtcloud:index/userGroups:UserGroups';
102
+ //# sourceMappingURL=userGroups.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userGroups.js","sourceRoot":"","sources":["../userGroups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MA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oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;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;;AAjEL,gCAkEC;AApDG,gBAAgB;AACO,uBAAY,GAAG,sCAAsC,CAAC"}
package/utilities.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare function getEnv(...vars: string[]): string | undefined;
3
+ export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
4
+ export declare function getEnvNumber(...vars: string[]): number | undefined;
5
+ export declare function getVersion(): string;
6
+ export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
7
+ property?: string;
8
+ }): Promise<T>;
package/utilities.js ADDED
@@ -0,0 +1,101 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
15
+ const runtime = require("@pulumi/pulumi/runtime");
16
+ function getEnv(...vars) {
17
+ for (const v of vars) {
18
+ const value = process.env[v];
19
+ if (value) {
20
+ return value;
21
+ }
22
+ }
23
+ return undefined;
24
+ }
25
+ exports.getEnv = getEnv;
26
+ function getEnvBoolean(...vars) {
27
+ const s = getEnv(...vars);
28
+ if (s !== undefined) {
29
+ // NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
30
+ // Terraform uses internally when parsing boolean values.
31
+ if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
32
+ return true;
33
+ }
34
+ if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
35
+ return false;
36
+ }
37
+ }
38
+ return undefined;
39
+ }
40
+ exports.getEnvBoolean = getEnvBoolean;
41
+ function getEnvNumber(...vars) {
42
+ const s = getEnv(...vars);
43
+ if (s !== undefined) {
44
+ const f = parseFloat(s);
45
+ if (!isNaN(f)) {
46
+ return f;
47
+ }
48
+ }
49
+ return undefined;
50
+ }
51
+ exports.getEnvNumber = getEnvNumber;
52
+ function getVersion() {
53
+ let version = require('./package.json').version;
54
+ // Node allows for the version to be prefixed by a "v", while semver doesn't.
55
+ // If there is a v, strip it off.
56
+ if (version.indexOf('v') === 0) {
57
+ version = version.slice(1);
58
+ }
59
+ return version;
60
+ }
61
+ exports.getVersion = getVersion;
62
+ /** @internal */
63
+ function resourceOptsDefaults() {
64
+ return { version: getVersion(), pluginDownloadURL: "github://api.github.com/pulumi/pulumi-dbtcloud" };
65
+ }
66
+ exports.resourceOptsDefaults = resourceOptsDefaults;
67
+ /** @internal */
68
+ function lazyLoad(exports, props, loadModule) {
69
+ for (let property of props) {
70
+ Object.defineProperty(exports, property, {
71
+ enumerable: true,
72
+ get: function () {
73
+ return loadModule()[property];
74
+ },
75
+ });
76
+ }
77
+ }
78
+ exports.lazyLoad = lazyLoad;
79
+ function callAsync(tok, props, res, opts) {
80
+ return __awaiter(this, void 0, void 0, function* () {
81
+ const o = runtime.call(tok, props, res);
82
+ const value = yield o.promise(true /*withUnknowns*/);
83
+ const isKnown = yield o.isKnown;
84
+ const isSecret = yield o.isSecret;
85
+ const problem = !isKnown ? "an unknown value"
86
+ : isSecret ? "a secret value"
87
+ : undefined;
88
+ // Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
89
+ if (problem) {
90
+ throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
91
+ "This is an error in the provider, please report this to the provider developer.");
92
+ }
93
+ // Extract a single property if requested.
94
+ if (opts && opts.property) {
95
+ return value[opts.property];
96
+ }
97
+ return value;
98
+ });
99
+ }
100
+ exports.callAsync = callAsync;
101
+ //# sourceMappingURL=utilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAGjF,kDAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE;QACjB,uGAAuG;QACvG,yDAAyD;QACzD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE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i/pulumi";
7
+ * import * as dbtcloud from "@pulumi/dbtcloud";
8
+ *
9
+ * // NOTE for customers using the LEGACY dbt_cloud provider:
10
+ * const testWebhook = new dbtcloud.Webhook("test_webhook", {
11
+ * name: "test-webhook",
12
+ * description: "Test webhook",
13
+ * clientUrl: "http://localhost/nothing",
14
+ * eventTypes: [
15
+ * "job.run.started",
16
+ * "job.run.completed",
17
+ * ],
18
+ * jobIds: [
19
+ * 1234,
20
+ * 5678,
21
+ * ],
22
+ * });
23
+ * ```
24
+ *
25
+ * ## Import
26
+ *
27
+ * Import using a job ID found in the URL or via the API.
28
+ *
29
+ * ```sh
30
+ * $ pulumi import dbtcloud:index/webhook:Webhook test_webhook "job_id"
31
+ * ```
32
+ *
33
+ * ```sh
34
+ * $ pulumi import dbtcloud:index/webhook:Webhook test_webhook wsu_abcdefg
35
+ * ```
36
+ */
37
+ export declare class Webhook extends pulumi.CustomResource {
38
+ /**
39
+ * Get an existing Webhook resource's state with the given name, ID, and optional extra
40
+ * properties used to qualify the lookup.
41
+ *
42
+ * @param name The _unique_ name of the resulting resource.
43
+ * @param id The _unique_ provider ID of the resource to lookup.
44
+ * @param state Any extra arguments used during the lookup.
45
+ * @param opts Optional settings to control the behavior of the CustomResource.
46
+ */
47
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WebhookState, opts?: pulumi.CustomResourceOptions): Webhook;
48
+ /**
49
+ * Returns true if the given object is an instance of Webhook. This is designed to work even
50
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
+ */
52
+ static isInstance(obj: any): obj is Webhook;
53
+ /**
54
+ * Webhooks Account Identifier
55
+ */
56
+ readonly accountIdentifier: pulumi.Output<string>;
57
+ /**
58
+ * Webhooks active flag
59
+ */
60
+ readonly active: pulumi.Output<boolean | undefined>;
61
+ /**
62
+ * Webhooks Client URL
63
+ */
64
+ readonly clientUrl: pulumi.Output<string>;
65
+ /**
66
+ * Webhooks Description
67
+ */
68
+ readonly description: pulumi.Output<string | undefined>;
69
+ /**
70
+ * Webhooks Event Types
71
+ */
72
+ readonly eventTypes: pulumi.Output<string[]>;
73
+ /**
74
+ * Secret key for the webhook. Can be used to validate the authenticity of the webhook.
75
+ */
76
+ readonly hmacSecret: pulumi.Output<string>;
77
+ /**
78
+ * Latest HTTP status of the webhook
79
+ */
80
+ readonly httpStatusCode: pulumi.Output<string>;
81
+ /**
82
+ * List of job IDs to trigger the webhook, An empty list will trigger on all jobs
83
+ */
84
+ readonly jobIds: pulumi.Output<number[] | undefined>;
85
+ /**
86
+ * Webhooks Name
87
+ */
88
+ readonly name: pulumi.Output<string>;
89
+ /**
90
+ * Webhooks ID
91
+ */
92
+ readonly webhookId: pulumi.Output<string>;
93
+ /**
94
+ * Create a Webhook resource with the given unique name, arguments, and options.
95
+ *
96
+ * @param name The _unique_ name of the resource.
97
+ * @param args The arguments to use to populate this resource's properties.
98
+ * @param opts A bag of options that control this resource's behavior.
99
+ */
100
+ constructor(name: string, args: WebhookArgs, opts?: pulumi.CustomResourceOptions);
101
+ }
102
+ /**
103
+ * Input properties used for looking up and filtering Webhook resources.
104
+ */
105
+ export interface WebhookState {
106
+ /**
107
+ * Webhooks Account Identifier
108
+ */
109
+ accountIdentifier?: pulumi.Input<string>;
110
+ /**
111
+ * Webhooks active flag
112
+ */
113
+ active?: pulumi.Input<boolean>;
114
+ /**
115
+ * Webhooks Client URL
116
+ */
117
+ clientUrl?: pulumi.Input<string>;
118
+ /**
119
+ * Webhooks Description
120
+ */
121
+ description?: pulumi.Input<string>;
122
+ /**
123
+ * Webhooks Event Types
124
+ */
125
+ eventTypes?: pulumi.Input<pulumi.Input<string>[]>;
126
+ /**
127
+ * Secret key for the webhook. Can be used to validate the authenticity of the webhook.
128
+ */
129
+ hmacSecret?: pulumi.Input<string>;
130
+ /**
131
+ * Latest HTTP status of the webhook
132
+ */
133
+ httpStatusCode?: pulumi.Input<string>;
134
+ /**
135
+ * List of job IDs to trigger the webhook, An empty list will trigger on all jobs
136
+ */
137
+ jobIds?: pulumi.Input<pulumi.Input<number>[]>;
138
+ /**
139
+ * Webhooks Name
140
+ */
141
+ name?: pulumi.Input<string>;
142
+ /**
143
+ * Webhooks ID
144
+ */
145
+ webhookId?: pulumi.Input<string>;
146
+ }
147
+ /**
148
+ * The set of arguments for constructing a Webhook resource.
149
+ */
150
+ export interface WebhookArgs {
151
+ /**
152
+ * Webhooks active flag
153
+ */
154
+ active?: pulumi.Input<boolean>;
155
+ /**
156
+ * Webhooks Client URL
157
+ */
158
+ clientUrl: pulumi.Input<string>;
159
+ /**
160
+ * Webhooks Description
161
+ */
162
+ description?: pulumi.Input<string>;
163
+ /**
164
+ * Webhooks Event Types
165
+ */
166
+ eventTypes: pulumi.Input<pulumi.Input<string>[]>;
167
+ /**
168
+ * List of job IDs to trigger the webhook, An empty list will trigger on all jobs
169
+ */
170
+ jobIds?: pulumi.Input<pulumi.Input<number>[]>;
171
+ /**
172
+ * Webhooks Name
173
+ */
174
+ name?: pulumi.Input<string>;
175
+ }