@pulumi/databricks 1.47.0-alpha.1721236148 → 1.47.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.
@@ -0,0 +1,121 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## Example Usage
4
+ *
5
+ * ```typescript
6
+ * import * as pulumi from "@pulumi/pulumi";
7
+ * import * as databricks from "@pulumi/databricks";
8
+ *
9
+ * const sandbox = new databricks.Catalog("sandbox", {
10
+ * name: "sandbox",
11
+ * isolationMode: "ISOLATED",
12
+ * });
13
+ * const sandboxWorkspaceBinding = new databricks.WorkspaceBinding("sandbox", {
14
+ * securableName: sandbox.name,
15
+ * workspaceId: other.workspaceId,
16
+ * });
17
+ * ```
18
+ *
19
+ * ## Import
20
+ *
21
+ * This resource can be imported by using combination of workspace ID, securable type and name:
22
+ *
23
+ * ```sh
24
+ * $ pulumi import databricks:index/workspaceBinding:WorkspaceBinding this "<workspace_id>|<securable_type>|<securable_name>"
25
+ * ```
26
+ */
27
+ export declare class WorkspaceBinding extends pulumi.CustomResource {
28
+ /**
29
+ * Get an existing WorkspaceBinding resource's state with the given name, ID, and optional extra
30
+ * properties used to qualify the lookup.
31
+ *
32
+ * @param name The _unique_ name of the resulting resource.
33
+ * @param id The _unique_ provider ID of the resource to lookup.
34
+ * @param state Any extra arguments used during the lookup.
35
+ * @param opts Optional settings to control the behavior of the CustomResource.
36
+ */
37
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WorkspaceBindingState, opts?: pulumi.CustomResourceOptions): WorkspaceBinding;
38
+ /**
39
+ * Returns true if the given object is an instance of WorkspaceBinding. This is designed to work even
40
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
41
+ */
42
+ static isInstance(obj: any): obj is WorkspaceBinding;
43
+ /**
44
+ * Binding mode. Default to `BINDING_TYPE_READ_WRITE`. For `catalog`, possible values are `BINDING_TYPE_READ_ONLY`, `BINDING_TYPE_READ_WRITE`. For `external-location` or `storage-credential`, no binding mode needs to be specified
45
+ */
46
+ readonly bindingType: pulumi.Output<string | undefined>;
47
+ /**
48
+ * @deprecated Please use 'securable_name' and 'securable_type instead.
49
+ */
50
+ readonly catalogName: pulumi.Output<string | undefined>;
51
+ /**
52
+ * Name of securable. Change forces creation of a new resource.
53
+ */
54
+ readonly securableName: pulumi.Output<string>;
55
+ /**
56
+ * Type of securable. Can be `catalog`, `external-locations` or `storage-credentials`. Default to `catalog`. Change forces creation of a new resource.
57
+ */
58
+ readonly securableType: pulumi.Output<string | undefined>;
59
+ /**
60
+ * ID of the workspace. Change forces creation of a new resource.
61
+ */
62
+ readonly workspaceId: pulumi.Output<string | undefined>;
63
+ /**
64
+ * Create a WorkspaceBinding resource with the given unique name, arguments, and options.
65
+ *
66
+ * @param name The _unique_ name of the resource.
67
+ * @param args The arguments to use to populate this resource's properties.
68
+ * @param opts A bag of options that control this resource's behavior.
69
+ */
70
+ constructor(name: string, args?: WorkspaceBindingArgs, opts?: pulumi.CustomResourceOptions);
71
+ }
72
+ /**
73
+ * Input properties used for looking up and filtering WorkspaceBinding resources.
74
+ */
75
+ export interface WorkspaceBindingState {
76
+ /**
77
+ * Binding mode. Default to `BINDING_TYPE_READ_WRITE`. For `catalog`, possible values are `BINDING_TYPE_READ_ONLY`, `BINDING_TYPE_READ_WRITE`. For `external-location` or `storage-credential`, no binding mode needs to be specified
78
+ */
79
+ bindingType?: pulumi.Input<string>;
80
+ /**
81
+ * @deprecated Please use 'securable_name' and 'securable_type instead.
82
+ */
83
+ catalogName?: pulumi.Input<string>;
84
+ /**
85
+ * Name of securable. Change forces creation of a new resource.
86
+ */
87
+ securableName?: pulumi.Input<string>;
88
+ /**
89
+ * Type of securable. Can be `catalog`, `external-locations` or `storage-credentials`. Default to `catalog`. Change forces creation of a new resource.
90
+ */
91
+ securableType?: pulumi.Input<string>;
92
+ /**
93
+ * ID of the workspace. Change forces creation of a new resource.
94
+ */
95
+ workspaceId?: pulumi.Input<string>;
96
+ }
97
+ /**
98
+ * The set of arguments for constructing a WorkspaceBinding resource.
99
+ */
100
+ export interface WorkspaceBindingArgs {
101
+ /**
102
+ * Binding mode. Default to `BINDING_TYPE_READ_WRITE`. For `catalog`, possible values are `BINDING_TYPE_READ_ONLY`, `BINDING_TYPE_READ_WRITE`. For `external-location` or `storage-credential`, no binding mode needs to be specified
103
+ */
104
+ bindingType?: pulumi.Input<string>;
105
+ /**
106
+ * @deprecated Please use 'securable_name' and 'securable_type instead.
107
+ */
108
+ catalogName?: pulumi.Input<string>;
109
+ /**
110
+ * Name of securable. Change forces creation of a new resource.
111
+ */
112
+ securableName?: pulumi.Input<string>;
113
+ /**
114
+ * Type of securable. Can be `catalog`, `external-locations` or `storage-credentials`. Default to `catalog`. Change forces creation of a new resource.
115
+ */
116
+ securableType?: pulumi.Input<string>;
117
+ /**
118
+ * ID of the workspace. Change forces creation of a new resource.
119
+ */
120
+ workspaceId?: pulumi.Input<string>;
121
+ }
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.WorkspaceBinding = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as databricks from "@pulumi/databricks";
14
+ *
15
+ * const sandbox = new databricks.Catalog("sandbox", {
16
+ * name: "sandbox",
17
+ * isolationMode: "ISOLATED",
18
+ * });
19
+ * const sandboxWorkspaceBinding = new databricks.WorkspaceBinding("sandbox", {
20
+ * securableName: sandbox.name,
21
+ * workspaceId: other.workspaceId,
22
+ * });
23
+ * ```
24
+ *
25
+ * ## Import
26
+ *
27
+ * This resource can be imported by using combination of workspace ID, securable type and name:
28
+ *
29
+ * ```sh
30
+ * $ pulumi import databricks:index/workspaceBinding:WorkspaceBinding this "<workspace_id>|<securable_type>|<securable_name>"
31
+ * ```
32
+ */
33
+ class WorkspaceBinding extends pulumi.CustomResource {
34
+ /**
35
+ * Get an existing WorkspaceBinding resource's state with the given name, ID, and optional extra
36
+ * properties used to qualify the lookup.
37
+ *
38
+ * @param name The _unique_ name of the resulting resource.
39
+ * @param id The _unique_ provider ID of the resource to lookup.
40
+ * @param state Any extra arguments used during the lookup.
41
+ * @param opts Optional settings to control the behavior of the CustomResource.
42
+ */
43
+ static get(name, id, state, opts) {
44
+ return new WorkspaceBinding(name, state, Object.assign(Object.assign({}, opts), { id: id }));
45
+ }
46
+ /**
47
+ * Returns true if the given object is an instance of WorkspaceBinding. This is designed to work even
48
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
49
+ */
50
+ static isInstance(obj) {
51
+ if (obj === undefined || obj === null) {
52
+ return false;
53
+ }
54
+ return obj['__pulumiType'] === WorkspaceBinding.__pulumiType;
55
+ }
56
+ constructor(name, argsOrState, opts) {
57
+ let resourceInputs = {};
58
+ opts = opts || {};
59
+ if (opts.id) {
60
+ const state = argsOrState;
61
+ resourceInputs["bindingType"] = state ? state.bindingType : undefined;
62
+ resourceInputs["catalogName"] = state ? state.catalogName : undefined;
63
+ resourceInputs["securableName"] = state ? state.securableName : undefined;
64
+ resourceInputs["securableType"] = state ? state.securableType : undefined;
65
+ resourceInputs["workspaceId"] = state ? state.workspaceId : undefined;
66
+ }
67
+ else {
68
+ const args = argsOrState;
69
+ resourceInputs["bindingType"] = args ? args.bindingType : undefined;
70
+ resourceInputs["catalogName"] = args ? args.catalogName : undefined;
71
+ resourceInputs["securableName"] = args ? args.securableName : undefined;
72
+ resourceInputs["securableType"] = args ? args.securableType : undefined;
73
+ resourceInputs["workspaceId"] = args ? args.workspaceId : undefined;
74
+ }
75
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
76
+ super(WorkspaceBinding.__pulumiType, name, resourceInputs, opts);
77
+ }
78
+ }
79
+ exports.WorkspaceBinding = WorkspaceBinding;
80
+ /** @internal */
81
+ WorkspaceBinding.__pulumiType = 'databricks:index/workspaceBinding:WorkspaceBinding';
82
+ //# sourceMappingURL=workspaceBinding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaceBinding.js","sourceRoot":"","sources":["../workspaceBinding.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,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,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;IA+BD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,C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