pulumi-databricks 1.75.0a1756323569__py3-none-any.whl → 1.77.0__py3-none-any.whl
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.
- pulumi_databricks/__init__.py +129 -46
- pulumi_databricks/_inputs.py +13377 -13798
- pulumi_databricks/account_federation_policy.py +473 -0
- pulumi_databricks/account_network_policy.py +12 -4
- pulumi_databricks/account_setting_v2.py +759 -0
- pulumi_databricks/alert_v2.py +223 -90
- pulumi_databricks/app.py +111 -4
- pulumi_databricks/apps_settings_custom_template.py +531 -0
- pulumi_databricks/budget_policy.py +28 -5
- pulumi_databricks/catalog.py +322 -2
- pulumi_databricks/cluster.py +47 -168
- pulumi_databricks/config/__init__.pyi +2 -0
- pulumi_databricks/config/vars.py +4 -0
- pulumi_databricks/connection.py +0 -34
- pulumi_databricks/data_quality_monitor.py +453 -0
- pulumi_databricks/data_quality_refresh.py +492 -0
- pulumi_databricks/database_database_catalog.py +8 -4
- pulumi_databricks/database_instance.py +354 -73
- pulumi_databricks/database_synced_database_table.py +52 -4
- pulumi_databricks/entitlements.py +21 -21
- pulumi_databricks/entity_tag_assignment.py +409 -0
- pulumi_databricks/external_metadata.py +15 -11
- pulumi_databricks/feature_engineering_feature.py +480 -0
- pulumi_databricks/feature_engineering_materialized_feature.py +397 -0
- pulumi_databricks/get_account_federation_policies.py +127 -0
- pulumi_databricks/get_account_federation_policy.py +214 -0
- pulumi_databricks/get_account_network_policies.py +4 -0
- pulumi_databricks/get_account_network_policy.py +17 -18
- pulumi_databricks/get_account_setting_v2.py +331 -0
- pulumi_databricks/get_alert_v2.py +78 -70
- pulumi_databricks/get_alerts_v2.py +31 -12
- pulumi_databricks/get_app.py +21 -9
- pulumi_databricks/get_apps.py +22 -10
- pulumi_databricks/get_apps_settings_custom_template.py +207 -0
- pulumi_databricks/get_apps_settings_custom_templates.py +133 -0
- pulumi_databricks/get_aws_bucket_policy.py +6 -6
- pulumi_databricks/get_budget_policies.py +70 -6
- pulumi_databricks/get_budget_policy.py +35 -30
- pulumi_databricks/get_catalog.py +21 -4
- pulumi_databricks/get_catalogs.py +23 -4
- pulumi_databricks/get_cluster.py +21 -4
- pulumi_databricks/get_cluster_policy.py +23 -4
- pulumi_databricks/get_clusters.py +21 -4
- pulumi_databricks/get_current_metastore.py +21 -4
- pulumi_databricks/get_dashboards.py +24 -4
- pulumi_databricks/get_data_quality_monitor.py +210 -0
- pulumi_databricks/get_data_quality_monitors.py +143 -0
- pulumi_databricks/get_data_quality_refresh.py +270 -0
- pulumi_databricks/get_data_quality_refreshes.py +207 -0
- pulumi_databricks/get_database_database_catalog.py +6 -20
- pulumi_databricks/get_database_database_catalogs.py +46 -8
- pulumi_databricks/get_database_instance.py +122 -75
- pulumi_databricks/get_database_instances.py +31 -6
- pulumi_databricks/get_database_synced_database_table.py +7 -28
- pulumi_databricks/get_database_synced_database_tables.py +43 -5
- pulumi_databricks/get_directory.py +20 -1
- pulumi_databricks/get_entity_tag_assignment.py +202 -0
- pulumi_databricks/get_entity_tag_assignments.py +187 -0
- pulumi_databricks/get_external_location.py +21 -4
- pulumi_databricks/get_external_locations.py +23 -4
- pulumi_databricks/get_external_metadata.py +12 -50
- pulumi_databricks/get_external_metadatas.py +55 -6
- pulumi_databricks/get_feature_engineering_feature.py +179 -0
- pulumi_databricks/get_feature_engineering_features.py +103 -0
- pulumi_databricks/get_feature_engineering_materialized_feature.py +180 -0
- pulumi_databricks/get_feature_engineering_materialized_features.py +123 -0
- pulumi_databricks/get_functions.py +16 -1
- pulumi_databricks/get_instance_profiles.py +21 -4
- pulumi_databricks/get_jobs.py +23 -4
- pulumi_databricks/get_materialized_features_feature_tag.py +3 -11
- pulumi_databricks/get_materialized_features_feature_tags.py +59 -8
- pulumi_databricks/get_metastore.py +2 -2
- pulumi_databricks/get_mlflow_experiment.py +18 -1
- pulumi_databricks/get_mlflow_model.py +18 -1
- pulumi_databricks/get_mlflow_models.py +23 -4
- pulumi_databricks/get_node_type.py +42 -5
- pulumi_databricks/get_notification_destinations.py +17 -1
- pulumi_databricks/get_online_store.py +7 -17
- pulumi_databricks/get_online_stores.py +29 -8
- pulumi_databricks/get_pipelines.py +23 -4
- pulumi_databricks/get_policy_info.py +28 -99
- pulumi_databricks/get_policy_infos.py +92 -5
- pulumi_databricks/get_quality_monitor_v2.py +4 -0
- pulumi_databricks/get_quality_monitors_v2.py +22 -3
- pulumi_databricks/get_registered_model.py +19 -4
- pulumi_databricks/get_registered_model_versions.py +19 -4
- pulumi_databricks/get_rfa_access_request_destinations.py +126 -0
- pulumi_databricks/get_schema.py +18 -1
- pulumi_databricks/get_schemas.py +23 -4
- pulumi_databricks/get_service_principal_federation_policies.py +151 -0
- pulumi_databricks/get_service_principal_federation_policy.py +220 -0
- pulumi_databricks/get_serving_endpoints.py +19 -4
- pulumi_databricks/get_share.py +117 -18
- pulumi_databricks/get_shares.py +22 -3
- pulumi_databricks/get_spark_version.py +20 -1
- pulumi_databricks/get_sql_warehouse.py +16 -1
- pulumi_databricks/get_sql_warehouses.py +20 -1
- pulumi_databricks/get_storage_credential.py +18 -1
- pulumi_databricks/get_storage_credentials.py +23 -4
- pulumi_databricks/get_table.py +18 -1
- pulumi_databricks/get_tables.py +20 -1
- pulumi_databricks/get_tag_policies.py +139 -0
- pulumi_databricks/get_tag_policy.py +175 -0
- pulumi_databricks/get_views.py +20 -1
- pulumi_databricks/get_volume.py +18 -1
- pulumi_databricks/get_volumes.py +20 -1
- pulumi_databricks/get_workspace_network_option.py +8 -16
- pulumi_databricks/get_workspace_setting_v2.py +331 -0
- pulumi_databricks/get_zones.py +20 -1
- pulumi_databricks/git_credential.py +54 -7
- pulumi_databricks/grant.py +2 -2
- pulumi_databricks/group.py +21 -21
- pulumi_databricks/job.py +47 -0
- pulumi_databricks/library.py +165 -0
- pulumi_databricks/materialized_features_feature_tag.py +8 -4
- pulumi_databricks/mws_ncc_private_endpoint_rule.py +7 -7
- pulumi_databricks/mws_permission_assignment.py +16 -16
- pulumi_databricks/mws_storage_configurations.py +6 -6
- pulumi_databricks/mws_workspaces.py +76 -29
- pulumi_databricks/online_store.py +8 -4
- pulumi_databricks/outputs.py +26397 -22382
- pulumi_databricks/permission_assignment.py +266 -24
- pulumi_databricks/pipeline.py +37 -3
- pulumi_databricks/policy_info.py +43 -39
- pulumi_databricks/provider.py +15 -0
- pulumi_databricks/pulumi-plugin.json +1 -1
- pulumi_databricks/quality_monitor.py +47 -0
- pulumi_databricks/quality_monitor_v2.py +8 -4
- pulumi_databricks/registered_model.py +301 -29
- pulumi_databricks/rfa_access_request_destinations.py +286 -0
- pulumi_databricks/service_principal_federation_policy.py +469 -0
- pulumi_databricks/share.py +71 -84
- pulumi_databricks/sql_endpoint.py +47 -0
- pulumi_databricks/sql_table.py +35 -7
- pulumi_databricks/storage_credential.py +59 -6
- pulumi_databricks/tag_policy.py +357 -0
- pulumi_databricks/user.py +21 -21
- pulumi_databricks/workspace_binding.py +0 -48
- pulumi_databricks/workspace_network_option.py +8 -4
- pulumi_databricks/workspace_setting_v2.py +759 -0
- {pulumi_databricks-1.75.0a1756323569.dist-info → pulumi_databricks-1.77.0.dist-info}/METADATA +1 -1
- pulumi_databricks-1.77.0.dist-info/RECORD +250 -0
- pulumi_databricks/clean_room_asset.py +0 -891
- pulumi_databricks/clean_room_auto_approval_rule.py +0 -426
- pulumi_databricks/clean_rooms_clean_room.py +0 -518
- pulumi_databricks/get_clean_room_asset.py +0 -399
- pulumi_databricks/get_clean_room_asset_revisions_clean_room_asset.py +0 -375
- pulumi_databricks/get_clean_room_asset_revisions_clean_room_assets.py +0 -82
- pulumi_databricks/get_clean_room_assets.py +0 -104
- pulumi_databricks/get_clean_room_auto_approval_rule.py +0 -200
- pulumi_databricks/get_clean_room_auto_approval_rules.py +0 -82
- pulumi_databricks/get_clean_rooms_clean_room.py +0 -272
- pulumi_databricks/get_clean_rooms_clean_rooms.py +0 -104
- pulumi_databricks/get_recipient_federation_policies.py +0 -82
- pulumi_databricks/get_recipient_federation_policy.py +0 -165
- pulumi_databricks/recipient_federation_policy.py +0 -346
- pulumi_databricks-1.75.0a1756323569.dist-info/RECORD +0 -231
- {pulumi_databricks-1.75.0a1756323569.dist-info → pulumi_databricks-1.77.0.dist-info}/WHEEL +0 -0
- {pulumi_databricks-1.75.0a1756323569.dist-info → pulumi_databricks-1.77.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetAppsSettingsCustomTemplateResult',
|
|
20
|
+
'AwaitableGetAppsSettingsCustomTemplateResult',
|
|
21
|
+
'get_apps_settings_custom_template',
|
|
22
|
+
'get_apps_settings_custom_template_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetAppsSettingsCustomTemplateResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getAppsSettingsCustomTemplate.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, creator=None, description=None, git_provider=None, git_repo=None, id=None, manifest=None, name=None, path=None):
|
|
31
|
+
if creator and not isinstance(creator, str):
|
|
32
|
+
raise TypeError("Expected argument 'creator' to be a str")
|
|
33
|
+
pulumi.set(__self__, "creator", creator)
|
|
34
|
+
if description and not isinstance(description, str):
|
|
35
|
+
raise TypeError("Expected argument 'description' to be a str")
|
|
36
|
+
pulumi.set(__self__, "description", description)
|
|
37
|
+
if git_provider and not isinstance(git_provider, str):
|
|
38
|
+
raise TypeError("Expected argument 'git_provider' to be a str")
|
|
39
|
+
pulumi.set(__self__, "git_provider", git_provider)
|
|
40
|
+
if git_repo and not isinstance(git_repo, str):
|
|
41
|
+
raise TypeError("Expected argument 'git_repo' to be a str")
|
|
42
|
+
pulumi.set(__self__, "git_repo", git_repo)
|
|
43
|
+
if id and not isinstance(id, str):
|
|
44
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
45
|
+
pulumi.set(__self__, "id", id)
|
|
46
|
+
if manifest and not isinstance(manifest, dict):
|
|
47
|
+
raise TypeError("Expected argument 'manifest' to be a dict")
|
|
48
|
+
pulumi.set(__self__, "manifest", manifest)
|
|
49
|
+
if name and not isinstance(name, str):
|
|
50
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
51
|
+
pulumi.set(__self__, "name", name)
|
|
52
|
+
if path and not isinstance(path, str):
|
|
53
|
+
raise TypeError("Expected argument 'path' to be a str")
|
|
54
|
+
pulumi.set(__self__, "path", path)
|
|
55
|
+
|
|
56
|
+
@_builtins.property
|
|
57
|
+
@pulumi.getter
|
|
58
|
+
def creator(self) -> _builtins.str:
|
|
59
|
+
"""
|
|
60
|
+
(string)
|
|
61
|
+
"""
|
|
62
|
+
return pulumi.get(self, "creator")
|
|
63
|
+
|
|
64
|
+
@_builtins.property
|
|
65
|
+
@pulumi.getter
|
|
66
|
+
def description(self) -> _builtins.str:
|
|
67
|
+
"""
|
|
68
|
+
(string) - Description of the App Resource
|
|
69
|
+
"""
|
|
70
|
+
return pulumi.get(self, "description")
|
|
71
|
+
|
|
72
|
+
@_builtins.property
|
|
73
|
+
@pulumi.getter(name="gitProvider")
|
|
74
|
+
def git_provider(self) -> _builtins.str:
|
|
75
|
+
"""
|
|
76
|
+
(string) - The Git provider of the template
|
|
77
|
+
"""
|
|
78
|
+
return pulumi.get(self, "git_provider")
|
|
79
|
+
|
|
80
|
+
@_builtins.property
|
|
81
|
+
@pulumi.getter(name="gitRepo")
|
|
82
|
+
def git_repo(self) -> _builtins.str:
|
|
83
|
+
"""
|
|
84
|
+
(string) - The Git repository URL that the template resides in
|
|
85
|
+
"""
|
|
86
|
+
return pulumi.get(self, "git_repo")
|
|
87
|
+
|
|
88
|
+
@_builtins.property
|
|
89
|
+
@pulumi.getter
|
|
90
|
+
def id(self) -> _builtins.str:
|
|
91
|
+
"""
|
|
92
|
+
The provider-assigned unique ID for this managed resource.
|
|
93
|
+
"""
|
|
94
|
+
return pulumi.get(self, "id")
|
|
95
|
+
|
|
96
|
+
@_builtins.property
|
|
97
|
+
@pulumi.getter
|
|
98
|
+
def manifest(self) -> 'outputs.GetAppsSettingsCustomTemplateManifestResult':
|
|
99
|
+
"""
|
|
100
|
+
(AppManifest) - The manifest of the template. It defines fields and default values when installing the template
|
|
101
|
+
"""
|
|
102
|
+
return pulumi.get(self, "manifest")
|
|
103
|
+
|
|
104
|
+
@_builtins.property
|
|
105
|
+
@pulumi.getter
|
|
106
|
+
def name(self) -> _builtins.str:
|
|
107
|
+
"""
|
|
108
|
+
(string) - Name of the App Resource
|
|
109
|
+
"""
|
|
110
|
+
return pulumi.get(self, "name")
|
|
111
|
+
|
|
112
|
+
@_builtins.property
|
|
113
|
+
@pulumi.getter
|
|
114
|
+
def path(self) -> _builtins.str:
|
|
115
|
+
"""
|
|
116
|
+
(string) - The path to the template within the Git repository
|
|
117
|
+
"""
|
|
118
|
+
return pulumi.get(self, "path")
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
class AwaitableGetAppsSettingsCustomTemplateResult(GetAppsSettingsCustomTemplateResult):
|
|
122
|
+
# pylint: disable=using-constant-test
|
|
123
|
+
def __await__(self):
|
|
124
|
+
if False:
|
|
125
|
+
yield self
|
|
126
|
+
return GetAppsSettingsCustomTemplateResult(
|
|
127
|
+
creator=self.creator,
|
|
128
|
+
description=self.description,
|
|
129
|
+
git_provider=self.git_provider,
|
|
130
|
+
git_repo=self.git_repo,
|
|
131
|
+
id=self.id,
|
|
132
|
+
manifest=self.manifest,
|
|
133
|
+
name=self.name,
|
|
134
|
+
path=self.path)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
def get_apps_settings_custom_template(name: Optional[_builtins.str] = None,
|
|
138
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAppsSettingsCustomTemplateResult:
|
|
139
|
+
"""
|
|
140
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
141
|
+
|
|
142
|
+
This data source can be used to get a single Custom Template.
|
|
143
|
+
|
|
144
|
+
## Example Usage
|
|
145
|
+
|
|
146
|
+
Referring to a Custom Template by name:
|
|
147
|
+
|
|
148
|
+
```python
|
|
149
|
+
import pulumi
|
|
150
|
+
import pulumi_databricks as databricks
|
|
151
|
+
|
|
152
|
+
my_template = databricks.get_apps_settings_custom_template(name="my-custom-template")
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:param _builtins.str name: The name of the template. It must contain only alphanumeric characters, hyphens, underscores, and whitespaces.
|
|
157
|
+
It must be unique within the workspace
|
|
158
|
+
"""
|
|
159
|
+
__args__ = dict()
|
|
160
|
+
__args__['name'] = name
|
|
161
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
162
|
+
__ret__ = pulumi.runtime.invoke('databricks:index/getAppsSettingsCustomTemplate:getAppsSettingsCustomTemplate', __args__, opts=opts, typ=GetAppsSettingsCustomTemplateResult).value
|
|
163
|
+
|
|
164
|
+
return AwaitableGetAppsSettingsCustomTemplateResult(
|
|
165
|
+
creator=pulumi.get(__ret__, 'creator'),
|
|
166
|
+
description=pulumi.get(__ret__, 'description'),
|
|
167
|
+
git_provider=pulumi.get(__ret__, 'git_provider'),
|
|
168
|
+
git_repo=pulumi.get(__ret__, 'git_repo'),
|
|
169
|
+
id=pulumi.get(__ret__, 'id'),
|
|
170
|
+
manifest=pulumi.get(__ret__, 'manifest'),
|
|
171
|
+
name=pulumi.get(__ret__, 'name'),
|
|
172
|
+
path=pulumi.get(__ret__, 'path'))
|
|
173
|
+
def get_apps_settings_custom_template_output(name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
174
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAppsSettingsCustomTemplateResult]:
|
|
175
|
+
"""
|
|
176
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
177
|
+
|
|
178
|
+
This data source can be used to get a single Custom Template.
|
|
179
|
+
|
|
180
|
+
## Example Usage
|
|
181
|
+
|
|
182
|
+
Referring to a Custom Template by name:
|
|
183
|
+
|
|
184
|
+
```python
|
|
185
|
+
import pulumi
|
|
186
|
+
import pulumi_databricks as databricks
|
|
187
|
+
|
|
188
|
+
my_template = databricks.get_apps_settings_custom_template(name="my-custom-template")
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
:param _builtins.str name: The name of the template. It must contain only alphanumeric characters, hyphens, underscores, and whitespaces.
|
|
193
|
+
It must be unique within the workspace
|
|
194
|
+
"""
|
|
195
|
+
__args__ = dict()
|
|
196
|
+
__args__['name'] = name
|
|
197
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
198
|
+
__ret__ = pulumi.runtime.invoke_output('databricks:index/getAppsSettingsCustomTemplate:getAppsSettingsCustomTemplate', __args__, opts=opts, typ=GetAppsSettingsCustomTemplateResult)
|
|
199
|
+
return __ret__.apply(lambda __response__: GetAppsSettingsCustomTemplateResult(
|
|
200
|
+
creator=pulumi.get(__response__, 'creator'),
|
|
201
|
+
description=pulumi.get(__response__, 'description'),
|
|
202
|
+
git_provider=pulumi.get(__response__, 'git_provider'),
|
|
203
|
+
git_repo=pulumi.get(__response__, 'git_repo'),
|
|
204
|
+
id=pulumi.get(__response__, 'id'),
|
|
205
|
+
manifest=pulumi.get(__response__, 'manifest'),
|
|
206
|
+
name=pulumi.get(__response__, 'name'),
|
|
207
|
+
path=pulumi.get(__response__, 'path')))
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetAppsSettingsCustomTemplatesResult',
|
|
20
|
+
'AwaitableGetAppsSettingsCustomTemplatesResult',
|
|
21
|
+
'get_apps_settings_custom_templates',
|
|
22
|
+
'get_apps_settings_custom_templates_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetAppsSettingsCustomTemplatesResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getAppsSettingsCustomTemplates.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, id=None, page_size=None, templates=None):
|
|
31
|
+
if id and not isinstance(id, str):
|
|
32
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
33
|
+
pulumi.set(__self__, "id", id)
|
|
34
|
+
if page_size and not isinstance(page_size, int):
|
|
35
|
+
raise TypeError("Expected argument 'page_size' to be a int")
|
|
36
|
+
pulumi.set(__self__, "page_size", page_size)
|
|
37
|
+
if templates and not isinstance(templates, list):
|
|
38
|
+
raise TypeError("Expected argument 'templates' to be a list")
|
|
39
|
+
pulumi.set(__self__, "templates", templates)
|
|
40
|
+
|
|
41
|
+
@_builtins.property
|
|
42
|
+
@pulumi.getter
|
|
43
|
+
def id(self) -> _builtins.str:
|
|
44
|
+
"""
|
|
45
|
+
The provider-assigned unique ID for this managed resource.
|
|
46
|
+
"""
|
|
47
|
+
return pulumi.get(self, "id")
|
|
48
|
+
|
|
49
|
+
@_builtins.property
|
|
50
|
+
@pulumi.getter(name="pageSize")
|
|
51
|
+
def page_size(self) -> Optional[_builtins.int]:
|
|
52
|
+
return pulumi.get(self, "page_size")
|
|
53
|
+
|
|
54
|
+
@_builtins.property
|
|
55
|
+
@pulumi.getter
|
|
56
|
+
def templates(self) -> Sequence['outputs.GetAppsSettingsCustomTemplatesTemplateResult']:
|
|
57
|
+
return pulumi.get(self, "templates")
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
class AwaitableGetAppsSettingsCustomTemplatesResult(GetAppsSettingsCustomTemplatesResult):
|
|
61
|
+
# pylint: disable=using-constant-test
|
|
62
|
+
def __await__(self):
|
|
63
|
+
if False:
|
|
64
|
+
yield self
|
|
65
|
+
return GetAppsSettingsCustomTemplatesResult(
|
|
66
|
+
id=self.id,
|
|
67
|
+
page_size=self.page_size,
|
|
68
|
+
templates=self.templates)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def get_apps_settings_custom_templates(page_size: Optional[_builtins.int] = None,
|
|
72
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAppsSettingsCustomTemplatesResult:
|
|
73
|
+
"""
|
|
74
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
75
|
+
|
|
76
|
+
This data source can be used to fetch the list of Custom Templates within the workspace.
|
|
77
|
+
The list can then be accessed via the data object's `templates` field.
|
|
78
|
+
|
|
79
|
+
## Example Usage
|
|
80
|
+
|
|
81
|
+
Getting a list of all Custom Templates:
|
|
82
|
+
|
|
83
|
+
```python
|
|
84
|
+
import pulumi
|
|
85
|
+
import pulumi_databricks as databricks
|
|
86
|
+
|
|
87
|
+
all = databricks.get_apps_settings_custom_templates()
|
|
88
|
+
pulumi.export("allCustomTemplates", all.templates)
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
:param _builtins.int page_size: Upper bound for items returned
|
|
93
|
+
"""
|
|
94
|
+
__args__ = dict()
|
|
95
|
+
__args__['pageSize'] = page_size
|
|
96
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
97
|
+
__ret__ = pulumi.runtime.invoke('databricks:index/getAppsSettingsCustomTemplates:getAppsSettingsCustomTemplates', __args__, opts=opts, typ=GetAppsSettingsCustomTemplatesResult).value
|
|
98
|
+
|
|
99
|
+
return AwaitableGetAppsSettingsCustomTemplatesResult(
|
|
100
|
+
id=pulumi.get(__ret__, 'id'),
|
|
101
|
+
page_size=pulumi.get(__ret__, 'page_size'),
|
|
102
|
+
templates=pulumi.get(__ret__, 'templates'))
|
|
103
|
+
def get_apps_settings_custom_templates_output(page_size: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
104
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAppsSettingsCustomTemplatesResult]:
|
|
105
|
+
"""
|
|
106
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
107
|
+
|
|
108
|
+
This data source can be used to fetch the list of Custom Templates within the workspace.
|
|
109
|
+
The list can then be accessed via the data object's `templates` field.
|
|
110
|
+
|
|
111
|
+
## Example Usage
|
|
112
|
+
|
|
113
|
+
Getting a list of all Custom Templates:
|
|
114
|
+
|
|
115
|
+
```python
|
|
116
|
+
import pulumi
|
|
117
|
+
import pulumi_databricks as databricks
|
|
118
|
+
|
|
119
|
+
all = databricks.get_apps_settings_custom_templates()
|
|
120
|
+
pulumi.export("allCustomTemplates", all.templates)
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
:param _builtins.int page_size: Upper bound for items returned
|
|
125
|
+
"""
|
|
126
|
+
__args__ = dict()
|
|
127
|
+
__args__['pageSize'] = page_size
|
|
128
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
129
|
+
__ret__ = pulumi.runtime.invoke_output('databricks:index/getAppsSettingsCustomTemplates:getAppsSettingsCustomTemplates', __args__, opts=opts, typ=GetAppsSettingsCustomTemplatesResult)
|
|
130
|
+
return __ret__.apply(lambda __response__: GetAppsSettingsCustomTemplatesResult(
|
|
131
|
+
id=pulumi.get(__response__, 'id'),
|
|
132
|
+
page_size=pulumi.get(__response__, 'page_size'),
|
|
133
|
+
templates=pulumi.get(__response__, 'templates')))
|
|
@@ -125,12 +125,12 @@ def get_aws_bucket_policy(aws_partition: Optional[_builtins.str] = None,
|
|
|
125
125
|
import pulumi_aws as aws
|
|
126
126
|
import pulumi_databricks as databricks
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
this_bucket = aws.s3.Bucket("this",
|
|
129
129
|
bucket="<unique_bucket_name>",
|
|
130
130
|
force_destroy=True)
|
|
131
|
-
this = databricks.get_aws_bucket_policy_output(bucket=
|
|
131
|
+
this = databricks.get_aws_bucket_policy_output(bucket=this_bucket.bucket)
|
|
132
132
|
this_bucket_policy = aws.s3.BucketPolicy("this",
|
|
133
|
-
bucket=
|
|
133
|
+
bucket=this_bucket.id,
|
|
134
134
|
policy=this.json)
|
|
135
135
|
```
|
|
136
136
|
|
|
@@ -177,12 +177,12 @@ def get_aws_bucket_policy_output(aws_partition: Optional[pulumi.Input[Optional[_
|
|
|
177
177
|
import pulumi_aws as aws
|
|
178
178
|
import pulumi_databricks as databricks
|
|
179
179
|
|
|
180
|
-
|
|
180
|
+
this_bucket = aws.s3.Bucket("this",
|
|
181
181
|
bucket="<unique_bucket_name>",
|
|
182
182
|
force_destroy=True)
|
|
183
|
-
this = databricks.get_aws_bucket_policy_output(bucket=
|
|
183
|
+
this = databricks.get_aws_bucket_policy_output(bucket=this_bucket.bucket)
|
|
184
184
|
this_bucket_policy = aws.s3.BucketPolicy("this",
|
|
185
|
-
bucket=
|
|
185
|
+
bucket=this_bucket.id,
|
|
186
186
|
policy=this.json)
|
|
187
187
|
```
|
|
188
188
|
|
|
@@ -14,6 +14,7 @@ else:
|
|
|
14
14
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
15
|
from . import _utilities
|
|
16
16
|
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
17
18
|
|
|
18
19
|
__all__ = [
|
|
19
20
|
'GetBudgetPoliciesResult',
|
|
@@ -27,13 +28,27 @@ class GetBudgetPoliciesResult:
|
|
|
27
28
|
"""
|
|
28
29
|
A collection of values returned by getBudgetPolicies.
|
|
29
30
|
"""
|
|
30
|
-
def __init__(__self__, id=None, policies=None):
|
|
31
|
+
def __init__(__self__, filter_by=None, id=None, page_size=None, policies=None, sort_spec=None):
|
|
32
|
+
if filter_by and not isinstance(filter_by, dict):
|
|
33
|
+
raise TypeError("Expected argument 'filter_by' to be a dict")
|
|
34
|
+
pulumi.set(__self__, "filter_by", filter_by)
|
|
31
35
|
if id and not isinstance(id, str):
|
|
32
36
|
raise TypeError("Expected argument 'id' to be a str")
|
|
33
37
|
pulumi.set(__self__, "id", id)
|
|
38
|
+
if page_size and not isinstance(page_size, int):
|
|
39
|
+
raise TypeError("Expected argument 'page_size' to be a int")
|
|
40
|
+
pulumi.set(__self__, "page_size", page_size)
|
|
34
41
|
if policies and not isinstance(policies, list):
|
|
35
42
|
raise TypeError("Expected argument 'policies' to be a list")
|
|
36
43
|
pulumi.set(__self__, "policies", policies)
|
|
44
|
+
if sort_spec and not isinstance(sort_spec, dict):
|
|
45
|
+
raise TypeError("Expected argument 'sort_spec' to be a dict")
|
|
46
|
+
pulumi.set(__self__, "sort_spec", sort_spec)
|
|
47
|
+
|
|
48
|
+
@_builtins.property
|
|
49
|
+
@pulumi.getter(name="filterBy")
|
|
50
|
+
def filter_by(self) -> Optional['outputs.GetBudgetPoliciesFilterByResult']:
|
|
51
|
+
return pulumi.get(self, "filter_by")
|
|
37
52
|
|
|
38
53
|
@_builtins.property
|
|
39
54
|
@pulumi.getter
|
|
@@ -43,11 +58,21 @@ class GetBudgetPoliciesResult:
|
|
|
43
58
|
"""
|
|
44
59
|
return pulumi.get(self, "id")
|
|
45
60
|
|
|
61
|
+
@_builtins.property
|
|
62
|
+
@pulumi.getter(name="pageSize")
|
|
63
|
+
def page_size(self) -> Optional[_builtins.int]:
|
|
64
|
+
return pulumi.get(self, "page_size")
|
|
65
|
+
|
|
46
66
|
@_builtins.property
|
|
47
67
|
@pulumi.getter
|
|
48
68
|
def policies(self) -> Sequence['outputs.GetBudgetPoliciesPolicyResult']:
|
|
49
69
|
return pulumi.get(self, "policies")
|
|
50
70
|
|
|
71
|
+
@_builtins.property
|
|
72
|
+
@pulumi.getter(name="sortSpec")
|
|
73
|
+
def sort_spec(self) -> Optional['outputs.GetBudgetPoliciesSortSpecResult']:
|
|
74
|
+
return pulumi.get(self, "sort_spec")
|
|
75
|
+
|
|
51
76
|
|
|
52
77
|
class AwaitableGetBudgetPoliciesResult(GetBudgetPoliciesResult):
|
|
53
78
|
# pylint: disable=using-constant-test
|
|
@@ -55,12 +80,20 @@ class AwaitableGetBudgetPoliciesResult(GetBudgetPoliciesResult):
|
|
|
55
80
|
if False:
|
|
56
81
|
yield self
|
|
57
82
|
return GetBudgetPoliciesResult(
|
|
83
|
+
filter_by=self.filter_by,
|
|
58
84
|
id=self.id,
|
|
59
|
-
|
|
85
|
+
page_size=self.page_size,
|
|
86
|
+
policies=self.policies,
|
|
87
|
+
sort_spec=self.sort_spec)
|
|
60
88
|
|
|
61
89
|
|
|
62
|
-
def get_budget_policies(
|
|
90
|
+
def get_budget_policies(filter_by: Optional[Union['GetBudgetPoliciesFilterByArgs', 'GetBudgetPoliciesFilterByArgsDict']] = None,
|
|
91
|
+
page_size: Optional[_builtins.int] = None,
|
|
92
|
+
sort_spec: Optional[Union['GetBudgetPoliciesSortSpecArgs', 'GetBudgetPoliciesSortSpecArgsDict']] = None,
|
|
93
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetBudgetPoliciesResult:
|
|
63
94
|
"""
|
|
95
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
96
|
+
|
|
64
97
|
This data source can be used to fetch the list of budget policies.
|
|
65
98
|
|
|
66
99
|
> **Note** This data source can only be used with an account-level provider!
|
|
@@ -75,16 +108,34 @@ def get_budget_policies(opts: Optional[pulumi.InvokeOptions] = None) -> Awaitabl
|
|
|
75
108
|
|
|
76
109
|
all = databricks.get_budget_policies()
|
|
77
110
|
```
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
:param Union['GetBudgetPoliciesFilterByArgs', 'GetBudgetPoliciesFilterByArgsDict'] filter_by: A filter to apply to the list of policies
|
|
114
|
+
:param _builtins.int page_size: The maximum number of budget policies to return.
|
|
115
|
+
If unspecified, at most 100 budget policies will be returned.
|
|
116
|
+
The maximum value is 1000; values above 1000 will be coerced to 1000
|
|
117
|
+
:param Union['GetBudgetPoliciesSortSpecArgs', 'GetBudgetPoliciesSortSpecArgsDict'] sort_spec: The sort specification
|
|
78
118
|
"""
|
|
79
119
|
__args__ = dict()
|
|
120
|
+
__args__['filterBy'] = filter_by
|
|
121
|
+
__args__['pageSize'] = page_size
|
|
122
|
+
__args__['sortSpec'] = sort_spec
|
|
80
123
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
81
124
|
__ret__ = pulumi.runtime.invoke('databricks:index/getBudgetPolicies:getBudgetPolicies', __args__, opts=opts, typ=GetBudgetPoliciesResult).value
|
|
82
125
|
|
|
83
126
|
return AwaitableGetBudgetPoliciesResult(
|
|
127
|
+
filter_by=pulumi.get(__ret__, 'filter_by'),
|
|
84
128
|
id=pulumi.get(__ret__, 'id'),
|
|
85
|
-
|
|
86
|
-
|
|
129
|
+
page_size=pulumi.get(__ret__, 'page_size'),
|
|
130
|
+
policies=pulumi.get(__ret__, 'policies'),
|
|
131
|
+
sort_spec=pulumi.get(__ret__, 'sort_spec'))
|
|
132
|
+
def get_budget_policies_output(filter_by: Optional[pulumi.Input[Optional[Union['GetBudgetPoliciesFilterByArgs', 'GetBudgetPoliciesFilterByArgsDict']]]] = None,
|
|
133
|
+
page_size: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
134
|
+
sort_spec: Optional[pulumi.Input[Optional[Union['GetBudgetPoliciesSortSpecArgs', 'GetBudgetPoliciesSortSpecArgsDict']]]] = None,
|
|
135
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetBudgetPoliciesResult]:
|
|
87
136
|
"""
|
|
137
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
138
|
+
|
|
88
139
|
This data source can be used to fetch the list of budget policies.
|
|
89
140
|
|
|
90
141
|
> **Note** This data source can only be used with an account-level provider!
|
|
@@ -99,10 +150,23 @@ def get_budget_policies_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi
|
|
|
99
150
|
|
|
100
151
|
all = databricks.get_budget_policies()
|
|
101
152
|
```
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
:param Union['GetBudgetPoliciesFilterByArgs', 'GetBudgetPoliciesFilterByArgsDict'] filter_by: A filter to apply to the list of policies
|
|
156
|
+
:param _builtins.int page_size: The maximum number of budget policies to return.
|
|
157
|
+
If unspecified, at most 100 budget policies will be returned.
|
|
158
|
+
The maximum value is 1000; values above 1000 will be coerced to 1000
|
|
159
|
+
:param Union['GetBudgetPoliciesSortSpecArgs', 'GetBudgetPoliciesSortSpecArgsDict'] sort_spec: The sort specification
|
|
102
160
|
"""
|
|
103
161
|
__args__ = dict()
|
|
162
|
+
__args__['filterBy'] = filter_by
|
|
163
|
+
__args__['pageSize'] = page_size
|
|
164
|
+
__args__['sortSpec'] = sort_spec
|
|
104
165
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
105
166
|
__ret__ = pulumi.runtime.invoke_output('databricks:index/getBudgetPolicies:getBudgetPolicies', __args__, opts=opts, typ=GetBudgetPoliciesResult)
|
|
106
167
|
return __ret__.apply(lambda __response__: GetBudgetPoliciesResult(
|
|
168
|
+
filter_by=pulumi.get(__response__, 'filter_by'),
|
|
107
169
|
id=pulumi.get(__response__, 'id'),
|
|
108
|
-
|
|
170
|
+
page_size=pulumi.get(__response__, 'page_size'),
|
|
171
|
+
policies=pulumi.get(__response__, 'policies'),
|
|
172
|
+
sort_spec=pulumi.get(__response__, 'sort_spec')))
|
|
@@ -14,7 +14,6 @@ else:
|
|
|
14
14
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
15
|
from . import _utilities
|
|
16
16
|
from . import outputs
|
|
17
|
-
from ._inputs import *
|
|
18
17
|
|
|
19
18
|
__all__ = [
|
|
20
19
|
'GetBudgetPolicyResult',
|
|
@@ -47,7 +46,7 @@ class GetBudgetPolicyResult:
|
|
|
47
46
|
|
|
48
47
|
@_builtins.property
|
|
49
48
|
@pulumi.getter(name="bindingWorkspaceIds")
|
|
50
|
-
def binding_workspace_ids(self) ->
|
|
49
|
+
def binding_workspace_ids(self) -> Sequence[_builtins.int]:
|
|
51
50
|
"""
|
|
52
51
|
(list of integer) - List of workspaces that this budget policy will be exclusively bound to.
|
|
53
52
|
An empty binding implies that this budget policy is open to any workspace in the account
|
|
@@ -56,7 +55,7 @@ class GetBudgetPolicyResult:
|
|
|
56
55
|
|
|
57
56
|
@_builtins.property
|
|
58
57
|
@pulumi.getter(name="customTags")
|
|
59
|
-
def custom_tags(self) ->
|
|
58
|
+
def custom_tags(self) -> Sequence['outputs.GetBudgetPolicyCustomTagResult']:
|
|
60
59
|
"""
|
|
61
60
|
(list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
|
|
62
61
|
"""
|
|
@@ -80,7 +79,7 @@ class GetBudgetPolicyResult:
|
|
|
80
79
|
|
|
81
80
|
@_builtins.property
|
|
82
81
|
@pulumi.getter(name="policyName")
|
|
83
|
-
def policy_name(self) ->
|
|
82
|
+
def policy_name(self) -> _builtins.str:
|
|
84
83
|
"""
|
|
85
84
|
(string) - The name of the policy.
|
|
86
85
|
- Must be unique among active policies.
|
|
@@ -103,28 +102,31 @@ class AwaitableGetBudgetPolicyResult(GetBudgetPolicyResult):
|
|
|
103
102
|
policy_name=self.policy_name)
|
|
104
103
|
|
|
105
104
|
|
|
106
|
-
def get_budget_policy(
|
|
107
|
-
custom_tags: Optional[Sequence[Union['GetBudgetPolicyCustomTagArgs', 'GetBudgetPolicyCustomTagArgsDict']]] = None,
|
|
108
|
-
policy_name: Optional[_builtins.str] = None,
|
|
105
|
+
def get_budget_policy(policy_id: Optional[_builtins.str] = None,
|
|
109
106
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetBudgetPolicyResult:
|
|
110
107
|
"""
|
|
108
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
109
|
+
|
|
111
110
|
This data source can be used to get a single budget policy.
|
|
112
111
|
|
|
113
112
|
> **Note** This data source can only be used with an account-level provider!
|
|
114
113
|
|
|
114
|
+
## Example Usage
|
|
115
|
+
|
|
116
|
+
Referring to a budget policy by id:
|
|
117
|
+
|
|
118
|
+
```python
|
|
119
|
+
import pulumi
|
|
120
|
+
import pulumi_databricks as databricks
|
|
121
|
+
|
|
122
|
+
this = databricks.get_budget_policy(policy_id="test")
|
|
123
|
+
```
|
|
124
|
+
|
|
115
125
|
|
|
116
|
-
:param
|
|
117
|
-
An empty binding implies that this budget policy is open to any workspace in the account
|
|
118
|
-
:param Sequence[Union['GetBudgetPolicyCustomTagArgs', 'GetBudgetPolicyCustomTagArgsDict']] custom_tags: (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
|
|
119
|
-
:param _builtins.str policy_name: (string) - The name of the policy.
|
|
120
|
-
- Must be unique among active policies.
|
|
121
|
-
- Can contain only characters from the ISO 8859-1 (latin1) set.
|
|
122
|
-
- Can't start with reserved keywords such as `databricks:default-policy`
|
|
126
|
+
:param _builtins.str policy_id: The Id of the policy. This field is generated by Databricks and globally unique
|
|
123
127
|
"""
|
|
124
128
|
__args__ = dict()
|
|
125
|
-
__args__['
|
|
126
|
-
__args__['customTags'] = custom_tags
|
|
127
|
-
__args__['policyName'] = policy_name
|
|
129
|
+
__args__['policyId'] = policy_id
|
|
128
130
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
129
131
|
__ret__ = pulumi.runtime.invoke('databricks:index/getBudgetPolicy:getBudgetPolicy', __args__, opts=opts, typ=GetBudgetPolicyResult).value
|
|
130
132
|
|
|
@@ -134,28 +136,31 @@ def get_budget_policy(binding_workspace_ids: Optional[Sequence[_builtins.int]] =
|
|
|
134
136
|
id=pulumi.get(__ret__, 'id'),
|
|
135
137
|
policy_id=pulumi.get(__ret__, 'policy_id'),
|
|
136
138
|
policy_name=pulumi.get(__ret__, 'policy_name'))
|
|
137
|
-
def get_budget_policy_output(
|
|
138
|
-
custom_tags: Optional[pulumi.Input[Optional[Sequence[Union['GetBudgetPolicyCustomTagArgs', 'GetBudgetPolicyCustomTagArgsDict']]]]] = None,
|
|
139
|
-
policy_name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
139
|
+
def get_budget_policy_output(policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
140
140
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetBudgetPolicyResult]:
|
|
141
141
|
"""
|
|
142
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
143
|
+
|
|
142
144
|
This data source can be used to get a single budget policy.
|
|
143
145
|
|
|
144
146
|
> **Note** This data source can only be used with an account-level provider!
|
|
145
147
|
|
|
148
|
+
## Example Usage
|
|
149
|
+
|
|
150
|
+
Referring to a budget policy by id:
|
|
151
|
+
|
|
152
|
+
```python
|
|
153
|
+
import pulumi
|
|
154
|
+
import pulumi_databricks as databricks
|
|
155
|
+
|
|
156
|
+
this = databricks.get_budget_policy(policy_id="test")
|
|
157
|
+
```
|
|
158
|
+
|
|
146
159
|
|
|
147
|
-
:param
|
|
148
|
-
An empty binding implies that this budget policy is open to any workspace in the account
|
|
149
|
-
:param Sequence[Union['GetBudgetPolicyCustomTagArgs', 'GetBudgetPolicyCustomTagArgsDict']] custom_tags: (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
|
|
150
|
-
:param _builtins.str policy_name: (string) - The name of the policy.
|
|
151
|
-
- Must be unique among active policies.
|
|
152
|
-
- Can contain only characters from the ISO 8859-1 (latin1) set.
|
|
153
|
-
- Can't start with reserved keywords such as `databricks:default-policy`
|
|
160
|
+
:param _builtins.str policy_id: The Id of the policy. This field is generated by Databricks and globally unique
|
|
154
161
|
"""
|
|
155
162
|
__args__ = dict()
|
|
156
|
-
__args__['
|
|
157
|
-
__args__['customTags'] = custom_tags
|
|
158
|
-
__args__['policyName'] = policy_name
|
|
163
|
+
__args__['policyId'] = policy_id
|
|
159
164
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
160
165
|
__ret__ = pulumi.runtime.invoke_output('databricks:index/getBudgetPolicy:getBudgetPolicy', __args__, opts=opts, typ=GetBudgetPolicyResult)
|
|
161
166
|
return __ret__.apply(lambda __response__: GetBudgetPolicyResult(
|