@pulumi/databricks 1.90.0-alpha.1773380929 → 1.90.0-alpha.1773893348

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 (48) hide show
  1. package/dataClassificationCatalogConfig.d.ts +1 -1
  2. package/dataClassificationCatalogConfig.js +1 -1
  3. package/environmentsDefaultWorkspaceBaseEnvironment.d.ts +142 -0
  4. package/environmentsDefaultWorkspaceBaseEnvironment.js +107 -0
  5. package/environmentsDefaultWorkspaceBaseEnvironment.js.map +1 -0
  6. package/environmentsWorkspaceBaseEnvironment.d.ts +212 -0
  7. package/environmentsWorkspaceBaseEnvironment.js +118 -0
  8. package/environmentsWorkspaceBaseEnvironment.js.map +1 -0
  9. package/featureEngineeringFeature.d.ts +26 -2
  10. package/featureEngineeringFeature.js +4 -3
  11. package/featureEngineeringFeature.js.map +1 -1
  12. package/getDataClassificationCatalogConfig.d.ts +2 -2
  13. package/getDataClassificationCatalogConfig.js +2 -2
  14. package/getEnvironmentsDefaultWorkspaceBaseEnvironment.d.ts +68 -0
  15. package/getEnvironmentsDefaultWorkspaceBaseEnvironment.js +34 -0
  16. package/getEnvironmentsDefaultWorkspaceBaseEnvironment.js.map +1 -0
  17. package/getEnvironmentsWorkspaceBaseEnvironment.d.ts +99 -0
  18. package/getEnvironmentsWorkspaceBaseEnvironment.js +34 -0
  19. package/getEnvironmentsWorkspaceBaseEnvironment.js.map +1 -0
  20. package/getEnvironmentsWorkspaceBaseEnvironments.d.ts +57 -0
  21. package/getEnvironmentsWorkspaceBaseEnvironments.js +38 -0
  22. package/getEnvironmentsWorkspaceBaseEnvironments.js.map +1 -0
  23. package/getFeatureEngineeringFeature.d.ts +11 -3
  24. package/getFeatureEngineeringFeature.js.map +1 -1
  25. package/getPostgresRole.d.ts +75 -0
  26. package/getPostgresRole.js +30 -0
  27. package/getPostgresRole.js.map +1 -0
  28. package/getPostgresRoles.d.ts +64 -0
  29. package/getPostgresRoles.js +32 -0
  30. package/getPostgresRoles.js.map +1 -0
  31. package/getWarehousesDefaultWarehouseOverride.d.ts +26 -0
  32. package/getWarehousesDefaultWarehouseOverride.js +26 -0
  33. package/getWarehousesDefaultWarehouseOverride.js.map +1 -1
  34. package/getWarehousesDefaultWarehouseOverrides.d.ts +20 -0
  35. package/getWarehousesDefaultWarehouseOverrides.js +20 -0
  36. package/getWarehousesDefaultWarehouseOverrides.js.map +1 -1
  37. package/index.d.ts +24 -0
  38. package/index.js +39 -9
  39. package/index.js.map +1 -1
  40. package/mwsWorkspaces.d.ts +3 -3
  41. package/package.json +2 -2
  42. package/postgresRole.d.ts +147 -0
  43. package/postgresRole.js +69 -0
  44. package/postgresRole.js.map +1 -0
  45. package/types/input.d.ts +267 -14
  46. package/types/output.d.ts +998 -111
  47. package/warehousesDefaultWarehouseOverride.d.ts +2 -2
  48. package/warehousesDefaultWarehouseOverride.js +2 -2
