@pulumi/databricks 1.20.0-alpha.1690479875 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accessControlRuleSet.d.ts +88 -0
- package/accessControlRuleSet.js +68 -0
- package/accessControlRuleSet.js.map +1 -0
- package/cluster.d.ts +3 -3
- package/getMetastore.d.ts +61 -0
- package/getMetastore.js +36 -0
- package/getMetastore.js.map +1 -0
- package/getMetastores.d.ts +80 -0
- package/getMetastores.js +60 -0
- package/getMetastores.js.map +1 -0
- package/getMwsCredentials.d.ts +2 -2
- package/getMwsCredentials.js +2 -2
- package/getSqlWarehouse.d.ts +44 -19
- package/getSqlWarehouse.js +25 -2
- package/getSqlWarehouse.js.map +1 -1
- package/group.d.ts +12 -0
- package/group.js +2 -0
- package/group.js.map +1 -1
- package/index.d.ts +9 -0
- package/index.js +14 -3
- package/index.js.map +1 -1
- package/job.d.ts +57 -3
- package/job.js +4 -0
- package/job.js.map +1 -1
- package/mwsNetworks.d.ts +1 -3
- package/mwsNetworks.js +1 -3
- package/mwsNetworks.js.map +1 -1
- package/mwsStorageConfigurations.d.ts +6 -5
- package/mwsStorageConfigurations.js +6 -5
- package/mwsStorageConfigurations.js.map +1 -1
- package/package.json +2 -2
- package/provider.js +1 -1
- package/provider.js.map +1 -1
- package/schema.d.ts +2 -2
- package/schema.js +2 -2
- package/servicePrincipal.d.ts +12 -0
- package/servicePrincipal.js +2 -0
- package/servicePrincipal.js.map +1 -1
- package/sqlTable.d.ts +2 -2
- package/sqlTable.js +2 -2
- package/types/input.d.ts +300 -6
- package/types/output.d.ts +217 -5
- package/user.d.ts +12 -0
- package/user.js +2 -0
- package/user.js.map +1 -1
- package/volume.d.ts +3 -0
- package/volume.js +3 -0
- package/volume.js.map +1 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* This resource allows you to manage access rules on Databricks account level resources. For convenience we allow accessing this resource through the Databricks account and workspace.
|
|
6
|
+
*
|
|
7
|
+
* > **Note** Currently, we only support managing access rules on service principal resources through `databricks.AccessControlRuleSet`.
|
|
8
|
+
*
|
|
9
|
+
* > **Warning** `databricks.AccessControlRuleSet` cannot be used to manage access rules for resources supported by databricks_permissions. Refer to its documentation for more information.
|
|
10
|
+
*
|
|
11
|
+
* ## Related Resources
|
|
12
|
+
*
|
|
13
|
+
* The following resources are often used in the same context:
|
|
14
|
+
*
|
|
15
|
+
* * databricks.Group
|
|
16
|
+
* * databricks.User
|
|
17
|
+
* * databricks.ServicePrincipal
|
|
18
|
+
*/
|
|
19
|
+
export declare class AccessControlRuleSet extends pulumi.CustomResource {
|
|
20
|
+
/**
|
|
21
|
+
* Get an existing AccessControlRuleSet resource's state with the given name, ID, and optional extra
|
|
22
|
+
* properties used to qualify the lookup.
|
|
23
|
+
*
|
|
24
|
+
* @param name The _unique_ name of the resulting resource.
|
|
25
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
26
|
+
* @param state Any extra arguments used during the lookup.
|
|
27
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
28
|
+
*/
|
|
29
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AccessControlRuleSetState, opts?: pulumi.CustomResourceOptions): AccessControlRuleSet;
|
|
30
|
+
/**
|
|
31
|
+
* Returns true if the given object is an instance of AccessControlRuleSet. This is designed to work even
|
|
32
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
33
|
+
*/
|
|
34
|
+
static isInstance(obj: any): obj is AccessControlRuleSet;
|
|
35
|
+
readonly etag: pulumi.Output<string>;
|
|
36
|
+
/**
|
|
37
|
+
* The access control rules to be granted by this rule set, consisting of a set of principals and roles to be granted to them.
|
|
38
|
+
*
|
|
39
|
+
* !> **Warning** Name uniquely identifies a rule set resource. Ensure all the grantRules blocks for a rule set name are present in one `databricks.AccessControlRuleSet` resource block. Otherwise, after applying changes, users might lose their role assignment even if that was not intended.
|
|
40
|
+
*/
|
|
41
|
+
readonly grantRules: pulumi.Output<outputs.AccessControlRuleSetGrantRule[] | undefined>;
|
|
42
|
+
/**
|
|
43
|
+
* Unique identifier of a rule set. The name determines the resource to which the rule set applies. Currently, only default rule sets are supported. The following rule set formats are supported:
|
|
44
|
+
* * `accounts/{account_id}/servicePrincipals/{service_principal_application_id}/ruleSets/default`
|
|
45
|
+
*/
|
|
46
|
+
readonly name: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Create a AccessControlRuleSet resource with the given unique name, arguments, and options.
|
|
49
|
+
*
|
|
50
|
+
* @param name The _unique_ name of the resource.
|
|
51
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
52
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
53
|
+
*/
|
|
54
|
+
constructor(name: string, args?: AccessControlRuleSetArgs, opts?: pulumi.CustomResourceOptions);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Input properties used for looking up and filtering AccessControlRuleSet resources.
|
|
58
|
+
*/
|
|
59
|
+
export interface AccessControlRuleSetState {
|
|
60
|
+
etag?: pulumi.Input<string>;
|
|
61
|
+
/**
|
|
62
|
+
* The access control rules to be granted by this rule set, consisting of a set of principals and roles to be granted to them.
|
|
63
|
+
*
|
|
64
|
+
* !> **Warning** Name uniquely identifies a rule set resource. Ensure all the grantRules blocks for a rule set name are present in one `databricks.AccessControlRuleSet` resource block. Otherwise, after applying changes, users might lose their role assignment even if that was not intended.
|
|
65
|
+
*/
|
|
66
|
+
grantRules?: pulumi.Input<pulumi.Input<inputs.AccessControlRuleSetGrantRule>[]>;
|
|
67
|
+
/**
|
|
68
|
+
* Unique identifier of a rule set. The name determines the resource to which the rule set applies. Currently, only default rule sets are supported. The following rule set formats are supported:
|
|
69
|
+
* * `accounts/{account_id}/servicePrincipals/{service_principal_application_id}/ruleSets/default`
|
|
70
|
+
*/
|
|
71
|
+
name?: pulumi.Input<string>;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* The set of arguments for constructing a AccessControlRuleSet resource.
|
|
75
|
+
*/
|
|
76
|
+
export interface AccessControlRuleSetArgs {
|
|
77
|
+
/**
|
|
78
|
+
* The access control rules to be granted by this rule set, consisting of a set of principals and roles to be granted to them.
|
|
79
|
+
*
|
|
80
|
+
* !> **Warning** Name uniquely identifies a rule set resource. Ensure all the grantRules blocks for a rule set name are present in one `databricks.AccessControlRuleSet` resource block. Otherwise, after applying changes, users might lose their role assignment even if that was not intended.
|
|
81
|
+
*/
|
|
82
|
+
grantRules?: pulumi.Input<pulumi.Input<inputs.AccessControlRuleSetGrantRule>[]>;
|
|
83
|
+
/**
|
|
84
|
+
* Unique identifier of a rule set. The name determines the resource to which the rule set applies. Currently, only default rule sets are supported. The following rule set formats are supported:
|
|
85
|
+
* * `accounts/{account_id}/servicePrincipals/{service_principal_application_id}/ruleSets/default`
|
|
86
|
+
*/
|
|
87
|
+
name?: pulumi.Input<string>;
|
|
88
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.AccessControlRuleSet = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to manage access rules on Databricks account level resources. For convenience we allow accessing this resource through the Databricks account and workspace.
|
|
10
|
+
*
|
|
11
|
+
* > **Note** Currently, we only support managing access rules on service principal resources through `databricks.AccessControlRuleSet`.
|
|
12
|
+
*
|
|
13
|
+
* > **Warning** `databricks.AccessControlRuleSet` cannot be used to manage access rules for resources supported by databricks_permissions. Refer to its documentation for more information.
|
|
14
|
+
*
|
|
15
|
+
* ## Related Resources
|
|
16
|
+
*
|
|
17
|
+
* The following resources are often used in the same context:
|
|
18
|
+
*
|
|
19
|
+
* * databricks.Group
|
|
20
|
+
* * databricks.User
|
|
21
|
+
* * databricks.ServicePrincipal
|
|
22
|
+
*/
|
|
23
|
+
class AccessControlRuleSet extends pulumi.CustomResource {
|
|
24
|
+
/**
|
|
25
|
+
* Get an existing AccessControlRuleSet resource's state with the given name, ID, and optional extra
|
|
26
|
+
* properties used to qualify the lookup.
|
|
27
|
+
*
|
|
28
|
+
* @param name The _unique_ name of the resulting resource.
|
|
29
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
30
|
+
* @param state Any extra arguments used during the lookup.
|
|
31
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
32
|
+
*/
|
|
33
|
+
static get(name, id, state, opts) {
|
|
34
|
+
return new AccessControlRuleSet(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Returns true if the given object is an instance of AccessControlRuleSet. This is designed to work even
|
|
38
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
39
|
+
*/
|
|
40
|
+
static isInstance(obj) {
|
|
41
|
+
if (obj === undefined || obj === null) {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
return obj['__pulumiType'] === AccessControlRuleSet.__pulumiType;
|
|
45
|
+
}
|
|
46
|
+
constructor(name, argsOrState, opts) {
|
|
47
|
+
let resourceInputs = {};
|
|
48
|
+
opts = opts || {};
|
|
49
|
+
if (opts.id) {
|
|
50
|
+
const state = argsOrState;
|
|
51
|
+
resourceInputs["etag"] = state ? state.etag : undefined;
|
|
52
|
+
resourceInputs["grantRules"] = state ? state.grantRules : undefined;
|
|
53
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
const args = argsOrState;
|
|
57
|
+
resourceInputs["grantRules"] = args ? args.grantRules : undefined;
|
|
58
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
59
|
+
resourceInputs["etag"] = undefined /*out*/;
|
|
60
|
+
}
|
|
61
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
62
|
+
super(AccessControlRuleSet.__pulumiType, name, resourceInputs, opts);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.AccessControlRuleSet = AccessControlRuleSet;
|
|
66
|
+
/** @internal */
|
|
67
|
+
AccessControlRuleSet.__pulumiType = 'databricks:index/accessControlRuleSet:AccessControlRuleSet';
|
|
68
|
+
//# sourceMappingURL=accessControlRuleSet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accessControlRuleSet.js","sourceRoot":"","sources":["../accessControlRuleSet.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3E,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,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAkE,EAAE,IAAmC;QAC7H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoD,CAAC;YACnE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,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;SAC3D;aAAM;YACH,MAAM,IAAI,GAAG,WAAmD,CAAC;YACjE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AAjEL,oDAkEC;AApDG,gBAAgB;AACO,iCAAY,GAAG,4DAA4D,CAAC"}
|
package/cluster.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ export declare class Cluster extends pulumi.CustomResource {
|
|
|
135
135
|
*/
|
|
136
136
|
readonly runtimeEngine: pulumi.Output<string | undefined>;
|
|
137
137
|
/**
|
|
138
|
-
* The optional user name of the user to assign to an interactive cluster. This field is required when using
|
|
138
|
+
* The optional user name of the user to assign to an interactive cluster. This field is required when using `dataSecurityMode` set to `SINGLE_USER` or AAD Passthrough for Azure Data Lake Storage (ADLS) with a single-user cluster (i.e., not high-concurrency clusters).
|
|
139
139
|
*/
|
|
140
140
|
readonly singleUserName: pulumi.Output<string | undefined>;
|
|
141
141
|
/**
|
|
@@ -286,7 +286,7 @@ export interface ClusterState {
|
|
|
286
286
|
*/
|
|
287
287
|
runtimeEngine?: pulumi.Input<string>;
|
|
288
288
|
/**
|
|
289
|
-
* The optional user name of the user to assign to an interactive cluster. This field is required when using
|
|
289
|
+
* The optional user name of the user to assign to an interactive cluster. This field is required when using `dataSecurityMode` set to `SINGLE_USER` or AAD Passthrough for Azure Data Lake Storage (ADLS) with a single-user cluster (i.e., not high-concurrency clusters).
|
|
290
290
|
*/
|
|
291
291
|
singleUserName?: pulumi.Input<string>;
|
|
292
292
|
/**
|
|
@@ -423,7 +423,7 @@ export interface ClusterArgs {
|
|
|
423
423
|
*/
|
|
424
424
|
runtimeEngine?: pulumi.Input<string>;
|
|
425
425
|
/**
|
|
426
|
-
* The optional user name of the user to assign to an interactive cluster. This field is required when using
|
|
426
|
+
* The optional user name of the user to assign to an interactive cluster. This field is required when using `dataSecurityMode` set to `SINGLE_USER` or AAD Passthrough for Azure Data Lake Storage (ADLS) with a single-user cluster (i.e., not high-concurrency clusters).
|
|
427
427
|
*/
|
|
428
428
|
singleUserName?: pulumi.Input<string>;
|
|
429
429
|
/**
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## Related Resources
|
|
6
|
+
*
|
|
7
|
+
* The following resources are used in the same context:
|
|
8
|
+
* * databricks.getMetastores to get mapping of name to id of all metastores.
|
|
9
|
+
* * databricks.Metastore to manage Metastores within Unity Catalog.
|
|
10
|
+
* * databricks.Catalog to manage catalogs within Unity Catalog.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getMetastore(args: GetMetastoreArgs, opts?: pulumi.InvokeOptions): Promise<GetMetastoreResult>;
|
|
13
|
+
/**
|
|
14
|
+
* A collection of arguments for invoking getMetastore.
|
|
15
|
+
*/
|
|
16
|
+
export interface GetMetastoreArgs {
|
|
17
|
+
/**
|
|
18
|
+
* Id of the metastore to be fetched
|
|
19
|
+
*/
|
|
20
|
+
metastoreId: string;
|
|
21
|
+
/**
|
|
22
|
+
* MetastoreInfo object for a databricks_metastore. This contains the following attributes:
|
|
23
|
+
*/
|
|
24
|
+
metastoreInfo?: inputs.GetMetastoreMetastoreInfo;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A collection of values returned by getMetastore.
|
|
28
|
+
*/
|
|
29
|
+
export interface GetMetastoreResult {
|
|
30
|
+
/**
|
|
31
|
+
* The provider-assigned unique ID for this managed resource.
|
|
32
|
+
*/
|
|
33
|
+
readonly id: string;
|
|
34
|
+
readonly metastoreId: string;
|
|
35
|
+
/**
|
|
36
|
+
* MetastoreInfo object for a databricks_metastore. This contains the following attributes:
|
|
37
|
+
*/
|
|
38
|
+
readonly metastoreInfo: outputs.GetMetastoreMetastoreInfo;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* ## Related Resources
|
|
42
|
+
*
|
|
43
|
+
* The following resources are used in the same context:
|
|
44
|
+
* * databricks.getMetastores to get mapping of name to id of all metastores.
|
|
45
|
+
* * databricks.Metastore to manage Metastores within Unity Catalog.
|
|
46
|
+
* * databricks.Catalog to manage catalogs within Unity Catalog.
|
|
47
|
+
*/
|
|
48
|
+
export declare function getMetastoreOutput(args: GetMetastoreOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetMetastoreResult>;
|
|
49
|
+
/**
|
|
50
|
+
* A collection of arguments for invoking getMetastore.
|
|
51
|
+
*/
|
|
52
|
+
export interface GetMetastoreOutputArgs {
|
|
53
|
+
/**
|
|
54
|
+
* Id of the metastore to be fetched
|
|
55
|
+
*/
|
|
56
|
+
metastoreId: pulumi.Input<string>;
|
|
57
|
+
/**
|
|
58
|
+
* MetastoreInfo object for a databricks_metastore. This contains the following attributes:
|
|
59
|
+
*/
|
|
60
|
+
metastoreInfo?: pulumi.Input<inputs.GetMetastoreMetastoreInfoArgs>;
|
|
61
|
+
}
|
package/getMetastore.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
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.getMetastoreOutput = exports.getMetastore = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Related Resources
|
|
10
|
+
*
|
|
11
|
+
* The following resources are used in the same context:
|
|
12
|
+
* * databricks.getMetastores to get mapping of name to id of all metastores.
|
|
13
|
+
* * databricks.Metastore to manage Metastores within Unity Catalog.
|
|
14
|
+
* * databricks.Catalog to manage catalogs within Unity Catalog.
|
|
15
|
+
*/
|
|
16
|
+
function getMetastore(args, opts) {
|
|
17
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
18
|
+
return pulumi.runtime.invoke("databricks:index/getMetastore:getMetastore", {
|
|
19
|
+
"metastoreId": args.metastoreId,
|
|
20
|
+
"metastoreInfo": args.metastoreInfo,
|
|
21
|
+
}, opts);
|
|
22
|
+
}
|
|
23
|
+
exports.getMetastore = getMetastore;
|
|
24
|
+
/**
|
|
25
|
+
* ## Related Resources
|
|
26
|
+
*
|
|
27
|
+
* The following resources are used in the same context:
|
|
28
|
+
* * databricks.getMetastores to get mapping of name to id of all metastores.
|
|
29
|
+
* * databricks.Metastore to manage Metastores within Unity Catalog.
|
|
30
|
+
* * databricks.Catalog to manage catalogs within Unity Catalog.
|
|
31
|
+
*/
|
|
32
|
+
function getMetastoreOutput(args, opts) {
|
|
33
|
+
return pulumi.output(args).apply((a) => getMetastore(a, opts));
|
|
34
|
+
}
|
|
35
|
+
exports.getMetastoreOutput = getMetastoreOutput;
|
|
36
|
+
//# sourceMappingURL=getMetastore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMetastore.js","sourceRoot":"","sources":["../getMetastore.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;GAOG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAE5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,eAAe,EAAE,IAAI,CAAC,aAAa;KACtC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,oCAOC;AA8BD;;;;;;;GAOG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,gDAEC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Example Usage
|
|
4
|
+
*
|
|
5
|
+
* Mapping of name to id of all metastores:
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as databricks from "@pulumi/databricks";
|
|
10
|
+
*
|
|
11
|
+
* const all = databricks.getMetastores({});
|
|
12
|
+
* export const allMetastores = all.then(all => all.ids);
|
|
13
|
+
* ```
|
|
14
|
+
* ## Related Resources
|
|
15
|
+
*
|
|
16
|
+
* The following resources are used in the same context:
|
|
17
|
+
*
|
|
18
|
+
* * databricks.Metastore to get information about a single metastore.
|
|
19
|
+
* * databricks.Metastore to manage Metastores within Unity Catalog.
|
|
20
|
+
* * databricks.Catalog to manage catalogs within Unity Catalog.
|
|
21
|
+
*/
|
|
22
|
+
export declare function getMetastores(args?: GetMetastoresArgs, opts?: pulumi.InvokeOptions): Promise<GetMetastoresResult>;
|
|
23
|
+
/**
|
|
24
|
+
* A collection of arguments for invoking getMetastores.
|
|
25
|
+
*/
|
|
26
|
+
export interface GetMetastoresArgs {
|
|
27
|
+
/**
|
|
28
|
+
* Mapping of name to id of databricks_metastore
|
|
29
|
+
*/
|
|
30
|
+
ids?: {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A collection of values returned by getMetastores.
|
|
36
|
+
*/
|
|
37
|
+
export interface GetMetastoresResult {
|
|
38
|
+
/**
|
|
39
|
+
* The provider-assigned unique ID for this managed resource.
|
|
40
|
+
*/
|
|
41
|
+
readonly id: string;
|
|
42
|
+
/**
|
|
43
|
+
* Mapping of name to id of databricks_metastore
|
|
44
|
+
*/
|
|
45
|
+
readonly ids: {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* ## Example Usage
|
|
51
|
+
*
|
|
52
|
+
* Mapping of name to id of all metastores:
|
|
53
|
+
*
|
|
54
|
+
* ```typescript
|
|
55
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
56
|
+
* import * as databricks from "@pulumi/databricks";
|
|
57
|
+
*
|
|
58
|
+
* const all = databricks.getMetastores({});
|
|
59
|
+
* export const allMetastores = all.then(all => all.ids);
|
|
60
|
+
* ```
|
|
61
|
+
* ## Related Resources
|
|
62
|
+
*
|
|
63
|
+
* The following resources are used in the same context:
|
|
64
|
+
*
|
|
65
|
+
* * databricks.Metastore to get information about a single metastore.
|
|
66
|
+
* * databricks.Metastore to manage Metastores within Unity Catalog.
|
|
67
|
+
* * databricks.Catalog to manage catalogs within Unity Catalog.
|
|
68
|
+
*/
|
|
69
|
+
export declare function getMetastoresOutput(args?: GetMetastoresOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetMetastoresResult>;
|
|
70
|
+
/**
|
|
71
|
+
* A collection of arguments for invoking getMetastores.
|
|
72
|
+
*/
|
|
73
|
+
export interface GetMetastoresOutputArgs {
|
|
74
|
+
/**
|
|
75
|
+
* Mapping of name to id of databricks_metastore
|
|
76
|
+
*/
|
|
77
|
+
ids?: pulumi.Input<{
|
|
78
|
+
[key: string]: any;
|
|
79
|
+
}>;
|
|
80
|
+
}
|
package/getMetastores.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
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.getMetastoresOutput = exports.getMetastores = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* Mapping of name to id of all metastores:
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as databricks from "@pulumi/databricks";
|
|
16
|
+
*
|
|
17
|
+
* const all = databricks.getMetastores({});
|
|
18
|
+
* export const allMetastores = all.then(all => all.ids);
|
|
19
|
+
* ```
|
|
20
|
+
* ## Related Resources
|
|
21
|
+
*
|
|
22
|
+
* The following resources are used in the same context:
|
|
23
|
+
*
|
|
24
|
+
* * databricks.Metastore to get information about a single metastore.
|
|
25
|
+
* * databricks.Metastore to manage Metastores within Unity Catalog.
|
|
26
|
+
* * databricks.Catalog to manage catalogs within Unity Catalog.
|
|
27
|
+
*/
|
|
28
|
+
function getMetastores(args, opts) {
|
|
29
|
+
args = args || {};
|
|
30
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
31
|
+
return pulumi.runtime.invoke("databricks:index/getMetastores:getMetastores", {
|
|
32
|
+
"ids": args.ids,
|
|
33
|
+
}, opts);
|
|
34
|
+
}
|
|
35
|
+
exports.getMetastores = getMetastores;
|
|
36
|
+
/**
|
|
37
|
+
* ## Example Usage
|
|
38
|
+
*
|
|
39
|
+
* Mapping of name to id of all metastores:
|
|
40
|
+
*
|
|
41
|
+
* ```typescript
|
|
42
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
43
|
+
* import * as databricks from "@pulumi/databricks";
|
|
44
|
+
*
|
|
45
|
+
* const all = databricks.getMetastores({});
|
|
46
|
+
* export const allMetastores = all.then(all => all.ids);
|
|
47
|
+
* ```
|
|
48
|
+
* ## Related Resources
|
|
49
|
+
*
|
|
50
|
+
* The following resources are used in the same context:
|
|
51
|
+
*
|
|
52
|
+
* * databricks.Metastore to get information about a single metastore.
|
|
53
|
+
* * databricks.Metastore to manage Metastores within Unity Catalog.
|
|
54
|
+
* * databricks.Catalog to manage catalogs within Unity Catalog.
|
|
55
|
+
*/
|
|
56
|
+
function getMetastoresOutput(args, opts) {
|
|
57
|
+
return pulumi.output(args).apply((a) => getMetastores(a, opts));
|
|
58
|
+
}
|
|
59
|
+
exports.getMetastoresOutput = getMetastoresOutput;
|
|
60
|
+
//# sourceMappingURL=getMetastores.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMetastores.js","sourceRoot":"","sources":["../getMetastores.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE;QACzE,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,sCAOC;AAyBD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
|
package/getMwsCredentials.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
*
|
|
9
9
|
* ## Example Usage
|
|
10
10
|
*
|
|
11
|
-
* Listing all credentials in
|
|
11
|
+
* Listing all credentials in Databricks Account
|
|
12
12
|
*
|
|
13
13
|
* ```typescript
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -64,7 +64,7 @@ export interface GetMwsCredentialsResult {
|
|
|
64
64
|
*
|
|
65
65
|
* ## Example Usage
|
|
66
66
|
*
|
|
67
|
-
* Listing all credentials in
|
|
67
|
+
* Listing all credentials in Databricks Account
|
|
68
68
|
*
|
|
69
69
|
* ```typescript
|
|
70
70
|
* import * as pulumi from "@pulumi/pulumi";
|
package/getMwsCredentials.js
CHANGED
|
@@ -14,7 +14,7 @@ const utilities = require("./utilities");
|
|
|
14
14
|
*
|
|
15
15
|
* ## Example Usage
|
|
16
16
|
*
|
|
17
|
-
* Listing all credentials in
|
|
17
|
+
* Listing all credentials in Databricks Account
|
|
18
18
|
*
|
|
19
19
|
* ```typescript
|
|
20
20
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -51,7 +51,7 @@ exports.getMwsCredentials = getMwsCredentials;
|
|
|
51
51
|
*
|
|
52
52
|
* ## Example Usage
|
|
53
53
|
*
|
|
54
|
-
* Listing all credentials in
|
|
54
|
+
* Listing all credentials in Databricks Account
|
|
55
55
|
*
|
|
56
56
|
* ```typescript
|
|
57
57
|
* import * as pulumi from "@pulumi/pulumi";
|
package/getSqlWarehouse.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import * as outputs from "./types/output";
|
|
|
8
8
|
*
|
|
9
9
|
* ## Example Usage
|
|
10
10
|
*
|
|
11
|
-
* Retrieve attributes of each SQL warehouses in a workspace
|
|
11
|
+
* * Retrieve attributes of each SQL warehouses in a workspace:
|
|
12
12
|
*
|
|
13
13
|
* ```typescript
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -19,6 +19,17 @@ import * as outputs from "./types/output";
|
|
|
19
19
|
* id: __value,
|
|
20
20
|
* })));
|
|
21
21
|
* ```
|
|
22
|
+
*
|
|
23
|
+
* * Search for a specific SQL Warehouse by name:
|
|
24
|
+
*
|
|
25
|
+
* ```typescript
|
|
26
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
27
|
+
* import * as databricks from "@pulumi/databricks";
|
|
28
|
+
*
|
|
29
|
+
* const all = databricks.getSqlWarehouse({
|
|
30
|
+
* name: "Starter Warehouse",
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
22
33
|
* ## Related resources
|
|
23
34
|
*
|
|
24
35
|
* The following resources are often used in the same context:
|
|
@@ -29,7 +40,7 @@ import * as outputs from "./types/output";
|
|
|
29
40
|
* * databricks.SqlGlobalConfig to configure the security policy, databricks_instance_profile, and [data access properties](https://docs.databricks.com/sql/admin/data-access-configuration.html) for all databricks.getSqlWarehouse of workspace.
|
|
30
41
|
* * databricks.SqlPermissions to manage data object access control lists in Databricks workspaces for things like tables, views, databases, and [more](https://docs.databricks.com/security/access-control/table-acls/object-privileges.html).
|
|
31
42
|
*/
|
|
32
|
-
export declare function getSqlWarehouse(args
|
|
43
|
+
export declare function getSqlWarehouse(args?: GetSqlWarehouseArgs, opts?: pulumi.InvokeOptions): Promise<GetSqlWarehouseResult>;
|
|
33
44
|
/**
|
|
34
45
|
* A collection of arguments for invoking getSqlWarehouse.
|
|
35
46
|
*/
|
|
@@ -51,17 +62,17 @@ export interface GetSqlWarehouseArgs {
|
|
|
51
62
|
*/
|
|
52
63
|
dataSourceId?: string;
|
|
53
64
|
/**
|
|
54
|
-
* Whether
|
|
65
|
+
* Whether [Photon](https://databricks.com/product/delta-engine) is enabled.
|
|
55
66
|
*/
|
|
56
67
|
enablePhoton?: boolean;
|
|
57
68
|
/**
|
|
58
|
-
* Whether this SQL warehouse is a serverless SQL warehouse.
|
|
69
|
+
* Whether this SQL warehouse is a serverless SQL warehouse.
|
|
59
70
|
*/
|
|
60
71
|
enableServerlessCompute?: boolean;
|
|
61
72
|
/**
|
|
62
|
-
* The ID of the SQL warehouse
|
|
73
|
+
* The ID of the SQL warehouse.
|
|
63
74
|
*/
|
|
64
|
-
id
|
|
75
|
+
id?: string;
|
|
65
76
|
instanceProfileArn?: string;
|
|
66
77
|
/**
|
|
67
78
|
* JDBC connection string.
|
|
@@ -76,7 +87,7 @@ export interface GetSqlWarehouseArgs {
|
|
|
76
87
|
*/
|
|
77
88
|
minNumClusters?: number;
|
|
78
89
|
/**
|
|
79
|
-
* Name of the
|
|
90
|
+
* Name of the SQL warehouse to search (case-sensitive).
|
|
80
91
|
*/
|
|
81
92
|
name?: string;
|
|
82
93
|
numClusters?: number;
|
|
@@ -90,7 +101,7 @@ export interface GetSqlWarehouseArgs {
|
|
|
90
101
|
spotInstancePolicy?: string;
|
|
91
102
|
state?: string;
|
|
92
103
|
/**
|
|
93
|
-
*
|
|
104
|
+
* tags used for SQL warehouse resources.
|
|
94
105
|
*/
|
|
95
106
|
tags?: inputs.GetSqlWarehouseTags;
|
|
96
107
|
}
|
|
@@ -115,13 +126,16 @@ export interface GetSqlWarehouseResult {
|
|
|
115
126
|
*/
|
|
116
127
|
readonly dataSourceId: string;
|
|
117
128
|
/**
|
|
118
|
-
* Whether
|
|
129
|
+
* Whether [Photon](https://databricks.com/product/delta-engine) is enabled.
|
|
119
130
|
*/
|
|
120
131
|
readonly enablePhoton: boolean;
|
|
121
132
|
/**
|
|
122
|
-
* Whether this SQL warehouse is a serverless SQL warehouse.
|
|
133
|
+
* Whether this SQL warehouse is a serverless SQL warehouse.
|
|
123
134
|
*/
|
|
124
135
|
readonly enableServerlessCompute: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* The ID of the SQL warehouse.
|
|
138
|
+
*/
|
|
125
139
|
readonly id: string;
|
|
126
140
|
readonly instanceProfileArn: string;
|
|
127
141
|
/**
|
|
@@ -151,7 +165,7 @@ export interface GetSqlWarehouseResult {
|
|
|
151
165
|
readonly spotInstancePolicy: string;
|
|
152
166
|
readonly state: string;
|
|
153
167
|
/**
|
|
154
|
-
*
|
|
168
|
+
* tags used for SQL warehouse resources.
|
|
155
169
|
*/
|
|
156
170
|
readonly tags: outputs.GetSqlWarehouseTags;
|
|
157
171
|
}
|
|
@@ -162,7 +176,7 @@ export interface GetSqlWarehouseResult {
|
|
|
162
176
|
*
|
|
163
177
|
* ## Example Usage
|
|
164
178
|
*
|
|
165
|
-
* Retrieve attributes of each SQL warehouses in a workspace
|
|
179
|
+
* * Retrieve attributes of each SQL warehouses in a workspace:
|
|
166
180
|
*
|
|
167
181
|
* ```typescript
|
|
168
182
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -173,6 +187,17 @@ export interface GetSqlWarehouseResult {
|
|
|
173
187
|
* id: __value,
|
|
174
188
|
* })));
|
|
175
189
|
* ```
|
|
190
|
+
*
|
|
191
|
+
* * Search for a specific SQL Warehouse by name:
|
|
192
|
+
*
|
|
193
|
+
* ```typescript
|
|
194
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
195
|
+
* import * as databricks from "@pulumi/databricks";
|
|
196
|
+
*
|
|
197
|
+
* const all = databricks.getSqlWarehouse({
|
|
198
|
+
* name: "Starter Warehouse",
|
|
199
|
+
* });
|
|
200
|
+
* ```
|
|
176
201
|
* ## Related resources
|
|
177
202
|
*
|
|
178
203
|
* The following resources are often used in the same context:
|
|
@@ -183,7 +208,7 @@ export interface GetSqlWarehouseResult {
|
|
|
183
208
|
* * databricks.SqlGlobalConfig to configure the security policy, databricks_instance_profile, and [data access properties](https://docs.databricks.com/sql/admin/data-access-configuration.html) for all databricks.getSqlWarehouse of workspace.
|
|
184
209
|
* * databricks.SqlPermissions to manage data object access control lists in Databricks workspaces for things like tables, views, databases, and [more](https://docs.databricks.com/security/access-control/table-acls/object-privileges.html).
|
|
185
210
|
*/
|
|
186
|
-
export declare function getSqlWarehouseOutput(args
|
|
211
|
+
export declare function getSqlWarehouseOutput(args?: GetSqlWarehouseOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSqlWarehouseResult>;
|
|
187
212
|
/**
|
|
188
213
|
* A collection of arguments for invoking getSqlWarehouse.
|
|
189
214
|
*/
|
|
@@ -205,17 +230,17 @@ export interface GetSqlWarehouseOutputArgs {
|
|
|
205
230
|
*/
|
|
206
231
|
dataSourceId?: pulumi.Input<string>;
|
|
207
232
|
/**
|
|
208
|
-
* Whether
|
|
233
|
+
* Whether [Photon](https://databricks.com/product/delta-engine) is enabled.
|
|
209
234
|
*/
|
|
210
235
|
enablePhoton?: pulumi.Input<boolean>;
|
|
211
236
|
/**
|
|
212
|
-
* Whether this SQL warehouse is a serverless SQL warehouse.
|
|
237
|
+
* Whether this SQL warehouse is a serverless SQL warehouse.
|
|
213
238
|
*/
|
|
214
239
|
enableServerlessCompute?: pulumi.Input<boolean>;
|
|
215
240
|
/**
|
|
216
|
-
* The ID of the SQL warehouse
|
|
241
|
+
* The ID of the SQL warehouse.
|
|
217
242
|
*/
|
|
218
|
-
id
|
|
243
|
+
id?: pulumi.Input<string>;
|
|
219
244
|
instanceProfileArn?: pulumi.Input<string>;
|
|
220
245
|
/**
|
|
221
246
|
* JDBC connection string.
|
|
@@ -230,7 +255,7 @@ export interface GetSqlWarehouseOutputArgs {
|
|
|
230
255
|
*/
|
|
231
256
|
minNumClusters?: pulumi.Input<number>;
|
|
232
257
|
/**
|
|
233
|
-
* Name of the
|
|
258
|
+
* Name of the SQL warehouse to search (case-sensitive).
|
|
234
259
|
*/
|
|
235
260
|
name?: pulumi.Input<string>;
|
|
236
261
|
numClusters?: pulumi.Input<number>;
|
|
@@ -244,7 +269,7 @@ export interface GetSqlWarehouseOutputArgs {
|
|
|
244
269
|
spotInstancePolicy?: pulumi.Input<string>;
|
|
245
270
|
state?: pulumi.Input<string>;
|
|
246
271
|
/**
|
|
247
|
-
*
|
|
272
|
+
* tags used for SQL warehouse resources.
|
|
248
273
|
*/
|
|
249
274
|
tags?: pulumi.Input<inputs.GetSqlWarehouseTagsArgs>;
|
|
250
275
|
}
|