@pulumi/databricks 0.0.1-alpha.1648473134

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 (261) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +303 -0
  3. package/awsS3Mount.d.ts +50 -0
  4. package/awsS3Mount.js +63 -0
  5. package/awsS3Mount.js.map +1 -0
  6. package/azureAdlsGen1Mount.d.ts +65 -0
  7. package/azureAdlsGen1Mount.js +85 -0
  8. package/azureAdlsGen1Mount.js.map +1 -0
  9. package/azureAdlsGen2Mount.d.ts +68 -0
  10. package/azureAdlsGen2Mount.js +93 -0
  11. package/azureAdlsGen2Mount.js.map +1 -0
  12. package/azureBlobMount.d.ts +62 -0
  13. package/azureBlobMount.js +83 -0
  14. package/azureBlobMount.js.map +1 -0
  15. package/catalog.d.ts +124 -0
  16. package/catalog.js +88 -0
  17. package/catalog.js.map +1 -0
  18. package/cluster.d.ts +332 -0
  19. package/cluster.js +121 -0
  20. package/cluster.js.map +1 -0
  21. package/clusterPolicy.d.ts +112 -0
  22. package/clusterPolicy.js +97 -0
  23. package/clusterPolicy.js.map +1 -0
  24. package/config/index.d.ts +1 -0
  25. package/config/index.js +21 -0
  26. package/config/index.js.map +1 -0
  27. package/config/vars.d.ts +20 -0
  28. package/config/vars.js +127 -0
  29. package/config/vars.js.map +1 -0
  30. package/dbfsFile.d.ts +91 -0
  31. package/dbfsFile.js +71 -0
  32. package/dbfsFile.js.map +1 -0
  33. package/directory.d.ts +72 -0
  34. package/directory.js +65 -0
  35. package/directory.js.map +1 -0
  36. package/externalLocation.d.ts +114 -0
  37. package/externalLocation.js +80 -0
  38. package/externalLocation.js.map +1 -0
  39. package/getAwsAssumeRolePolicy.d.ts +47 -0
  40. package/getAwsAssumeRolePolicy.js +24 -0
  41. package/getAwsAssumeRolePolicy.js.map +1 -0
  42. package/getAwsBucketPolicy.d.ts +59 -0
  43. package/getAwsBucketPolicy.js +36 -0
  44. package/getAwsBucketPolicy.js.map +1 -0
  45. package/getAwsCrossAccountPolicy.d.ts +59 -0
  46. package/getAwsCrossAccountPolicy.js +47 -0
  47. package/getAwsCrossAccountPolicy.js.map +1 -0
  48. package/getCatalogs.d.ts +54 -0
  49. package/getCatalogs.js +43 -0
  50. package/getCatalogs.js.map +1 -0
  51. package/getClusters.d.ts +69 -0
  52. package/getClusters.js +57 -0
  53. package/getClusters.js.map +1 -0
  54. package/getCurrentUser.d.ts +39 -0
  55. package/getCurrentUser.js +38 -0
  56. package/getCurrentUser.js.map +1 -0
  57. package/getDbfsFile.d.ts +69 -0
  58. package/getDbfsFile.js +44 -0
  59. package/getDbfsFile.js.map +1 -0
  60. package/getDbfsFilePaths.d.ts +68 -0
  61. package/getDbfsFilePaths.js +46 -0
  62. package/getDbfsFilePaths.js.map +1 -0
  63. package/getGroup.d.ts +166 -0
  64. package/getGroup.js +46 -0
  65. package/getGroup.js.map +1 -0
  66. package/getJobs.d.ts +47 -0
  67. package/getJobs.js +30 -0
  68. package/getJobs.js.map +1 -0
  69. package/getNodeType.d.ts +173 -0
  70. package/getNodeType.js +71 -0
  71. package/getNodeType.js.map +1 -0
  72. package/getNotebook.d.ts +93 -0
  73. package/getNotebook.js +39 -0
  74. package/getNotebook.js.map +1 -0
  75. package/getNotebookPaths.d.ts +58 -0
  76. package/getNotebookPaths.js +36 -0
  77. package/getNotebookPaths.js.map +1 -0
  78. package/getSchemas.d.ts +65 -0
  79. package/getSchemas.js +45 -0
  80. package/getSchemas.js.map +1 -0
  81. package/getSparkVersion.d.ts +150 -0
  82. package/getSparkVersion.js +70 -0
  83. package/getSparkVersion.js.map +1 -0
  84. package/getTables.d.ts +75 -0
  85. package/getTables.js +47 -0
  86. package/getTables.js.map +1 -0
  87. package/getUser.d.ts +78 -0
  88. package/getUser.js +39 -0
  89. package/getUser.js.map +1 -0
  90. package/getZones.d.ts +29 -0
  91. package/getZones.js +26 -0
  92. package/getZones.js.map +1 -0
  93. package/gitCredential.d.ts +48 -0
  94. package/gitCredential.js +64 -0
  95. package/gitCredential.js.map +1 -0
  96. package/globalInitScript.d.ts +99 -0
  97. package/globalInitScript.js +68 -0
  98. package/globalInitScript.js.map +1 -0
  99. package/grants.d.ts +58 -0
  100. package/grants.js +64 -0
  101. package/grants.js.map +1 -0
  102. package/group.d.ts +131 -0
  103. package/group.js +83 -0
  104. package/group.js.map +1 -0
  105. package/groupInstanceProfile.d.ts +96 -0
  106. package/groupInstanceProfile.js +93 -0
  107. package/groupInstanceProfile.js.map +1 -0
  108. package/index.d.ts +81 -0
  109. package/index.js +362 -0
  110. package/index.js.map +1 -0
  111. package/instancePool.d.ts +166 -0
  112. package/instancePool.js +93 -0
  113. package/instancePool.js.map +1 -0
  114. package/instanceProfile.d.ts +180 -0
  115. package/instanceProfile.js +161 -0
  116. package/instanceProfile.js.map +1 -0
  117. package/ipAccessList.d.ts +128 -0
  118. package/ipAccessList.js +108 -0
  119. package/ipAccessList.js.map +1 -0
  120. package/job.d.ts +228 -0
  121. package/job.js +102 -0
  122. package/job.js.map +1 -0
  123. package/library.d.ts +183 -0
  124. package/library.js +189 -0
  125. package/library.js.map +1 -0
  126. package/metastore.d.ts +102 -0
  127. package/metastore.js +75 -0
  128. package/metastore.js.map +1 -0
  129. package/metastoreAssignment.d.ts +94 -0
  130. package/metastoreAssignment.js +81 -0
  131. package/metastoreAssignment.js.map +1 -0
  132. package/metastoreDataAccess.d.ts +85 -0
  133. package/metastoreDataAccess.js +73 -0
  134. package/metastoreDataAccess.js.map +1 -0
  135. package/mlflowExperiment.d.ts +122 -0
  136. package/mlflowExperiment.js +99 -0
  137. package/mlflowExperiment.js.map +1 -0
  138. package/mlflowModel.d.ts +131 -0
  139. package/mlflowModel.js +107 -0
  140. package/mlflowModel.js.map +1 -0
  141. package/mlflowWebhook.d.ts +129 -0
  142. package/mlflowWebhook.js +100 -0
  143. package/mlflowWebhook.js.map +1 -0
  144. package/mount.d.ts +89 -0
  145. package/mount.js +76 -0
  146. package/mount.js.map +1 -0
  147. package/mwsCredentials.d.ts +137 -0
  148. package/mwsCredentials.js +115 -0
  149. package/mwsCredentials.js.map +1 -0
  150. package/mwsCustomerManagedKeys.d.ts +257 -0
  151. package/mwsCustomerManagedKeys.js +226 -0
  152. package/mwsCustomerManagedKeys.js.map +1 -0
  153. package/mwsLogDelivery.d.ts +219 -0
  154. package/mwsLogDelivery.js +144 -0
  155. package/mwsLogDelivery.js.map +1 -0
  156. package/mwsNetworks.d.ts +129 -0
  157. package/mwsNetworks.js +89 -0
  158. package/mwsNetworks.js.map +1 -0
  159. package/mwsPrivateAccessSettings.d.ts +137 -0
  160. package/mwsPrivateAccessSettings.js +74 -0
  161. package/mwsPrivateAccessSettings.js.map +1 -0
  162. package/mwsStorageConfigurations.d.ts +122 -0
  163. package/mwsStorageConfigurations.js +106 -0
  164. package/mwsStorageConfigurations.js.map +1 -0
  165. package/mwsVpcEndpoint.d.ts +122 -0
  166. package/mwsVpcEndpoint.js +79 -0
  167. package/mwsVpcEndpoint.js.map +1 -0
  168. package/mwsWorkspaces.d.ts +222 -0
  169. package/mwsWorkspaces.js +106 -0
  170. package/mwsWorkspaces.js.map +1 -0
  171. package/notebook.d.ts +128 -0
  172. package/notebook.js +77 -0
  173. package/notebook.js.map +1 -0
  174. package/oboToken.d.ts +98 -0
  175. package/oboToken.js +82 -0
  176. package/oboToken.js.map +1 -0
  177. package/package.json +28 -0
  178. package/package.json.bak +28 -0
  179. package/package.json.dev +28 -0
  180. package/permissions.d.ts +211 -0
  181. package/permissions.js +97 -0
  182. package/permissions.js.map +1 -0
  183. package/pipeline.d.ts +200 -0
  184. package/pipeline.js +134 -0
  185. package/pipeline.js.map +1 -0
  186. package/provider.d.ts +61 -0
  187. package/provider.js +64 -0
  188. package/provider.js.map +1 -0
  189. package/repo.d.ts +117 -0
  190. package/repo.js +71 -0
  191. package/repo.js.map +1 -0
  192. package/schema.d.ts +149 -0
  193. package/schema.js +106 -0
  194. package/schema.js.map +1 -0
  195. package/scripts/install-pulumi-plugin.js +21 -0
  196. package/secret.d.ts +115 -0
  197. package/secret.js +99 -0
  198. package/secret.js.map +1 -0
  199. package/secretAcl.d.ts +115 -0
  200. package/secretAcl.js +105 -0
  201. package/secretAcl.js.map +1 -0
  202. package/secretScope.d.ts +85 -0
  203. package/secretScope.js +64 -0
  204. package/secretScope.js.map +1 -0
  205. package/servicePrincipal.d.ts +142 -0
  206. package/servicePrincipal.js +83 -0
  207. package/servicePrincipal.js.map +1 -0
  208. package/sqlDashboard.d.ts +90 -0
  209. package/sqlDashboard.js +99 -0
  210. package/sqlDashboard.js.map +1 -0
  211. package/sqlEndpoint.d.ts +249 -0
  212. package/sqlEndpoint.js +128 -0
  213. package/sqlEndpoint.js.map +1 -0
  214. package/sqlGlobalConfig.d.ts +157 -0
  215. package/sqlGlobalConfig.js +115 -0
  216. package/sqlGlobalConfig.js.map +1 -0
  217. package/sqlPermissions.d.ts +191 -0
  218. package/sqlPermissions.js +139 -0
  219. package/sqlPermissions.js.map +1 -0
  220. package/sqlQuery.d.ts +131 -0
  221. package/sqlQuery.js +139 -0
  222. package/sqlQuery.js.map +1 -0
  223. package/sqlVisualization.d.ts +105 -0
  224. package/sqlVisualization.js +119 -0
  225. package/sqlVisualization.js.map +1 -0
  226. package/sqlWidget.d.ts +109 -0
  227. package/sqlWidget.js +114 -0
  228. package/sqlWidget.js.map +1 -0
  229. package/storageCredential.d.ts +122 -0
  230. package/storageCredential.js +118 -0
  231. package/storageCredential.js.map +1 -0
  232. package/table.d.ts +249 -0
  233. package/table.js +157 -0
  234. package/table.js.map +1 -0
  235. package/token.d.ts +102 -0
  236. package/token.js +84 -0
  237. package/token.js.map +1 -0
  238. package/types/index.d.ts +3 -0
  239. package/types/index.js +11 -0
  240. package/types/index.js.map +1 -0
  241. package/types/input.d.ts +1209 -0
  242. package/types/input.js +5 -0
  243. package/types/input.js.map +1 -0
  244. package/types/output.d.ts +1222 -0
  245. package/types/output.js +5 -0
  246. package/types/output.js.map +1 -0
  247. package/user.d.ts +149 -0
  248. package/user.js +91 -0
  249. package/user.js.map +1 -0
  250. package/userInstanceProfile.d.ts +93 -0
  251. package/userInstanceProfile.js +90 -0
  252. package/userInstanceProfile.js.map +1 -0
  253. package/userRole.d.ts +106 -0
  254. package/userRole.js +103 -0
  255. package/userRole.js.map +1 -0
  256. package/utilities.d.ts +4 -0
  257. package/utilities.js +57 -0
  258. package/utilities.js.map +1 -0
  259. package/workspaceConf.d.ts +76 -0
  260. package/workspaceConf.js +71 -0
  261. package/workspaceConf.js.map +1 -0