@@ -2,7 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
4
  /**
5
- * [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
5
+ * [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
6
6
  *
7
7
  * This resource allows you to manage the Data Classification configuration for Unity Catalog catalogs.
8
8
  *
@@ -6,7 +6,7 @@ exports.DataClassificationCatalogConfig = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
9
+ * [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
10
10
  *
11
11
  * This resource allows you to manage the Data Classification configuration for Unity Catalog catalogs.
12
12
  *
@@ -0,0 +1,142 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
6
+ *
7
+ * The Default Workspace Base Environment is a singleton resource that configures which workspace base environments are applied by default to new notebooks in the workspace. Defaults can be set separately for CPU and GPU compute.
8
+ *
9
+ * Without a default configured, new notebooks do not use a workspace base environment by default.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ### Set Default for CPU Compute
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as databricks from "@pulumi/databricks";
18
+ *
19
+ * const cpuEnv = new databricks.index.WorkspaceBaseEnvironment("cpu_env", {
20
+ * displayName: "my-cpu-environment",
21
+ * filepath: "/Volumes/catalog/schema/volume/cpu-environment.yaml",
22
+ * });
23
+ * const _this = new databricks.index.DefaultWorkspaceBaseEnvironment("this", {cpuWorkspaceBaseEnvironment: cpuEnv.name});
24
+ * ```
25
+ *
26
+ * ### Set Defaults for Both CPU and GPU Compute
27
+ *
28
+ * ```typescript
29
+ * import * as pulumi from "@pulumi/pulumi";
30
+ * import * as databricks from "@pulumi/databricks";
31
+ *
32
+ * const cpuEnv = new databricks.index.WorkspaceBaseEnvironment("cpu_env", {
33
+ * displayName: "my-cpu-environment",
34
+ * filepath: "/Volumes/catalog/schema/volume/cpu-environment.yaml",
35
+ * });
36
+ * const gpuEnv = new databricks.index.WorkspaceBaseEnvironment("gpu_env", {
37
+ * displayName: "my-gpu-environment",
38
+ * filepath: "/Volumes/catalog/schema/volume/gpu-environment.yaml",
39
+ * baseEnvironmentType: "GPU_LARGE",
40
+ * });
41
+ * const _this = new databricks.index.DefaultWorkspaceBaseEnvironment("this", {
42
+ * cpuWorkspaceBaseEnvironment: cpuEnv.name,
43
+ * gpuWorkspaceBaseEnvironment: gpuEnv.name,
44
+ * });
45
+ * ```
46
+ *
47
+ * ### Unset Both Defaults
48
+ *
49
+ * ```typescript
50
+ * import * as pulumi from "@pulumi/pulumi";
51
+ * import * as databricks from "@pulumi/databricks";
52
+ *
53
+ * const _this = new databricks.index.DefaultWorkspaceBaseEnvironment("this", {});
54
+ * ```
55
+ */
56
+ export declare class EnvironmentsDefaultWorkspaceBaseEnvironment extends pulumi.CustomResource {
57
+ /**
58
+ * Get an existing EnvironmentsDefaultWorkspaceBaseEnvironment resource's state with the given name, ID, and optional extra
59
+ * properties used to qualify the lookup.
60
+ *
61
+ * @param name The _unique_ name of the resulting resource.
62
+ * @param id The _unique_ provider ID of the resource to lookup.
63
+ * @param state Any extra arguments used during the lookup.
64
+ * @param opts Optional settings to control the behavior of the CustomResource.
65
+ */
66
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EnvironmentsDefaultWorkspaceBaseEnvironmentState, opts?: pulumi.CustomResourceOptions): EnvironmentsDefaultWorkspaceBaseEnvironment;
67
+ /**
68
+ * Returns true if the given object is an instance of EnvironmentsDefaultWorkspaceBaseEnvironment. This is designed to work even
69
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
70
+ */
71
+ static isInstance(obj: any): obj is EnvironmentsDefaultWorkspaceBaseEnvironment;
72
+ /**
73
+ * The default workspace base environment for CPU compute.
74
+ * Format: workspace-base-environments/{workspace_base_environment}
75
+ */
76
+ readonly cpuWorkspaceBaseEnvironment: pulumi.Output<string | undefined>;
77
+ /**
78
+ * The default workspace base environment for GPU compute.
79
+ * Format: workspace-base-environments/{workspace_base_environment}
80
+ */
81
+ readonly gpuWorkspaceBaseEnvironment: pulumi.Output<string | undefined>;
82
+ /**
83
+ * (string) - The resource name of this singleton resource.
84
+ * Format: default-workspace-base-environment
85
+ */
86
+ readonly name: pulumi.Output<string>;
87
+ /**
88
+ * Configure the provider for management through account provider.
89
+ */
90
+ readonly providerConfig: pulumi.Output<outputs.EnvironmentsDefaultWorkspaceBaseEnvironmentProviderConfig | undefined>;
91
+ /**
92
+ * Create a EnvironmentsDefaultWorkspaceBaseEnvironment resource with the given unique name, arguments, and options.
93
+ *
94
+ * @param name The _unique_ name of the resource.
95
+ * @param args The arguments to use to populate this resource's properties.
96
+ * @param opts A bag of options that control this resource's behavior.
97
+ */
98
+ constructor(name: string, args?: EnvironmentsDefaultWorkspaceBaseEnvironmentArgs, opts?: pulumi.CustomResourceOptions);
99
+ }
100
+ /**
101
+ * Input properties used for looking up and filtering EnvironmentsDefaultWorkspaceBaseEnvironment resources.
102
+ */
103
+ export interface EnvironmentsDefaultWorkspaceBaseEnvironmentState {
104
+ /**
105
+ * The default workspace base environment for CPU compute.
106
+ * Format: workspace-base-environments/{workspace_base_environment}
107
+ */
108
+ cpuWorkspaceBaseEnvironment?: pulumi.Input<string>;
109
+ /**
110
+ * The default workspace base environment for GPU compute.
111
+ * Format: workspace-base-environments/{workspace_base_environment}
112
+ */
113
+ gpuWorkspaceBaseEnvironment?: pulumi.Input<string>;
114
+ /**
115
+ * (string) - The resource name of this singleton resource.
116
+ * Format: default-workspace-base-environment
117
+ */
118
+ name?: pulumi.Input<string>;
119
+ /**
120
+ * Configure the provider for management through account provider.
121
+ */
122
+ providerConfig?: pulumi.Input<inputs.EnvironmentsDefaultWorkspaceBaseEnvironmentProviderConfig>;
123
+ }
124
+ /**
125
+ * The set of arguments for constructing a EnvironmentsDefaultWorkspaceBaseEnvironment resource.
126
+ */
127
+ export interface EnvironmentsDefaultWorkspaceBaseEnvironmentArgs {
128
+ /**
129
+ * The default workspace base environment for CPU compute.
130
+ * Format: workspace-base-environments/{workspace_base_environment}
131
+ */
132
+ cpuWorkspaceBaseEnvironment?: pulumi.Input<string>;
133
+ /**
134
+ * The default workspace base environment for GPU compute.
135
+ * Format: workspace-base-environments/{workspace_base_environment}
136
+ */
137
+ gpuWorkspaceBaseEnvironment?: pulumi.Input<string>;
138
+ /**
139
+ * Configure the provider for management through account provider.
140
+ */
141
+ providerConfig?: pulumi.Input<inputs.EnvironmentsDefaultWorkspaceBaseEnvironmentProviderConfig>;
142
+ }
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
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.EnvironmentsDefaultWorkspaceBaseEnvironment = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
10
+ *
11
+ * The Default Workspace Base Environment is a singleton resource that configures which workspace base environments are applied by default to new notebooks in the workspace. Defaults can be set separately for CPU and GPU compute.
12
+ *
13
+ * Without a default configured, new notebooks do not use a workspace base environment by default.
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * ### Set Default for CPU Compute
18
+ *
19
+ * ```typescript
20
+ * import * as pulumi from "@pulumi/pulumi";
21
+ * import * as databricks from "@pulumi/databricks";
22
+ *
23
+ * const cpuEnv = new databricks.index.WorkspaceBaseEnvironment("cpu_env", {
24
+ * displayName: "my-cpu-environment",
25
+ * filepath: "/Volumes/catalog/schema/volume/cpu-environment.yaml",
26
+ * });
27
+ * const _this = new databricks.index.DefaultWorkspaceBaseEnvironment("this", {cpuWorkspaceBaseEnvironment: cpuEnv.name});
28
+ * ```
29
+ *
30
+ * ### Set Defaults for Both CPU and GPU Compute
31
+ *
32
+ * ```typescript
33
+ * import * as pulumi from "@pulumi/pulumi";
34
+ * import * as databricks from "@pulumi/databricks";
35
+ *
36
+ * const cpuEnv = new databricks.index.WorkspaceBaseEnvironment("cpu_env", {
37
+ * displayName: "my-cpu-environment",
38
+ * filepath: "/Volumes/catalog/schema/volume/cpu-environment.yaml",
39
+ * });
40
+ * const gpuEnv = new databricks.index.WorkspaceBaseEnvironment("gpu_env", {
41
+ * displayName: "my-gpu-environment",
42
+ * filepath: "/Volumes/catalog/schema/volume/gpu-environment.yaml",
43
+ * baseEnvironmentType: "GPU_LARGE",
44
+ * });
45
+ * const _this = new databricks.index.DefaultWorkspaceBaseEnvironment("this", {
46
+ * cpuWorkspaceBaseEnvironment: cpuEnv.name,
47
+ * gpuWorkspaceBaseEnvironment: gpuEnv.name,
48
+ * });
49
+ * ```
50
+ *
51
+ * ### Unset Both Defaults
52
+ *
53
+ * ```typescript
54
+ * import * as pulumi from "@pulumi/pulumi";
55
+ * import * as databricks from "@pulumi/databricks";
56
+ *
57
+ * const _this = new databricks.index.DefaultWorkspaceBaseEnvironment("this", {});
58
+ * ```
59
+ */
60
+ class EnvironmentsDefaultWorkspaceBaseEnvironment extends pulumi.CustomResource {
61
+ /**
62
+ * Get an existing EnvironmentsDefaultWorkspaceBaseEnvironment resource's state with the given name, ID, and optional extra
63
+ * properties used to qualify the lookup.
64
+ *
65
+ * @param name The _unique_ name of the resulting resource.
66
+ * @param id The _unique_ provider ID of the resource to lookup.
67
+ * @param state Any extra arguments used during the lookup.
68
+ * @param opts Optional settings to control the behavior of the CustomResource.
69
+ */
70
+ static get(name, id, state, opts) {
71
+ return new EnvironmentsDefaultWorkspaceBaseEnvironment(name, state, { ...opts, id: id });
72
+ }
73
+ /**
74
+ * Returns true if the given object is an instance of EnvironmentsDefaultWorkspaceBaseEnvironment. This is designed to work even
75
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
76
+ */
77
+ static isInstance(obj) {
78
+ if (obj === undefined || obj === null) {
79
+ return false;
80
+ }
81
+ return obj['__pulumiType'] === EnvironmentsDefaultWorkspaceBaseEnvironment.__pulumiType;
82
+ }
83
+ constructor(name, argsOrState, opts) {
84
+ let resourceInputs = {};
85
+ opts = opts || {};
86
+ if (opts.id) {
87
+ const state = argsOrState;
88
+ resourceInputs["cpuWorkspaceBaseEnvironment"] = state?.cpuWorkspaceBaseEnvironment;
89
+ resourceInputs["gpuWorkspaceBaseEnvironment"] = state?.gpuWorkspaceBaseEnvironment;
90
+ resourceInputs["name"] = state?.name;
91
+ resourceInputs["providerConfig"] = state?.providerConfig;
92
+ }
93
+ else {
94
+ const args = argsOrState;
95
+ resourceInputs["cpuWorkspaceBaseEnvironment"] = args?.cpuWorkspaceBaseEnvironment;
96
+ resourceInputs["gpuWorkspaceBaseEnvironment"] = args?.gpuWorkspaceBaseEnvironment;
97
+ resourceInputs["providerConfig"] = args?.providerConfig;
98
+ resourceInputs["name"] = undefined /*out*/;
99
+ }
100
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
101
+ super(EnvironmentsDefaultWorkspaceBaseEnvironment.__pulumiType, name, resourceInputs, opts);
102
+ }
103
+ }
104
+ exports.EnvironmentsDefaultWorkspaceBaseEnvironment = EnvironmentsDefaultWorkspaceBaseEnvironment;
105
+ /** @internal */
106
+ EnvironmentsDefaultWorkspaceBaseEnvironment.__pulumiType = 'databricks:index/environmentsDefaultWorkspaceBaseEnvironment:EnvironmentsDefaultWorkspaceBaseEnvironment';
107
+ //# sourceMappingURL=environmentsDefaultWorkspaceBaseEnvironment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environmentsDefaultWorkspaceBaseEnvironment.js","sourceRoot":"","sources":["../environmentsDefaultWorkspaceBaseEnvironment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,MAAa,2CAA4C,SAAQ,MAAM,CAAC,cAAc;IAClF;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwD,EAAE,IAAmC;QACtJ,OAAO,IAAI,2CAA2C,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClG,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ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umi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
6
+ *
7
+ * A Workspace Base Environment is a shareable specification that defines a serverless environment version and additional Python dependencies for serverless notebooks and jobs.
8
+ *
9
+ * By pre-materializing environments, Databricks reduces startup time and ensures consistent, reproducible environments across notebooks and jobs within the workspace.
10
+ *
11
+ * **Note:** Each workspace is limited to 10 workspace base environments.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ### Basic Example
16
+ *
17
+ * This example creates a Workspace Base Environment referencing an environment YAML file stored in a UC Volume.
18
+ *
19
+ * ```typescript
20
+ * import * as pulumi from "@pulumi/pulumi";
21
+ * import * as databricks from "@pulumi/databricks";
22
+ *
23
+ * const _this = new databricks.index.WorkspaceBaseEnvironment("this", {
24
+ * displayName: "my-environment",
25
+ * filepath: "/Volumes/catalog/schema/volume/environment.yaml",
26
+ * });
27
+ * ```
28
+ *
29
+ * ### Example with GPU Compute Type
30
+ *
31
+ * This example creates a GPU-specific Workspace Base Environment.
32
+ *
33
+ * ```typescript
34
+ * import * as pulumi from "@pulumi/pulumi";
35
+ * import * as databricks from "@pulumi/databricks";
36
+ *
37
+ * const gpuEnv = new databricks.index.WorkspaceBaseEnvironment("gpu_env", {
38
+ * displayName: "my-gpu-environment",
39
+ * filepath: "/Volumes/catalog/schema/volume/gpu-environment.yaml",
40
+ * baseEnvironmentType: "GPU_LARGE",
41
+ * });
42
+ * ```
43
+ */
44
+ export declare class EnvironmentsWorkspaceBaseEnvironment extends pulumi.CustomResource {
45
+ /**
46
+ * Get an existing EnvironmentsWorkspaceBaseEnvironment 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: string, id: pulumi.Input<pulumi.ID>, state?: EnvironmentsWorkspaceBaseEnvironmentState, opts?: pulumi.CustomResourceOptions): EnvironmentsWorkspaceBaseEnvironment;
55
+ /**
56
+ * Returns true if the given object is an instance of EnvironmentsWorkspaceBaseEnvironment. This is designed to work even
57
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
58
+ */
59
+ static isInstance(obj: any): obj is EnvironmentsWorkspaceBaseEnvironment;
60
+ /**
61
+ * The type of base environment (CPU or GPU). Possible values are: `CPU`, `GPU`
62
+ */
63
+ readonly baseEnvironmentType: pulumi.Output<string | undefined>;
64
+ /**
65
+ * (string) - Timestamp when the environment was created
66
+ */
67
+ readonly createTime: pulumi.Output<string>;
68
+ /**
69
+ * (string) - User ID of the creator
70
+ */
71
+ readonly creatorUserId: pulumi.Output<string>;
72
+ /**
73
+ * Human-readable display name for the workspace base environment
74
+ */
75
+ readonly displayName: pulumi.Output<string>;
76
+ readonly effectiveBaseEnvironmentType: pulumi.Output<string>;
77
+ /**
78
+ * The WSFS or UC Volumes path to the environment YAML file
79
+ */
80
+ readonly filepath: pulumi.Output<string | undefined>;
81
+ /**
82
+ * (boolean) - Whether this is the default environment for the workspace
83
+ */
84
+ readonly isDefault: pulumi.Output<boolean>;
85
+ /**
86
+ * (string) - User ID of the last user who updated the environment
87
+ */
88
+ readonly lastUpdatedUserId: pulumi.Output<string>;
89
+ /**
90
+ * (string) - Status message providing additional details about the environment status
91
+ */
92
+ readonly message: pulumi.Output<string>;
93
+ /**
94
+ * (string) - The resource name of the workspace base environment.
95
+ * Format: workspace-base-environments/{workspace-base-environment}
96
+ */
97
+ readonly name: pulumi.Output<string>;
98
+ /**
99
+ * Configure the provider for management through account provider.
100
+ */
101
+ readonly providerConfig: pulumi.Output<outputs.EnvironmentsWorkspaceBaseEnvironmentProviderConfig | undefined>;
102
+ /**
103
+ * (string) - The status of the materialized workspace base environment. Possible values are: `CREATED`, `EXPIRED`, `FAILED`, `INVALID`, `PENDING`, `REFRESHING`
104
+ */
105
+ readonly status: pulumi.Output<string>;
106
+ /**
107
+ * (string) - Timestamp when the environment was last updated
108
+ */
109
+ readonly updateTime: pulumi.Output<string>;
110
+ /**
111
+ * The ID to use for the workspace base environment, which will become the final component of
112
+ * the resource name.
113
+ * This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/
114
+ */
115
+ readonly workspaceBaseEnvironmentId: pulumi.Output<string>;
116
+ /**
117
+ * Create a EnvironmentsWorkspaceBaseEnvironment resource with the given unique name, arguments, and options.
118
+ *
119
+ * @param name The _unique_ name of the resource.
120
+ * @param args The arguments to use to populate this resource's properties.
121
+ * @param opts A bag of options that control this resource's behavior.
122
+ */
123
+ constructor(name: string, args: EnvironmentsWorkspaceBaseEnvironmentArgs, opts?: pulumi.CustomResourceOptions);
124
+ }
125
+ /**
126
+ * Input properties used for looking up and filtering EnvironmentsWorkspaceBaseEnvironment resources.
127
+ */
128
+ export interface EnvironmentsWorkspaceBaseEnvironmentState {
129
+ /**
130
+ * The type of base environment (CPU or GPU). Possible values are: `CPU`, `GPU`
131
+ */
132
+ baseEnvironmentType?: pulumi.Input<string>;
133
+ /**
134
+ * (string) - Timestamp when the environment was created
135
+ */
136
+ createTime?: pulumi.Input<string>;
137
+ /**
138
+ * (string) - User ID of the creator
139
+ */
140
+ creatorUserId?: pulumi.Input<string>;
141
+ /**
142
+ * Human-readable display name for the workspace base environment
143
+ */
144
+ displayName?: pulumi.Input<string>;
145
+ effectiveBaseEnvironmentType?: pulumi.Input<string>;
146
+ /**
147
+ * The WSFS or UC Volumes path to the environment YAML file
148
+ */
149
+ filepath?: pulumi.Input<string>;
150
+ /**
151
+ * (boolean) - Whether this is the default environment for the workspace
152
+ */
153
+ isDefault?: pulumi.Input<boolean>;
154
+ /**
155
+ * (string) - User ID of the last user who updated the environment
156
+ */
157
+ lastUpdatedUserId?: pulumi.Input<string>;
158
+ /**
159
+ * (string) - Status message providing additional details about the environment status
160
+ */
161
+ message?: pulumi.Input<string>;
162
+ /**
163
+ * (string) - The resource name of the workspace base environment.
164
+ * Format: workspace-base-environments/{workspace-base-environment}
165
+ */
166
+ name?: pulumi.Input<string>;
167
+ /**
168
+ * Configure the provider for management through account provider.
169
+ */
170
+ providerConfig?: pulumi.Input<inputs.EnvironmentsWorkspaceBaseEnvironmentProviderConfig>;
171
+ /**
172
+ * (string) - The status of the materialized workspace base environment. Possible values are: `CREATED`, `EXPIRED`, `FAILED`, `INVALID`, `PENDING`, `REFRESHING`
173
+ */
174
+ status?: pulumi.Input<string>;
175
+ /**
176
+ * (string) - Timestamp when the environment was last updated
177
+ */
178
+ updateTime?: pulumi.Input<string>;
179
+ /**
180
+ * The ID to use for the workspace base environment, which will become the final component of
181
+ * the resource name.
182
+ * This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/
183
+ */
184
+ workspaceBaseEnvironmentId?: pulumi.Input<string>;
185
+ }
186
+ /**
187
+ * The set of arguments for constructing a EnvironmentsWorkspaceBaseEnvironment resource.
188
+ */
189
+ export interface EnvironmentsWorkspaceBaseEnvironmentArgs {
190
+ /**
191
+ * The type of base environment (CPU or GPU). Possible values are: `CPU`, `GPU`
192
+ */
193
+ baseEnvironmentType?: pulumi.Input<string>;
194
+ /**
195
+ * Human-readable display name for the workspace base environment
196
+ */
197
+ displayName: pulumi.Input<string>;
198
+ /**
199
+ * The WSFS or UC Volumes path to the environment YAML file
200
+ */
201
+ filepath?: pulumi.Input<string>;
202
+ /**
203
+ * Configure the provider for management through account provider.
204
+ */
205
+ providerConfig?: pulumi.Input<inputs.EnvironmentsWorkspaceBaseEnvironmentProviderConfig>;
206
+ /**
207
+ * The ID to use for the workspace base environment, which will become the final component of
208
+ * the resource name.
209
+ * This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/
210
+ */
211
+ workspaceBaseEnvironmentId?: pulumi.Input<string>;
212
+ }
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
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.EnvironmentsWorkspaceBaseEnvironment = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
10
+ *
11
+ * A Workspace Base Environment is a shareable specification that defines a serverless environment version and additional Python dependencies for serverless notebooks and jobs.
12
+ *
13
+ * By pre-materializing environments, Databricks reduces startup time and ensures consistent, reproducible environments across notebooks and jobs within the workspace.
14
+ *
15
+ * **Note:** Each workspace is limited to 10 workspace base environments.
16
+ *
17
+ * ## Example Usage
18
+ *
19
+ * ### Basic Example
20
+ *
21
+ * This example creates a Workspace Base Environment referencing an environment YAML file stored in a UC Volume.
22
+ *
23
+ * ```typescript
24
+ * import * as pulumi from "@pulumi/pulumi";
25
+ * import * as databricks from "@pulumi/databricks";
26
+ *
27
+ * const _this = new databricks.index.WorkspaceBaseEnvironment("this", {
28
+ * displayName: "my-environment",
29
+ * filepath: "/Volumes/catalog/schema/volume/environment.yaml",
30
+ * });
31
+ * ```
32
+ *
33
+ * ### Example with GPU Compute Type
34
+ *
35
+ * This example creates a GPU-specific Workspace Base Environment.
36
+ *
37
+ * ```typescript
38
+ * import * as pulumi from "@pulumi/pulumi";
39
+ * import * as databricks from "@pulumi/databricks";
40
+ *
41
+ * const gpuEnv = new databricks.index.WorkspaceBaseEnvironment("gpu_env", {
42
+ * displayName: "my-gpu-environment",
43
+ * filepath: "/Volumes/catalog/schema/volume/gpu-environment.yaml",
44
+ * baseEnvironmentType: "GPU_LARGE",
45
+ * });
46
+ * ```
47
+ */
48
+ class EnvironmentsWorkspaceBaseEnvironment extends pulumi.CustomResource {
49
+ /**
50
+ * Get an existing EnvironmentsWorkspaceBaseEnvironment resource's state with the given name, ID, and optional extra
51
+ * properties used to qualify the lookup.
52
+ *
53
+ * @param name The _unique_ name of the resulting resource.
54
+ * @param id The _unique_ provider ID of the resource to lookup.
55
+ * @param state Any extra arguments used during the lookup.
56
+ * @param opts Optional settings to control the behavior of the CustomResource.
57
+ */
58
+ static get(name, id, state, opts) {
59
+ return new EnvironmentsWorkspaceBaseEnvironment(name, state, { ...opts, id: id });
60
+ }
61
+ /**
62
+ * Returns true if the given object is an instance of EnvironmentsWorkspaceBaseEnvironment. This is designed to work even
63
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
64
+ */
65
+ static isInstance(obj) {
66
+ if (obj === undefined || obj === null) {
67
+ return false;
68
+ }
69
+ return obj['__pulumiType'] === EnvironmentsWorkspaceBaseEnvironment.__pulumiType;
70
+ }
71
+ constructor(name, argsOrState, opts) {
72
+ let resourceInputs = {};
73
+ opts = opts || {};
74
+ if (opts.id) {
75
+ const state = argsOrState;
76
+ resourceInputs["baseEnvironmentType"] = state?.baseEnvironmentType;
77
+ resourceInputs["createTime"] = state?.createTime;
78
+ resourceInputs["creatorUserId"] = state?.creatorUserId;
79
+ resourceInputs["displayName"] = state?.displayName;
80
+ resourceInputs["effectiveBaseEnvironmentType"] = state?.effectiveBaseEnvironmentType;
81
+ resourceInputs["filepath"] = state?.filepath;
82
+ resourceInputs["isDefault"] = state?.isDefault;
83
+ resourceInputs["lastUpdatedUserId"] = state?.lastUpdatedUserId;
84
+ resourceInputs["message"] = state?.message;
85
+ resourceInputs["name"] = state?.name;
86
+ resourceInputs["providerConfig"] = state?.providerConfig;
87
+ resourceInputs["status"] = state?.status;
88
+ resourceInputs["updateTime"] = state?.updateTime;
89
+ resourceInputs["workspaceBaseEnvironmentId"] = state?.workspaceBaseEnvironmentId;
90
+ }
91
+ else {
92
+ const args = argsOrState;
93
+ if (args?.displayName === undefined && !opts.urn) {
94
+ throw new Error("Missing required property 'displayName'");
95
+ }
96
+ resourceInputs["baseEnvironmentType"] = args?.baseEnvironmentType;
97
+ resourceInputs["displayName"] = args?.displayName;
98
+ resourceInputs["filepath"] = args?.filepath;
99
+ resourceInputs["providerConfig"] = args?.providerConfig;
100
+ resourceInputs["workspaceBaseEnvironmentId"] = args?.workspaceBaseEnvironmentId;
101
+ resourceInputs["createTime"] = undefined /*out*/;
102
+ resourceInputs["creatorUserId"] = undefined /*out*/;
103
+ resourceInputs["effectiveBaseEnvironmentType"] = undefined /*out*/;
104
+ resourceInputs["isDefault"] = undefined /*out*/;
105
+ resourceInputs["lastUpdatedUserId"] = undefined /*out*/;
106
+ resourceInputs["message"] = undefined /*out*/;
107
+ resourceInputs["name"] = undefined /*out*/;
108
+ resourceInputs["status"] = undefined /*out*/;
109
+ resourceInputs["updateTime"] = undefined /*out*/;
110
+ }
111
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
112
+ super(EnvironmentsWorkspaceBaseEnvironment.__pulumiType, name, resourceInputs, opts);
113
+ }
114
+ }
115
+ exports.EnvironmentsWorkspaceBaseEnvironment = EnvironmentsWorkspaceBaseEnvironment;
116
+ /** @internal */
117
+ EnvironmentsWorkspaceBaseEnvironment.__pulumiType = 'databricks:index/environmentsWorkspaceBaseEnvironment:EnvironmentsWorkspaceBaseEnvironment';
118
+ //# sourceMappingURL=environmentsWorkspaceBaseEnvironment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environmentsWorkspaceBaseEnvironment.js","sourceRoot":"","sources":["../environmentsWorkspaceBaseEnvironment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,oCAAqC,SAAQ,MAAM,CAAC,cAAc;IAC3E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiD,EAAE,IAAmC;QAC/I,OAAO,IAAI,oCAAoC,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GA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