@@ -0,0 +1,112 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * This resource creates a cluster policy, which limits the ability to create clusters based on a set of rules. The policy rules limit the attributes or attribute values available for cluster creation. cluster policies have ACLs that limit their use to specific users and groups. Only admin users can create, edit, and delete policies. Admin users also have access to all policies.
4
+ *
5
+ * Cluster policies let you:
6
+ *
7
+ * * Limit users to create clusters with prescribed settings.
8
+ * * Simplify the user interface and enable more users to create their own clusters (by fixing and hiding some values).
9
+ * * Control cost by limiting per cluster maximum cost (by setting limits on attributes whose values contribute to hourly price).
10
+ *
11
+ * Cluster policy permissions limit which policies a user can select in the Policy drop-down when the user creates a cluster:
12
+ *
13
+ * * If no policies have been created in the workspace, the Policy drop-down does not display.
14
+ * * A user who has cluster create permission can select the `Free form` policy and create fully-configurable clusters.
15
+ * * A user who has both cluster create permission and access to cluster policies can select the Free form policy and policies they have access to.
16
+ * * A user that has access to only cluster policies, can select the policies they have access to.
17
+ *
18
+ * ## Related Resources
19
+ *
20
+ * The following resources are often used in the same context:
21
+ *
22
+ * * Dynamic Passthrough Clusters for a Group guide
23
+ * * End to end workspace management guide
24
+ * * databricks.getClusters data to retrieve a list of databricks.Cluster ids.
25
+ * * databricks.Cluster to create [Databricks Clusters](https://docs.databricks.com/clusters/index.html).
26
+ * * databricks.getCurrentUser data to retrieve information about databricks.User or databricks_service_principal, that is calling Databricks REST API.
27
+ * * databricks.GlobalInitScript to manage [global init scripts](https://docs.databricks.com/clusters/init-scripts.html#global-init-scripts), which are run on all databricks.Cluster and databricks_job.
28
+ * * databricks.InstancePool to manage [instance pools](https://docs.databricks.com/clusters/instance-pools/index.html) to reduce cluster start and auto-scaling times by maintaining a set of idle, ready-to-use instances.
29
+ * * databricks.InstanceProfile to manage AWS EC2 instance profiles that users can launch databricks.Cluster and access data, like databricks_mount.
30
+ * * databricks.IpAccessList to allow access from [predefined IP ranges](https://docs.databricks.com/security/network/ip-access-list.html).
31
+ * * databricks.Library to install a [library](https://docs.databricks.com/libraries/index.html) on databricks_cluster.
32
+ * * databricks.getNodeType data to get the smallest node type for databricks.Cluster that fits search criteria, like amount of RAM or number of cores.
33
+ * * databricks.Permissions to manage [access control](https://docs.databricks.com/security/access-control/index.html) in Databricks workspace.
34
+ * * databricks.getSparkVersion data to get [Databricks Runtime (DBR)](https://docs.databricks.com/runtime/dbr.html) version that could be used for `sparkVersion` parameter in databricks.Cluster and other resources.
35
+ * * databricks.UserInstanceProfile to attach databricks.InstanceProfile (AWS) to databricks_user.
36
+ * * databricks.WorkspaceConf to manage workspace configuration for expert usage.
37
+ *
38
+ * ## Import
39
+ *
40
+ * The resource cluster policy can be imported using the policy idbash
41
+ *
42
+ * ```sh
43
+ * $ pulumi import databricks:index/clusterPolicy:ClusterPolicy this <cluster-policy-id>
44
+ * ```
45
+ */
46
+ export declare class ClusterPolicy extends pulumi.CustomResource {
47
+ /**
48
+ * Get an existing ClusterPolicy resource's state with the given name, ID, and optional extra
49
+ * properties used to qualify the lookup.
50
+ *
51
+ * @param name The _unique_ name of the resulting resource.
52
+ * @param id The _unique_ provider ID of the resource to lookup.
53
+ * @param state Any extra arguments used during the lookup.
54
+ * @param opts Optional settings to control the behavior of the CustomResource.
55
+ */
56
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ClusterPolicyState, opts?: pulumi.CustomResourceOptions): ClusterPolicy;
57
+ /**
58
+ * Returns true if the given object is an instance of ClusterPolicy. This is designed to work even
59
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
60
+ */
61
+ static isInstance(obj: any): obj is ClusterPolicy;
62
+ /**
63
+ * Policy definition JSON document expressed in [Databricks Policy Definition Language](https://docs.databricks.com/administration-guide/clusters/policies.html#cluster-policy-definition).
64
+ */
65
+ readonly definition: pulumi.Output<string | undefined>;
66
+ /**
67
+ * Cluster policy name. This must be unique. Length must be between 1 and 100 characters.
68
+ */
69
+ readonly name: pulumi.Output<string>;
70
+ /**
71
+ * Canonical unique identifier for the cluster policy.
72
+ */
73
+ readonly policyId: pulumi.Output<string>;
74
+ /**
75
+ * Create a ClusterPolicy resource with the given unique name, arguments, and options.
76
+ *
77
+ * @param name The _unique_ name of the resource.
78
+ * @param args The arguments to use to populate this resource's properties.
79
+ * @param opts A bag of options that control this resource's behavior.
80
+ */
81
+ constructor(name: string, args?: ClusterPolicyArgs, opts?: pulumi.CustomResourceOptions);
82
+ }
83
+ /**
84
+ * Input properties used for looking up and filtering ClusterPolicy resources.
85
+ */
86
+ export interface ClusterPolicyState {
87
+ /**
88
+ * Policy definition JSON document expressed in [Databricks Policy Definition Language](https://docs.databricks.com/administration-guide/clusters/policies.html#cluster-policy-definition).
89
+ */
90
+ definition?: pulumi.Input<string>;
91
+ /**
92
+ * Cluster policy name. This must be unique. Length must be between 1 and 100 characters.
93
+ */
94
+ name?: pulumi.Input<string>;
95
+ /**
96
+ * Canonical unique identifier for the cluster policy.
97
+ */
98
+ policyId?: pulumi.Input<string>;
99
+ }
100
+ /**
101
+ * The set of arguments for constructing a ClusterPolicy resource.
102
+ */
103
+ export interface ClusterPolicyArgs {
104
+ /**
105
+ * Policy definition JSON document expressed in [Databricks Policy Definition Language](https://docs.databricks.com/administration-guide/clusters/policies.html#cluster-policy-definition).
106
+ */
107
+ definition?: pulumi.Input<string>;
108
+ /**
109
+ * Cluster policy name. This must be unique. Length must be between 1 and 100 characters.
110
+ */
111
+ name?: pulumi.Input<string>;
112
+ }
@@ -0,0 +1,97 @@
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.ClusterPolicy = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * This resource creates a cluster policy, which limits the ability to create clusters based on a set of rules. The policy rules limit the attributes or attribute values available for cluster creation. cluster policies have ACLs that limit their use to specific users and groups. Only admin users can create, edit, and delete policies. Admin users also have access to all policies.
10
+ *
11
+ * Cluster policies let you:
12
+ *
13
+ * * Limit users to create clusters with prescribed settings.
14
+ * * Simplify the user interface and enable more users to create their own clusters (by fixing and hiding some values).
15
+ * * Control cost by limiting per cluster maximum cost (by setting limits on attributes whose values contribute to hourly price).
16
+ *
17
+ * Cluster policy permissions limit which policies a user can select in the Policy drop-down when the user creates a cluster:
18
+ *
19
+ * * If no policies have been created in the workspace, the Policy drop-down does not display.
20
+ * * A user who has cluster create permission can select the `Free form` policy and create fully-configurable clusters.
21
+ * * A user who has both cluster create permission and access to cluster policies can select the Free form policy and policies they have access to.
22
+ * * A user that has access to only cluster policies, can select the policies they have access to.
23
+ *
24
+ * ## Related Resources
25
+ *
26
+ * The following resources are often used in the same context:
27
+ *
28
+ * * Dynamic Passthrough Clusters for a Group guide
29
+ * * End to end workspace management guide
30
+ * * databricks.getClusters data to retrieve a list of databricks.Cluster ids.
31
+ * * databricks.Cluster to create [Databricks Clusters](https://docs.databricks.com/clusters/index.html).
32
+ * * databricks.getCurrentUser data to retrieve information about databricks.User or databricks_service_principal, that is calling Databricks REST API.
33
+ * * databricks.GlobalInitScript to manage [global init scripts](https://docs.databricks.com/clusters/init-scripts.html#global-init-scripts), which are run on all databricks.Cluster and databricks_job.
34
+ * * databricks.InstancePool to manage [instance pools](https://docs.databricks.com/clusters/instance-pools/index.html) to reduce cluster start and auto-scaling times by maintaining a set of idle, ready-to-use instances.
35
+ * * databricks.InstanceProfile to manage AWS EC2 instance profiles that users can launch databricks.Cluster and access data, like databricks_mount.
36
+ * * databricks.IpAccessList to allow access from [predefined IP ranges](https://docs.databricks.com/security/network/ip-access-list.html).
37
+ * * databricks.Library to install a [library](https://docs.databricks.com/libraries/index.html) on databricks_cluster.
38
+ * * databricks.getNodeType data to get the smallest node type for databricks.Cluster that fits search criteria, like amount of RAM or number of cores.
39
+ * * databricks.Permissions to manage [access control](https://docs.databricks.com/security/access-control/index.html) in Databricks workspace.
40
+ * * databricks.getSparkVersion data to get [Databricks Runtime (DBR)](https://docs.databricks.com/runtime/dbr.html) version that could be used for `sparkVersion` parameter in databricks.Cluster and other resources.
41
+ * * databricks.UserInstanceProfile to attach databricks.InstanceProfile (AWS) to databricks_user.
42
+ * * databricks.WorkspaceConf to manage workspace configuration for expert usage.
43
+ *
44
+ * ## Import
45
+ *
46
+ * The resource cluster policy can be imported using the policy idbash
47
+ *
48
+ * ```sh
49
+ * $ pulumi import databricks:index/clusterPolicy:ClusterPolicy this <cluster-policy-id>
50
+ * ```
51
+ */
52
+ class ClusterPolicy extends pulumi.CustomResource {
53
+ constructor(name, argsOrState, opts) {
54
+ let resourceInputs = {};
55
+ opts = opts || {};
56
+ if (opts.id) {
57
+ const state = argsOrState;
58
+ resourceInputs["definition"] = state ? state.definition : undefined;
59
+ resourceInputs["name"] = state ? state.name : undefined;
60
+ resourceInputs["policyId"] = state ? state.policyId : undefined;
61
+ }
62
+ else {
63
+ const args = argsOrState;
64
+ resourceInputs["definition"] = args ? args.definition : undefined;
65
+ resourceInputs["name"] = args ? args.name : undefined;
66
+ resourceInputs["policyId"] = undefined /*out*/;
67
+ }
68
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
69
+ super(ClusterPolicy.__pulumiType, name, resourceInputs, opts);
70
+ }
71
+ /**
72
+ * Get an existing ClusterPolicy resource's state with the given name, ID, and optional extra
73
+ * properties used to qualify the lookup.
74
+ *
75
+ * @param name The _unique_ name of the resulting resource.
76
+ * @param id The _unique_ provider ID of the resource to lookup.
77
+ * @param state Any extra arguments used during the lookup.
78
+ * @param opts Optional settings to control the behavior of the CustomResource.
79
+ */
80
+ static get(name, id, state, opts) {
81
+ return new ClusterPolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
82
+ }
83
+ /**
84
+ * Returns true if the given object is an instance of ClusterPolicy. This is designed to work even
85
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
86
+ */
87
+ static isInstance(obj) {
88
+ if (obj === undefined || obj === null) {
89
+ return false;
90
+ }
91
+ return obj['__pulumiType'] === ClusterPolicy.__pulumiType;
92
+ }
93
+ }
94
+ exports.ClusterPolicy = ClusterPolicy;
95
+ /** @internal */
96
+ ClusterPolicy.__pulumiType = 'databricks:index/clusterPolicy:ClusterPolicy';
97
+ //# sourceMappingURL=clusterPolicy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clusterPolicy.js","sourceRoot":"","sources":["../clusterPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IAiDpD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC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not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ // Export members:
20
+ __exportStar(require("./vars"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
@@ -0,0 +1,20 @@
1
+ export declare const accountId: string | undefined;
2
+ export declare const authType: string | undefined;
3
+ export declare const azureClientId: string | undefined;
4
+ export declare const azureClientSecret: string | undefined;
5
+ export declare const azureEnvironment: string | undefined;
6
+ export declare const azureTenantId: string | undefined;
7
+ export declare const azureUseMsi: boolean | undefined;
8
+ export declare const azureWorkspaceResourceId: string | undefined;
9
+ export declare const configFile: string | undefined;
10
+ export declare const debugHeaders: boolean | undefined;
11
+ export declare const debugTruncateBytes: number | undefined;
12
+ export declare const googleServiceAccount: string | undefined;
13
+ export declare const host: string | undefined;
14
+ export declare const httpTimeoutSeconds: number | undefined;
15
+ export declare const password: string | undefined;
16
+ export declare const profile: string | undefined;
17
+ export declare const rateLimit: number | undefined;
18
+ export declare const skipVerify: boolean | undefined;
19
+ export declare const token: string | undefined;
20
+ export declare const username: string | undefined;
package/config/vars.js ADDED
@@ -0,0 +1,127 @@
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
+ const pulumi = require("@pulumi/pulumi");
6
+ const __config = new pulumi.Config("databricks");
7
+ Object.defineProperty(exports, "accountId", {
8
+ get() {
9
+ return __config.get("accountId");
10
+ },
11
+ enumerable: true,
12
+ });
13
+ Object.defineProperty(exports, "authType", {
14
+ get() {
15
+ return __config.get("authType");
16
+ },
17
+ enumerable: true,
18
+ });
19
+ Object.defineProperty(exports, "azureClientId", {
20
+ get() {
21
+ return __config.get("azureClientId");
22
+ },
23
+ enumerable: true,
24
+ });
25
+ Object.defineProperty(exports, "azureClientSecret", {
26
+ get() {
27
+ return __config.get("azureClientSecret");
28
+ },
29
+ enumerable: true,
30
+ });
31
+ Object.defineProperty(exports, "azureEnvironment", {
32
+ get() {
33
+ return __config.get("azureEnvironment");
34
+ },
35
+ enumerable: true,
36
+ });
37
+ Object.defineProperty(exports, "azureTenantId", {
38
+ get() {
39
+ return __config.get("azureTenantId");
40
+ },
41
+ enumerable: true,
42
+ });
43
+ Object.defineProperty(exports, "azureUseMsi", {
44
+ get() {
45
+ return __config.getObject("azureUseMsi");
46
+ },
47
+ enumerable: true,
48
+ });
49
+ Object.defineProperty(exports, "azureWorkspaceResourceId", {
50
+ get() {
51
+ return __config.get("azureWorkspaceResourceId");
52
+ },
53
+ enumerable: true,
54
+ });
55
+ Object.defineProperty(exports, "configFile", {
56
+ get() {
57
+ return __config.get("configFile");
58
+ },
59
+ enumerable: true,
60
+ });
61
+ Object.defineProperty(exports, "debugHeaders", {
62
+ get() {
63
+ return __config.getObject("debugHeaders");
64
+ },
65
+ enumerable: true,
66
+ });
67
+ Object.defineProperty(exports, "debugTruncateBytes", {
68
+ get() {
69
+ return __config.getObject("debugTruncateBytes");
70
+ },
71
+ enumerable: true,
72
+ });
73
+ Object.defineProperty(exports, "googleServiceAccount", {
74
+ get() {
75
+ return __config.get("googleServiceAccount");
76
+ },
77
+ enumerable: true,
78
+ });
79
+ Object.defineProperty(exports, "host", {
80
+ get() {
81
+ return __config.get("host");
82
+ },
83
+ enumerable: true,
84
+ });
85
+ Object.defineProperty(exports, "httpTimeoutSeconds", {
86
+ get() {
87
+ return __config.getObject("httpTimeoutSeconds");
88
+ },
89
+ enumerable: true,
90
+ });
91
+ Object.defineProperty(exports, "password", {
92
+ get() {
93
+ return __config.get("password");
94
+ },
95
+ enumerable: true,
96
+ });
97
+ Object.defineProperty(exports, "profile", {
98
+ get() {
99
+ return __config.get("profile");
100
+ },
101
+ enumerable: true,
102
+ });
103
+ Object.defineProperty(exports, "rateLimit", {
104
+ get() {
105
+ return __config.getObject("rateLimit");
106
+ },
107
+ enumerable: true,
108
+ });
109
+ Object.defineProperty(exports, "skipVerify", {
110
+ get() {
111
+ return __config.getObject("skipVerify");
112
+ },
113
+ enumerable: true,
114
+ });
115
+ Object.defineProperty(exports, "token", {
116
+ get() {
117
+ return __config.get("token");
118
+ },
119
+ enumerable: true,
120
+ });
121
+ Object.defineProperty(exports, "username", {
122
+ get() {
123
+ return __config.get("username");
124
+ },
125
+ enumerable: true,
126
+ });
127
+ //# sourceMappingURL=vars.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAGjD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IACxC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACrC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,c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cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IACxC,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAS,WAAW,CAAC,CAAC;IACnD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE;IACzC,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAU,YAAY,CAAC,CAAC;IACrD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE;IACpC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
package/dbfsFile.d.ts ADDED
@@ -0,0 +1,91 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## Import
4
+ *
5
+ * The resource dbfs file can be imported using the path of the file bash
6
+ *
7
+ * ```sh
8
+ * $ pulumi import databricks:index/dbfsFile:DbfsFile this <path>
9
+ * ```
10
+ */
11
+ export declare class DbfsFile extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing DbfsFile 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: string, id: pulumi.Input<pulumi.ID>, state?: DbfsFileState, opts?: pulumi.CustomResourceOptions): DbfsFile;
22
+ /**
23
+ * Returns true if the given object is an instance of DbfsFile. This is designed to work even
24
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
25
+ */
26
+ static isInstance(obj: any): obj is DbfsFile;
27
+ readonly contentBase64: pulumi.Output<string | undefined>;
28
+ /**
29
+ * Path, but with `dbfs:` prefix
30
+ */
31
+ readonly dbfsPath: pulumi.Output<string>;
32
+ /**
33
+ * The file size of the file that is being tracked by this resource in bytes.
34
+ */
35
+ readonly fileSize: pulumi.Output<number>;
36
+ readonly md5: pulumi.Output<string | undefined>;
37
+ /**
38
+ * The path of the file in which you wish to save.
39
+ */
40
+ readonly path: pulumi.Output<string>;
41
+ /**
42
+ * The full absolute path to the file. Conflicts with `contentBase64`.
43
+ */
44
+ readonly source: pulumi.Output<string | undefined>;
45
+ /**
46
+ * Create a DbfsFile resource with the given unique name, arguments, and options.
47
+ *
48
+ * @param name The _unique_ name of the resource.
49
+ * @param args The arguments to use to populate this resource's properties.
50
+ * @param opts A bag of options that control this resource's behavior.
51
+ */
52
+ constructor(name: string, args: DbfsFileArgs, opts?: pulumi.CustomResourceOptions);
53
+ }
54
+ /**
55
+ * Input properties used for looking up and filtering DbfsFile resources.
56
+ */
57
+ export interface DbfsFileState {
58
+ contentBase64?: pulumi.Input<string>;
59
+ /**
60
+ * Path, but with `dbfs:` prefix
61
+ */
62
+ dbfsPath?: pulumi.Input<string>;
63
+ /**
64
+ * The file size of the file that is being tracked by this resource in bytes.
65
+ */
66
+ fileSize?: pulumi.Input<number>;
67
+ md5?: pulumi.Input<string>;
68
+ /**
69
+ * The path of the file in which you wish to save.
70
+ */
71
+ path?: pulumi.Input<string>;
72
+ /**
73
+ * The full absolute path to the file. Conflicts with `contentBase64`.
74
+ */
75
+ source?: pulumi.Input<string>;
76
+ }
77
+ /**
78
+ * The set of arguments for constructing a DbfsFile resource.
79
+ */
80
+ export interface DbfsFileArgs {
81
+ contentBase64?: pulumi.Input<string>;
82
+ md5?: pulumi.Input<string>;
83
+ /**
84
+ * The path of the file in which you wish to save.
85
+ */
86
+ path: pulumi.Input<string>;
87
+ /**
88
+ * The full absolute path to the file. Conflicts with `contentBase64`.
89
+ */
90
+ source?: pulumi.Input<string>;
91
+ }
package/dbfsFile.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.DbfsFile = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## Import
10
+ *
11
+ * The resource dbfs file can be imported using the path of the file bash
12
+ *
13
+ * ```sh
14
+ * $ pulumi import databricks:index/dbfsFile:DbfsFile this <path>
15
+ * ```
16
+ */
17
+ class DbfsFile extends pulumi.CustomResource {
18
+ constructor(name, argsOrState, opts) {
19
+ let resourceInputs = {};
20
+ opts = opts || {};
21
+ if (opts.id) {
22
+ const state = argsOrState;
23
+ resourceInputs["contentBase64"] = state ? state.contentBase64 : undefined;
24
+ resourceInputs["dbfsPath"] = state ? state.dbfsPath : undefined;
25
+ resourceInputs["fileSize"] = state ? state.fileSize : undefined;
26
+ resourceInputs["md5"] = state ? state.md5 : undefined;
27
+ resourceInputs["path"] = state ? state.path : undefined;
28
+ resourceInputs["source"] = state ? state.source : undefined;
29
+ }
30
+ else {
31
+ const args = argsOrState;
32
+ if ((!args || args.path === undefined) && !opts.urn) {
33
+ throw new Error("Missing required property 'path'");
34
+ }
35
+ resourceInputs["contentBase64"] = args ? args.contentBase64 : undefined;
36
+ resourceInputs["md5"] = args ? args.md5 : undefined;
37
+ resourceInputs["path"] = args ? args.path : undefined;
38
+ resourceInputs["source"] = args ? args.source : undefined;
39
+ resourceInputs["dbfsPath"] = undefined /*out*/;
40
+ resourceInputs["fileSize"] = undefined /*out*/;
41
+ }
42
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
43
+ super(DbfsFile.__pulumiType, name, resourceInputs, opts);
44
+ }
45
+ /**
46
+ * Get an existing DbfsFile resource's state with the given name, ID, and optional extra
47
+ * properties used to qualify the lookup.
48
+ *
49
+ * @param name The _unique_ name of the resulting resource.
50
+ * @param id The _unique_ provider ID of the resource to lookup.
51
+ * @param state Any extra arguments used during the lookup.
52
+ * @param opts Optional settings to control the behavior of the CustomResource.
53
+ */
54
+ static get(name, id, state, opts) {
55
+ return new DbfsFile(name, state, Object.assign(Object.assign({}, opts), { id: id }));
56
+ }
57
+ /**
58
+ * Returns true if the given object is an instance of DbfsFile. This is designed to work even
59
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
60
+ */
61
+ static isInstance(obj) {
62
+ if (obj === undefined || obj === null) {
63
+ return false;
64
+ }
65
+ return obj['__pulumiType'] === DbfsFile.__pulumiType;
66
+ }
67
+ }
68
+ exports.DbfsFile = DbfsFile;
69
+ /** @internal */
70
+ DbfsFile.__pulumiType = 'databricks:index/dbfsFile:DbfsFile';
71
+ //# sourceMappingURL=dbfsFile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dbfsFile.js","sourceRoot":"","sources":["../dbfsFile.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAuD/C,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACv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,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IA/ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AA1BL,4BAiFC;AAnEG,gBAAgB;AACO,qBAAY,GAAG,oCAAoC,CAAC"}
package/directory.d.ts ADDED
@@ -0,0 +1,72 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## Import
4
+ *
5
+ * The resource directory can be imported using directory path bash
6
+ *
7
+ * ```sh
8
+ * $ pulumi import databricks:index/directory:Directory this /path/to/directory
9
+ * ```
10
+ */
11
+ export declare class Directory extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing Directory 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: string, id: pulumi.Input<pulumi.ID>, state?: DirectoryState, opts?: pulumi.CustomResourceOptions): Directory;
22
+ /**
23
+ * Returns true if the given object is an instance of Directory. This is designed to work even
24
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
25
+ */
26
+ static isInstance(obj: any): obj is Directory;
27
+ readonly deleteRecursive: pulumi.Output<boolean | undefined>;
28
+ /**
29
+ * Unique identifier for a DIRECTORY
30
+ */
31
+ readonly objectId: pulumi.Output<number>;
32
+ /**
33
+ * The absolute path of the directory, beginning with "/", e.g. "/Demo".
34
+ */
35
+ readonly path: pulumi.Output<string>;
36
+ /**
37
+ * Create a Directory resource with the given unique name, arguments, and options.
38
+ *
39
+ * @param name The _unique_ name of the resource.
40
+ * @param args The arguments to use to populate this resource's properties.
41
+ * @param opts A bag of options that control this resource's behavior.
42
+ */
43
+ constructor(name: string, args: DirectoryArgs, opts?: pulumi.CustomResourceOptions);
44
+ }
45
+ /**
46
+ * Input properties used for looking up and filtering Directory resources.
47
+ */
48
+ export interface DirectoryState {
49
+ deleteRecursive?: pulumi.Input<boolean>;
50
+ /**
51
+ * Unique identifier for a DIRECTORY
52
+ */
53
+ objectId?: pulumi.Input<number>;
54
+ /**
55
+ * The absolute path of the directory, beginning with "/", e.g. "/Demo".
56
+ */
57
+ path?: pulumi.Input<string>;
58
+ }
59
+ /**
60
+ * The set of arguments for constructing a Directory resource.
61
+ */
62
+ export interface DirectoryArgs {
63
+ deleteRecursive?: pulumi.Input<boolean>;
64
+ /**
65
+ * Unique identifier for a DIRECTORY
66
+ */
67
+ objectId?: pulumi.Input<number>;
68
+ /**
69
+ * The absolute path of the directory, beginning with "/", e.g. "/Demo".
70
+ */
71
+ path: pulumi.Input<string>;
72
+ }