pulumi-databricks 1.74.0a1753335781__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 +185 -12
- pulumi_databricks/_inputs.py +30467 -20225
- pulumi_databricks/access_control_rule_set.py +28 -29
- pulumi_databricks/account_federation_policy.py +473 -0
- pulumi_databricks/account_network_policy.py +74 -43
- pulumi_databricks/account_setting_v2.py +759 -0
- pulumi_databricks/aibi_dashboard_embedding_access_policy_setting.py +30 -31
- pulumi_databricks/aibi_dashboard_embedding_approved_domains_setting.py +30 -31
- pulumi_databricks/alert.py +185 -186
- pulumi_databricks/alert_v2.py +369 -211
- pulumi_databricks/app.py +315 -209
- pulumi_databricks/apps_settings_custom_template.py +531 -0
- pulumi_databricks/artifact_allowlist.py +72 -73
- pulumi_databricks/automatic_cluster_update_workspace_setting.py +30 -31
- pulumi_databricks/budget.py +84 -85
- pulumi_databricks/budget_policy.py +75 -53
- pulumi_databricks/catalog.py +544 -225
- pulumi_databricks/catalog_workspace_binding.py +82 -83
- pulumi_databricks/cluster.py +561 -683
- pulumi_databricks/cluster_policy.py +115 -116
- pulumi_databricks/compliance_security_profile_workspace_setting.py +30 -31
- pulumi_databricks/config/__init__.py +1 -1
- pulumi_databricks/config/__init__.pyi +3 -2
- pulumi_databricks/config/vars.py +40 -37
- pulumi_databricks/connection.py +346 -211
- pulumi_databricks/credential.py +262 -263
- pulumi_databricks/custom_app_integration.py +175 -176
- pulumi_databricks/dashboard.py +207 -208
- pulumi_databricks/data_quality_monitor.py +453 -0
- pulumi_databricks/data_quality_refresh.py +492 -0
- pulumi_databricks/database_database_catalog.py +437 -0
- pulumi_databricks/database_instance.py +938 -137
- pulumi_databricks/database_synced_database_table.py +589 -0
- pulumi_databricks/dbfs_file.py +87 -84
- pulumi_databricks/default_namespace_setting.py +30 -31
- pulumi_databricks/directory.py +61 -62
- pulumi_databricks/disable_legacy_access_setting.py +109 -33
- pulumi_databricks/disable_legacy_dbfs_setting.py +58 -39
- pulumi_databricks/disable_legacy_features_setting.py +62 -37
- pulumi_databricks/enhanced_security_monitoring_workspace_setting.py +30 -31
- pulumi_databricks/entitlements.py +148 -149
- pulumi_databricks/entity_tag_assignment.py +409 -0
- pulumi_databricks/external_location.py +276 -290
- pulumi_databricks/external_metadata.py +726 -0
- pulumi_databricks/feature_engineering_feature.py +480 -0
- pulumi_databricks/feature_engineering_materialized_feature.py +397 -0
- pulumi_databricks/file.py +96 -97
- 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 +36 -7
- pulumi_databricks/get_account_network_policy.py +33 -29
- pulumi_databricks/get_account_setting_v2.py +331 -0
- pulumi_databricks/get_alert_v2.py +100 -84
- pulumi_databricks/get_alerts_v2.py +35 -17
- pulumi_databricks/get_app.py +31 -20
- pulumi_databricks/get_apps.py +26 -15
- pulumi_databricks/get_apps_settings_custom_template.py +207 -0
- pulumi_databricks/get_apps_settings_custom_templates.py +133 -0
- pulumi_databricks/get_aws_assume_role_policy.py +27 -28
- pulumi_databricks/get_aws_bucket_policy.py +39 -40
- pulumi_databricks/get_aws_cross_account_policy.py +47 -48
- pulumi_databricks/get_aws_unity_catalog_assume_role_policy.py +35 -36
- pulumi_databricks/get_aws_unity_catalog_policy.py +35 -36
- pulumi_databricks/get_budget_policies.py +74 -11
- pulumi_databricks/get_budget_policy.py +43 -39
- pulumi_databricks/get_catalog.py +35 -19
- pulumi_databricks/get_catalogs.py +32 -14
- pulumi_databricks/get_cluster.py +41 -25
- pulumi_databricks/get_cluster_policy.py +72 -54
- pulumi_databricks/get_clusters.py +41 -25
- pulumi_databricks/get_current_config.py +23 -24
- pulumi_databricks/get_current_metastore.py +29 -13
- pulumi_databricks/get_current_user.py +17 -18
- pulumi_databricks/get_dashboards.py +34 -15
- 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 +176 -0
- pulumi_databricks/get_database_database_catalogs.py +120 -0
- pulumi_databricks/get_database_instance.py +274 -50
- pulumi_databricks/get_database_instances.py +35 -11
- pulumi_databricks/get_database_synced_database_table.py +225 -0
- pulumi_databricks/get_database_synced_database_tables.py +120 -0
- pulumi_databricks/get_dbfs_file.py +19 -20
- pulumi_databricks/get_dbfs_file_paths.py +16 -17
- pulumi_databricks/get_directory.py +43 -25
- pulumi_databricks/get_entity_tag_assignment.py +202 -0
- pulumi_databricks/get_entity_tag_assignments.py +187 -0
- pulumi_databricks/get_external_location.py +35 -19
- pulumi_databricks/get_external_locations.py +32 -14
- pulumi_databricks/get_external_metadata.py +292 -0
- pulumi_databricks/get_external_metadatas.py +135 -0
- 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 +38 -24
- pulumi_databricks/get_group.py +85 -86
- pulumi_databricks/get_instance_pool.py +10 -11
- pulumi_databricks/get_instance_profiles.py +25 -9
- pulumi_databricks/get_job.py +22 -23
- pulumi_databricks/get_jobs.py +44 -26
- pulumi_databricks/get_materialized_features_feature_tag.py +102 -0
- pulumi_databricks/get_materialized_features_feature_tags.py +133 -0
- pulumi_databricks/get_metastore.py +28 -29
- pulumi_databricks/get_metastores.py +9 -10
- pulumi_databricks/get_mlflow_experiment.py +62 -46
- pulumi_databricks/get_mlflow_model.py +47 -31
- pulumi_databricks/get_mlflow_models.py +32 -14
- pulumi_databricks/get_mws_credentials.py +9 -10
- pulumi_databricks/get_mws_network_connectivity_config.py +40 -41
- pulumi_databricks/get_mws_network_connectivity_configs.py +15 -16
- pulumi_databricks/get_mws_workspaces.py +5 -6
- pulumi_databricks/get_node_type.py +123 -87
- pulumi_databricks/get_notebook.py +37 -38
- pulumi_databricks/get_notebook_paths.py +16 -17
- pulumi_databricks/get_notification_destinations.py +33 -18
- pulumi_databricks/get_online_store.py +36 -27
- pulumi_databricks/get_online_stores.py +33 -13
- pulumi_databricks/get_pipelines.py +49 -31
- pulumi_databricks/get_policy_info.py +338 -0
- pulumi_databricks/get_policy_infos.py +169 -0
- pulumi_databricks/get_quality_monitor_v2.py +21 -18
- pulumi_databricks/get_quality_monitors_v2.py +26 -8
- pulumi_databricks/get_registered_model.py +41 -27
- pulumi_databricks/get_registered_model_versions.py +29 -15
- pulumi_databricks/get_rfa_access_request_destinations.py +126 -0
- pulumi_databricks/get_schema.py +32 -16
- pulumi_databricks/get_schemas.py +38 -20
- pulumi_databricks/get_service_principal.py +80 -58
- pulumi_databricks/get_service_principal_federation_policies.py +151 -0
- pulumi_databricks/get_service_principal_federation_policy.py +220 -0
- pulumi_databricks/get_service_principals.py +16 -17
- pulumi_databricks/get_serving_endpoints.py +23 -9
- pulumi_databricks/get_share.py +130 -32
- pulumi_databricks/get_shares.py +29 -11
- pulumi_databricks/get_spark_version.py +87 -69
- pulumi_databricks/get_sql_warehouse.py +124 -110
- pulumi_databricks/get_sql_warehouses.py +37 -19
- pulumi_databricks/get_storage_credential.py +32 -16
- pulumi_databricks/get_storage_credentials.py +32 -14
- pulumi_databricks/get_table.py +30 -14
- pulumi_databricks/get_tables.py +41 -23
- pulumi_databricks/get_tag_policies.py +139 -0
- pulumi_databricks/get_tag_policy.py +175 -0
- pulumi_databricks/get_user.py +33 -34
- pulumi_databricks/get_views.py +41 -23
- pulumi_databricks/get_volume.py +32 -16
- pulumi_databricks/get_volumes.py +41 -23
- pulumi_databricks/get_workspace_network_option.py +45 -26
- pulumi_databricks/get_workspace_setting_v2.py +331 -0
- pulumi_databricks/get_zones.py +39 -21
- pulumi_databricks/git_credential.py +242 -76
- pulumi_databricks/global_init_script.py +99 -100
- pulumi_databricks/grant.py +215 -212
- pulumi_databricks/grants.py +200 -211
- pulumi_databricks/group.py +176 -177
- pulumi_databricks/group_instance_profile.py +37 -38
- pulumi_databricks/group_member.py +37 -38
- pulumi_databricks/group_role.py +37 -38
- pulumi_databricks/instance_pool.py +168 -169
- pulumi_databricks/instance_profile.py +69 -70
- pulumi_databricks/ip_access_list.py +71 -72
- pulumi_databricks/job.py +426 -346
- pulumi_databricks/lakehouse_monitor.py +199 -200
- pulumi_databricks/library.py +264 -99
- pulumi_databricks/materialized_features_feature_tag.py +213 -0
- pulumi_databricks/metastore.py +254 -255
- pulumi_databricks/metastore_assignment.py +52 -53
- pulumi_databricks/metastore_data_access.py +153 -154
- pulumi_databricks/metastore_provider.py +69 -70
- pulumi_databricks/mlflow_experiment.py +108 -109
- pulumi_databricks/mlflow_model.py +45 -46
- pulumi_databricks/mlflow_webhook.py +75 -76
- pulumi_databricks/model_serving.py +195 -74
- pulumi_databricks/model_serving_provisioned_throughput.py +100 -54
- pulumi_databricks/mount.py +103 -104
- pulumi_databricks/mws_credentials.py +99 -100
- pulumi_databricks/mws_customer_managed_keys.py +75 -76
- pulumi_databricks/mws_log_delivery.py +188 -189
- pulumi_databricks/mws_ncc_binding.py +35 -36
- pulumi_databricks/mws_ncc_private_endpoint_rule.py +312 -289
- pulumi_databricks/mws_network_connectivity_config.py +136 -98
- pulumi_databricks/mws_networks.py +159 -160
- pulumi_databricks/mws_permission_assignment.py +70 -71
- pulumi_databricks/mws_private_access_settings.py +116 -117
- pulumi_databricks/mws_storage_configurations.py +74 -75
- pulumi_databricks/mws_vpc_endpoint.py +149 -150
- pulumi_databricks/mws_workspaces.py +464 -418
- pulumi_databricks/notebook.py +143 -144
- pulumi_databricks/notification_destination.py +38 -39
- pulumi_databricks/obo_token.py +63 -64
- pulumi_databricks/online_store.py +121 -70
- pulumi_databricks/online_table.py +41 -42
- pulumi_databricks/outputs.py +47821 -30802
- pulumi_databricks/permission_assignment.py +298 -57
- pulumi_databricks/permissions.py +523 -362
- pulumi_databricks/pipeline.py +515 -480
- pulumi_databricks/policy_info.py +916 -0
- pulumi_databricks/provider.py +283 -269
- pulumi_databricks/pulumi-plugin.json +1 -1
- pulumi_databricks/quality_monitor.py +263 -217
- pulumi_databricks/quality_monitor_v2.py +49 -46
- pulumi_databricks/query.py +227 -228
- pulumi_databricks/recipient.py +208 -209
- pulumi_databricks/registered_model.py +393 -122
- pulumi_databricks/repo.py +117 -118
- pulumi_databricks/restrict_workspace_admins_setting.py +30 -31
- pulumi_databricks/rfa_access_request_destinations.py +286 -0
- pulumi_databricks/schema.py +159 -160
- pulumi_databricks/secret.py +72 -73
- pulumi_databricks/secret_acl.py +52 -53
- pulumi_databricks/secret_scope.py +55 -56
- pulumi_databricks/service_principal.py +279 -278
- pulumi_databricks/service_principal_federation_policy.py +469 -0
- pulumi_databricks/service_principal_role.py +35 -36
- pulumi_databricks/service_principal_secret.py +156 -157
- pulumi_databricks/share.py +186 -187
- pulumi_databricks/sql_alert.py +98 -99
- pulumi_databricks/sql_dashboard.py +94 -95
- pulumi_databricks/sql_endpoint.py +298 -266
- pulumi_databricks/sql_global_config.py +103 -104
- pulumi_databricks/sql_permissions.py +121 -122
- pulumi_databricks/sql_query.py +150 -151
- pulumi_databricks/sql_table.py +310 -283
- pulumi_databricks/sql_visualization.py +92 -93
- pulumi_databricks/sql_widget.py +91 -88
- pulumi_databricks/storage_credential.py +236 -184
- pulumi_databricks/system_schema.py +50 -51
- pulumi_databricks/table.py +147 -148
- pulumi_databricks/tag_policy.py +357 -0
- pulumi_databricks/token.py +83 -84
- pulumi_databricks/user.py +284 -285
- pulumi_databricks/user_instance_profile.py +35 -36
- pulumi_databricks/user_role.py +35 -36
- pulumi_databricks/vector_search_endpoint.py +117 -118
- pulumi_databricks/vector_search_index.py +86 -87
- pulumi_databricks/volume.py +129 -130
- pulumi_databricks/workspace_binding.py +82 -131
- pulumi_databricks/workspace_conf.py +18 -19
- pulumi_databricks/workspace_file.py +100 -101
- pulumi_databricks/workspace_network_option.py +89 -40
- pulumi_databricks/workspace_setting_v2.py +759 -0
- {pulumi_databricks-1.74.0a1753335781.dist-info → pulumi_databricks-1.77.0.dist-info}/METADATA +1 -1
- pulumi_databricks-1.77.0.dist-info/RECORD +250 -0
- pulumi_databricks/get_recipient_federation_policies.py +0 -83
- pulumi_databricks/get_recipient_federation_policy.py +0 -166
- pulumi_databricks/recipient_federation_policy.py +0 -347
- pulumi_databricks-1.74.0a1753335781.dist-info/RECORD +0 -205
- {pulumi_databricks-1.74.0a1753335781.dist-info → pulumi_databricks-1.77.0.dist-info}/WHEEL +0 -0
- {pulumi_databricks-1.74.0a1753335781.dist-info → pulumi_databricks-1.77.0.dist-info}/top_level.txt +0 -0
pulumi_databricks/get_schemas.py
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -14,6 +13,8 @@ if sys.version_info >= (3, 11):
|
|
|
14
13
|
else:
|
|
15
14
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
16
15
|
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
17
18
|
|
|
18
19
|
__all__ = [
|
|
19
20
|
'GetSchemasResult',
|
|
@@ -27,7 +28,7 @@ class GetSchemasResult:
|
|
|
27
28
|
"""
|
|
28
29
|
A collection of values returned by getSchemas.
|
|
29
30
|
"""
|
|
30
|
-
def __init__(__self__, catalog_name=None, id=None, ids=None):
|
|
31
|
+
def __init__(__self__, catalog_name=None, id=None, ids=None, provider_config=None):
|
|
31
32
|
if catalog_name and not isinstance(catalog_name, str):
|
|
32
33
|
raise TypeError("Expected argument 'catalog_name' to be a str")
|
|
33
34
|
pulumi.set(__self__, "catalog_name", catalog_name)
|
|
@@ -37,28 +38,36 @@ class GetSchemasResult:
|
|
|
37
38
|
if ids and not isinstance(ids, list):
|
|
38
39
|
raise TypeError("Expected argument 'ids' to be a list")
|
|
39
40
|
pulumi.set(__self__, "ids", ids)
|
|
41
|
+
if provider_config and not isinstance(provider_config, dict):
|
|
42
|
+
raise TypeError("Expected argument 'provider_config' to be a dict")
|
|
43
|
+
pulumi.set(__self__, "provider_config", provider_config)
|
|
40
44
|
|
|
41
|
-
@property
|
|
45
|
+
@_builtins.property
|
|
42
46
|
@pulumi.getter(name="catalogName")
|
|
43
|
-
def catalog_name(self) ->
|
|
47
|
+
def catalog_name(self) -> _builtins.str:
|
|
44
48
|
return pulumi.get(self, "catalog_name")
|
|
45
49
|
|
|
46
|
-
@property
|
|
50
|
+
@_builtins.property
|
|
47
51
|
@pulumi.getter
|
|
48
|
-
def id(self) ->
|
|
52
|
+
def id(self) -> _builtins.str:
|
|
49
53
|
"""
|
|
50
54
|
The provider-assigned unique ID for this managed resource.
|
|
51
55
|
"""
|
|
52
56
|
return pulumi.get(self, "id")
|
|
53
57
|
|
|
54
|
-
@property
|
|
58
|
+
@_builtins.property
|
|
55
59
|
@pulumi.getter
|
|
56
|
-
def ids(self) -> Sequence[
|
|
60
|
+
def ids(self) -> Sequence[_builtins.str]:
|
|
57
61
|
"""
|
|
58
62
|
set of Schema full names: *`catalog`.`schema`*
|
|
59
63
|
"""
|
|
60
64
|
return pulumi.get(self, "ids")
|
|
61
65
|
|
|
66
|
+
@_builtins.property
|
|
67
|
+
@pulumi.getter(name="providerConfig")
|
|
68
|
+
def provider_config(self) -> Optional['outputs.GetSchemasProviderConfigResult']:
|
|
69
|
+
return pulumi.get(self, "provider_config")
|
|
70
|
+
|
|
62
71
|
|
|
63
72
|
class AwaitableGetSchemasResult(GetSchemasResult):
|
|
64
73
|
# pylint: disable=using-constant-test
|
|
@@ -68,11 +77,13 @@ class AwaitableGetSchemasResult(GetSchemasResult):
|
|
|
68
77
|
return GetSchemasResult(
|
|
69
78
|
catalog_name=self.catalog_name,
|
|
70
79
|
id=self.id,
|
|
71
|
-
ids=self.ids
|
|
80
|
+
ids=self.ids,
|
|
81
|
+
provider_config=self.provider_config)
|
|
72
82
|
|
|
73
83
|
|
|
74
|
-
def get_schemas(catalog_name: Optional[
|
|
75
|
-
ids: Optional[Sequence[
|
|
84
|
+
def get_schemas(catalog_name: Optional[_builtins.str] = None,
|
|
85
|
+
ids: Optional[Sequence[_builtins.str]] = None,
|
|
86
|
+
provider_config: Optional[Union['GetSchemasProviderConfigArgs', 'GetSchemasProviderConfigArgsDict']] = None,
|
|
76
87
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSchemasResult:
|
|
77
88
|
"""
|
|
78
89
|
Retrieves a list of Schema ids, that were created by Pulumi or manually, so that special handling could be applied.
|
|
@@ -99,21 +110,25 @@ def get_schemas(catalog_name: Optional[builtins.str] = None,
|
|
|
99
110
|
* Catalog to manage catalogs within Unity Catalog.
|
|
100
111
|
|
|
101
112
|
|
|
102
|
-
:param
|
|
103
|
-
:param Sequence[
|
|
113
|
+
:param _builtins.str catalog_name: Name of databricks_catalog
|
|
114
|
+
:param Sequence[_builtins.str] ids: set of Schema full names: *`catalog`.`schema`*
|
|
115
|
+
:param Union['GetSchemasProviderConfigArgs', 'GetSchemasProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
104
116
|
"""
|
|
105
117
|
__args__ = dict()
|
|
106
118
|
__args__['catalogName'] = catalog_name
|
|
107
119
|
__args__['ids'] = ids
|
|
120
|
+
__args__['providerConfig'] = provider_config
|
|
108
121
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
109
122
|
__ret__ = pulumi.runtime.invoke('databricks:index/getSchemas:getSchemas', __args__, opts=opts, typ=GetSchemasResult).value
|
|
110
123
|
|
|
111
124
|
return AwaitableGetSchemasResult(
|
|
112
125
|
catalog_name=pulumi.get(__ret__, 'catalog_name'),
|
|
113
126
|
id=pulumi.get(__ret__, 'id'),
|
|
114
|
-
ids=pulumi.get(__ret__, 'ids')
|
|
115
|
-
|
|
116
|
-
|
|
127
|
+
ids=pulumi.get(__ret__, 'ids'),
|
|
128
|
+
provider_config=pulumi.get(__ret__, 'provider_config'))
|
|
129
|
+
def get_schemas_output(catalog_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
130
|
+
ids: Optional[pulumi.Input[Optional[Sequence[_builtins.str]]]] = None,
|
|
131
|
+
provider_config: Optional[pulumi.Input[Optional[Union['GetSchemasProviderConfigArgs', 'GetSchemasProviderConfigArgsDict']]]] = None,
|
|
117
132
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSchemasResult]:
|
|
118
133
|
"""
|
|
119
134
|
Retrieves a list of Schema ids, that were created by Pulumi or manually, so that special handling could be applied.
|
|
@@ -140,15 +155,18 @@ def get_schemas_output(catalog_name: Optional[pulumi.Input[builtins.str]] = None
|
|
|
140
155
|
* Catalog to manage catalogs within Unity Catalog.
|
|
141
156
|
|
|
142
157
|
|
|
143
|
-
:param
|
|
144
|
-
:param Sequence[
|
|
158
|
+
:param _builtins.str catalog_name: Name of databricks_catalog
|
|
159
|
+
:param Sequence[_builtins.str] ids: set of Schema full names: *`catalog`.`schema`*
|
|
160
|
+
:param Union['GetSchemasProviderConfigArgs', 'GetSchemasProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
145
161
|
"""
|
|
146
162
|
__args__ = dict()
|
|
147
163
|
__args__['catalogName'] = catalog_name
|
|
148
164
|
__args__['ids'] = ids
|
|
165
|
+
__args__['providerConfig'] = provider_config
|
|
149
166
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
150
167
|
__ret__ = pulumi.runtime.invoke_output('databricks:index/getSchemas:getSchemas', __args__, opts=opts, typ=GetSchemasResult)
|
|
151
168
|
return __ret__.apply(lambda __response__: GetSchemasResult(
|
|
152
169
|
catalog_name=pulumi.get(__response__, 'catalog_name'),
|
|
153
170
|
id=pulumi.get(__response__, 'id'),
|
|
154
|
-
ids=pulumi.get(__response__, 'ids')
|
|
171
|
+
ids=pulumi.get(__response__, 'ids'),
|
|
172
|
+
provider_config=pulumi.get(__response__, 'provider_config')))
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -27,7 +26,7 @@ class GetServicePrincipalResult:
|
|
|
27
26
|
"""
|
|
28
27
|
A collection of values returned by getServicePrincipal.
|
|
29
28
|
"""
|
|
30
|
-
def __init__(__self__, acl_principal_id=None, active=None, application_id=None, display_name=None, external_id=None, home=None, id=None, repos=None, sp_id=None):
|
|
29
|
+
def __init__(__self__, acl_principal_id=None, active=None, application_id=None, display_name=None, external_id=None, home=None, id=None, repos=None, scim_id=None, sp_id=None):
|
|
31
30
|
if acl_principal_id and not isinstance(acl_principal_id, str):
|
|
32
31
|
raise TypeError("Expected argument 'acl_principal_id' to be a str")
|
|
33
32
|
pulumi.set(__self__, "acl_principal_id", acl_principal_id)
|
|
@@ -52,74 +51,88 @@ class GetServicePrincipalResult:
|
|
|
52
51
|
if repos and not isinstance(repos, str):
|
|
53
52
|
raise TypeError("Expected argument 'repos' to be a str")
|
|
54
53
|
pulumi.set(__self__, "repos", repos)
|
|
54
|
+
if scim_id and not isinstance(scim_id, str):
|
|
55
|
+
raise TypeError("Expected argument 'scim_id' to be a str")
|
|
56
|
+
pulumi.set(__self__, "scim_id", scim_id)
|
|
55
57
|
if sp_id and not isinstance(sp_id, str):
|
|
56
58
|
raise TypeError("Expected argument 'sp_id' to be a str")
|
|
57
59
|
pulumi.set(__self__, "sp_id", sp_id)
|
|
58
60
|
|
|
59
|
-
@property
|
|
61
|
+
@_builtins.property
|
|
60
62
|
@pulumi.getter(name="aclPrincipalId")
|
|
61
|
-
def acl_principal_id(self) ->
|
|
63
|
+
def acl_principal_id(self) -> _builtins.str:
|
|
62
64
|
"""
|
|
63
65
|
identifier for use in databricks_access_control_rule_set, e.g. `servicePrincipals/00000000-0000-0000-0000-000000000000`.
|
|
64
66
|
"""
|
|
65
67
|
return pulumi.get(self, "acl_principal_id")
|
|
66
68
|
|
|
67
|
-
@property
|
|
69
|
+
@_builtins.property
|
|
68
70
|
@pulumi.getter
|
|
69
|
-
def active(self) ->
|
|
71
|
+
def active(self) -> _builtins.bool:
|
|
70
72
|
"""
|
|
71
73
|
Whether service principal is active or not.
|
|
72
74
|
"""
|
|
73
75
|
return pulumi.get(self, "active")
|
|
74
76
|
|
|
75
|
-
@property
|
|
77
|
+
@_builtins.property
|
|
76
78
|
@pulumi.getter(name="applicationId")
|
|
77
|
-
def application_id(self) ->
|
|
79
|
+
def application_id(self) -> _builtins.str:
|
|
80
|
+
"""
|
|
81
|
+
Application ID of the service principal.
|
|
82
|
+
"""
|
|
78
83
|
return pulumi.get(self, "application_id")
|
|
79
84
|
|
|
80
|
-
@property
|
|
85
|
+
@_builtins.property
|
|
81
86
|
@pulumi.getter(name="displayName")
|
|
82
|
-
def display_name(self) ->
|
|
87
|
+
def display_name(self) -> _builtins.str:
|
|
83
88
|
"""
|
|
84
89
|
Display name of the service principal, e.g. `Foo SPN`.
|
|
85
90
|
"""
|
|
86
91
|
return pulumi.get(self, "display_name")
|
|
87
92
|
|
|
88
|
-
@property
|
|
93
|
+
@_builtins.property
|
|
89
94
|
@pulumi.getter(name="externalId")
|
|
90
|
-
def external_id(self) ->
|
|
95
|
+
def external_id(self) -> _builtins.str:
|
|
91
96
|
"""
|
|
92
97
|
ID of the service principal in an external identity provider.
|
|
93
98
|
"""
|
|
94
99
|
return pulumi.get(self, "external_id")
|
|
95
100
|
|
|
96
|
-
@property
|
|
101
|
+
@_builtins.property
|
|
97
102
|
@pulumi.getter
|
|
98
|
-
def home(self) ->
|
|
103
|
+
def home(self) -> _builtins.str:
|
|
99
104
|
"""
|
|
100
105
|
Home folder of the service principal, e.g. `/Users/11111111-2222-3333-4444-555666777888`.
|
|
101
106
|
"""
|
|
102
107
|
return pulumi.get(self, "home")
|
|
103
108
|
|
|
104
|
-
@property
|
|
109
|
+
@_builtins.property
|
|
105
110
|
@pulumi.getter
|
|
106
|
-
def id(self) ->
|
|
111
|
+
def id(self) -> _builtins.str:
|
|
107
112
|
"""
|
|
108
|
-
The id of the service principal.
|
|
113
|
+
The id of the service principal (SCIM ID).
|
|
109
114
|
"""
|
|
110
115
|
return pulumi.get(self, "id")
|
|
111
116
|
|
|
112
|
-
@property
|
|
117
|
+
@_builtins.property
|
|
113
118
|
@pulumi.getter
|
|
114
|
-
def repos(self) ->
|
|
119
|
+
def repos(self) -> _builtins.str:
|
|
115
120
|
"""
|
|
116
121
|
Repos location of the service principal, e.g. `/Repos/11111111-2222-3333-4444-555666777888`.
|
|
117
122
|
"""
|
|
118
123
|
return pulumi.get(self, "repos")
|
|
119
124
|
|
|
120
|
-
@property
|
|
125
|
+
@_builtins.property
|
|
126
|
+
@pulumi.getter(name="scimId")
|
|
127
|
+
def scim_id(self) -> _builtins.str:
|
|
128
|
+
"""
|
|
129
|
+
same as `id`.
|
|
130
|
+
"""
|
|
131
|
+
return pulumi.get(self, "scim_id")
|
|
132
|
+
|
|
133
|
+
@_builtins.property
|
|
121
134
|
@pulumi.getter(name="spId")
|
|
122
|
-
def sp_id(self) ->
|
|
135
|
+
def sp_id(self) -> _builtins.str:
|
|
123
136
|
return pulumi.get(self, "sp_id")
|
|
124
137
|
|
|
125
138
|
|
|
@@ -137,18 +150,20 @@ class AwaitableGetServicePrincipalResult(GetServicePrincipalResult):
|
|
|
137
150
|
home=self.home,
|
|
138
151
|
id=self.id,
|
|
139
152
|
repos=self.repos,
|
|
153
|
+
scim_id=self.scim_id,
|
|
140
154
|
sp_id=self.sp_id)
|
|
141
155
|
|
|
142
156
|
|
|
143
|
-
def get_service_principal(acl_principal_id: Optional[
|
|
144
|
-
active: Optional[
|
|
145
|
-
application_id: Optional[
|
|
146
|
-
display_name: Optional[
|
|
147
|
-
external_id: Optional[
|
|
148
|
-
home: Optional[
|
|
149
|
-
id: Optional[
|
|
150
|
-
repos: Optional[
|
|
151
|
-
|
|
157
|
+
def get_service_principal(acl_principal_id: Optional[_builtins.str] = None,
|
|
158
|
+
active: Optional[_builtins.bool] = None,
|
|
159
|
+
application_id: Optional[_builtins.str] = None,
|
|
160
|
+
display_name: Optional[_builtins.str] = None,
|
|
161
|
+
external_id: Optional[_builtins.str] = None,
|
|
162
|
+
home: Optional[_builtins.str] = None,
|
|
163
|
+
id: Optional[_builtins.str] = None,
|
|
164
|
+
repos: Optional[_builtins.str] = None,
|
|
165
|
+
scim_id: Optional[_builtins.str] = None,
|
|
166
|
+
sp_id: Optional[_builtins.str] = None,
|
|
152
167
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServicePrincipalResult:
|
|
153
168
|
"""
|
|
154
169
|
Retrieves information about databricks_service_principal.
|
|
@@ -176,7 +191,7 @@ def get_service_principal(acl_principal_id: Optional[builtins.str] = None,
|
|
|
176
191
|
|
|
177
192
|
- End to end workspace management guide.
|
|
178
193
|
- get_current_user data to retrieve information about User or databricks_service_principal, that is calling Databricks REST API.
|
|
179
|
-
- Group to manage [
|
|
194
|
+
- Group to manage [Account-level](https://docs.databricks.com/aws/en/admin/users-groups/groups) or [Workspace-level](https://docs.databricks.com/aws/en/admin/users-groups/workspace-local-groups) groups.
|
|
180
195
|
- Group data to retrieve information about Group members, entitlements and instance profiles.
|
|
181
196
|
- GroupInstanceProfile to attach InstanceProfile (AWS) to databricks_group.
|
|
182
197
|
- GroupMember to attach users and groups as group members.
|
|
@@ -184,14 +199,15 @@ def get_service_principal(acl_principal_id: Optional[builtins.str] = None,
|
|
|
184
199
|
- databricks_service principal to manage service principals
|
|
185
200
|
|
|
186
201
|
|
|
187
|
-
:param
|
|
188
|
-
:param
|
|
189
|
-
:param
|
|
190
|
-
:param
|
|
191
|
-
:param
|
|
192
|
-
:param
|
|
193
|
-
:param
|
|
194
|
-
:param
|
|
202
|
+
:param _builtins.str acl_principal_id: identifier for use in databricks_access_control_rule_set, e.g. `servicePrincipals/00000000-0000-0000-0000-000000000000`.
|
|
203
|
+
:param _builtins.bool active: Whether service principal is active or not.
|
|
204
|
+
:param _builtins.str application_id: Application ID of the service principal. The service principal must exist before this resource can be retrieved.
|
|
205
|
+
:param _builtins.str display_name: Exact display name of the service principal. The service principal must exist before this resource can be retrieved. In case if there are several service principals with the same name, an error is thrown.
|
|
206
|
+
:param _builtins.str external_id: ID of the service principal in an external identity provider.
|
|
207
|
+
:param _builtins.str home: Home folder of the service principal, e.g. `/Users/11111111-2222-3333-4444-555666777888`.
|
|
208
|
+
:param _builtins.str id: The id of the service principal (SCIM ID).
|
|
209
|
+
:param _builtins.str repos: Repos location of the service principal, e.g. `/Repos/11111111-2222-3333-4444-555666777888`.
|
|
210
|
+
:param _builtins.str scim_id: Unique SCIM ID for a service principal in the Databricks workspace. The service principal must exist before this resource can be retrieved.
|
|
195
211
|
"""
|
|
196
212
|
__args__ = dict()
|
|
197
213
|
__args__['aclPrincipalId'] = acl_principal_id
|
|
@@ -202,6 +218,7 @@ def get_service_principal(acl_principal_id: Optional[builtins.str] = None,
|
|
|
202
218
|
__args__['home'] = home
|
|
203
219
|
__args__['id'] = id
|
|
204
220
|
__args__['repos'] = repos
|
|
221
|
+
__args__['scimId'] = scim_id
|
|
205
222
|
__args__['spId'] = sp_id
|
|
206
223
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
207
224
|
__ret__ = pulumi.runtime.invoke('databricks:index/getServicePrincipal:getServicePrincipal', __args__, opts=opts, typ=GetServicePrincipalResult).value
|
|
@@ -215,16 +232,18 @@ def get_service_principal(acl_principal_id: Optional[builtins.str] = None,
|
|
|
215
232
|
home=pulumi.get(__ret__, 'home'),
|
|
216
233
|
id=pulumi.get(__ret__, 'id'),
|
|
217
234
|
repos=pulumi.get(__ret__, 'repos'),
|
|
235
|
+
scim_id=pulumi.get(__ret__, 'scim_id'),
|
|
218
236
|
sp_id=pulumi.get(__ret__, 'sp_id'))
|
|
219
|
-
def get_service_principal_output(acl_principal_id: Optional[pulumi.Input[Optional[
|
|
220
|
-
active: Optional[pulumi.Input[Optional[
|
|
221
|
-
application_id: Optional[pulumi.Input[Optional[
|
|
222
|
-
display_name: Optional[pulumi.Input[Optional[
|
|
223
|
-
external_id: Optional[pulumi.Input[Optional[
|
|
224
|
-
home: Optional[pulumi.Input[Optional[
|
|
225
|
-
id: Optional[pulumi.Input[Optional[
|
|
226
|
-
repos: Optional[pulumi.Input[Optional[
|
|
227
|
-
|
|
237
|
+
def get_service_principal_output(acl_principal_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
238
|
+
active: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
239
|
+
application_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
240
|
+
display_name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
241
|
+
external_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
242
|
+
home: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
243
|
+
id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
244
|
+
repos: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
245
|
+
scim_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
246
|
+
sp_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
228
247
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServicePrincipalResult]:
|
|
229
248
|
"""
|
|
230
249
|
Retrieves information about databricks_service_principal.
|
|
@@ -252,7 +271,7 @@ def get_service_principal_output(acl_principal_id: Optional[pulumi.Input[Optiona
|
|
|
252
271
|
|
|
253
272
|
- End to end workspace management guide.
|
|
254
273
|
- get_current_user data to retrieve information about User or databricks_service_principal, that is calling Databricks REST API.
|
|
255
|
-
- Group to manage [
|
|
274
|
+
- Group to manage [Account-level](https://docs.databricks.com/aws/en/admin/users-groups/groups) or [Workspace-level](https://docs.databricks.com/aws/en/admin/users-groups/workspace-local-groups) groups.
|
|
256
275
|
- Group data to retrieve information about Group members, entitlements and instance profiles.
|
|
257
276
|
- GroupInstanceProfile to attach InstanceProfile (AWS) to databricks_group.
|
|
258
277
|
- GroupMember to attach users and groups as group members.
|
|
@@ -260,14 +279,15 @@ def get_service_principal_output(acl_principal_id: Optional[pulumi.Input[Optiona
|
|
|
260
279
|
- databricks_service principal to manage service principals
|
|
261
280
|
|
|
262
281
|
|
|
263
|
-
:param
|
|
264
|
-
:param
|
|
265
|
-
:param
|
|
266
|
-
:param
|
|
267
|
-
:param
|
|
268
|
-
:param
|
|
269
|
-
:param
|
|
270
|
-
:param
|
|
282
|
+
:param _builtins.str acl_principal_id: identifier for use in databricks_access_control_rule_set, e.g. `servicePrincipals/00000000-0000-0000-0000-000000000000`.
|
|
283
|
+
:param _builtins.bool active: Whether service principal is active or not.
|
|
284
|
+
:param _builtins.str application_id: Application ID of the service principal. The service principal must exist before this resource can be retrieved.
|
|
285
|
+
:param _builtins.str display_name: Exact display name of the service principal. The service principal must exist before this resource can be retrieved. In case if there are several service principals with the same name, an error is thrown.
|
|
286
|
+
:param _builtins.str external_id: ID of the service principal in an external identity provider.
|
|
287
|
+
:param _builtins.str home: Home folder of the service principal, e.g. `/Users/11111111-2222-3333-4444-555666777888`.
|
|
288
|
+
:param _builtins.str id: The id of the service principal (SCIM ID).
|
|
289
|
+
:param _builtins.str repos: Repos location of the service principal, e.g. `/Repos/11111111-2222-3333-4444-555666777888`.
|
|
290
|
+
:param _builtins.str scim_id: Unique SCIM ID for a service principal in the Databricks workspace. The service principal must exist before this resource can be retrieved.
|
|
271
291
|
"""
|
|
272
292
|
__args__ = dict()
|
|
273
293
|
__args__['aclPrincipalId'] = acl_principal_id
|
|
@@ -278,6 +298,7 @@ def get_service_principal_output(acl_principal_id: Optional[pulumi.Input[Optiona
|
|
|
278
298
|
__args__['home'] = home
|
|
279
299
|
__args__['id'] = id
|
|
280
300
|
__args__['repos'] = repos
|
|
301
|
+
__args__['scimId'] = scim_id
|
|
281
302
|
__args__['spId'] = sp_id
|
|
282
303
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
283
304
|
__ret__ = pulumi.runtime.invoke_output('databricks:index/getServicePrincipal:getServicePrincipal', __args__, opts=opts, typ=GetServicePrincipalResult)
|
|
@@ -290,4 +311,5 @@ def get_service_principal_output(acl_principal_id: Optional[pulumi.Input[Optiona
|
|
|
290
311
|
home=pulumi.get(__response__, 'home'),
|
|
291
312
|
id=pulumi.get(__response__, 'id'),
|
|
292
313
|
repos=pulumi.get(__response__, 'repos'),
|
|
314
|
+
scim_id=pulumi.get(__response__, 'scim_id'),
|
|
293
315
|
sp_id=pulumi.get(__response__, 'sp_id')))
|
|
@@ -0,0 +1,151 @@
|
|
|
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
|
+
'GetServicePrincipalFederationPoliciesResult',
|
|
20
|
+
'AwaitableGetServicePrincipalFederationPoliciesResult',
|
|
21
|
+
'get_service_principal_federation_policies',
|
|
22
|
+
'get_service_principal_federation_policies_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetServicePrincipalFederationPoliciesResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getServicePrincipalFederationPolicies.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, id=None, page_size=None, policies=None, service_principal_id=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 policies and not isinstance(policies, list):
|
|
38
|
+
raise TypeError("Expected argument 'policies' to be a list")
|
|
39
|
+
pulumi.set(__self__, "policies", policies)
|
|
40
|
+
if service_principal_id and not isinstance(service_principal_id, int):
|
|
41
|
+
raise TypeError("Expected argument 'service_principal_id' to be a int")
|
|
42
|
+
pulumi.set(__self__, "service_principal_id", service_principal_id)
|
|
43
|
+
|
|
44
|
+
@_builtins.property
|
|
45
|
+
@pulumi.getter
|
|
46
|
+
def id(self) -> _builtins.str:
|
|
47
|
+
"""
|
|
48
|
+
The provider-assigned unique ID for this managed resource.
|
|
49
|
+
"""
|
|
50
|
+
return pulumi.get(self, "id")
|
|
51
|
+
|
|
52
|
+
@_builtins.property
|
|
53
|
+
@pulumi.getter(name="pageSize")
|
|
54
|
+
def page_size(self) -> Optional[_builtins.int]:
|
|
55
|
+
return pulumi.get(self, "page_size")
|
|
56
|
+
|
|
57
|
+
@_builtins.property
|
|
58
|
+
@pulumi.getter
|
|
59
|
+
def policies(self) -> Sequence['outputs.GetServicePrincipalFederationPoliciesPolicyResult']:
|
|
60
|
+
return pulumi.get(self, "policies")
|
|
61
|
+
|
|
62
|
+
@_builtins.property
|
|
63
|
+
@pulumi.getter(name="servicePrincipalId")
|
|
64
|
+
def service_principal_id(self) -> _builtins.int:
|
|
65
|
+
"""
|
|
66
|
+
(integer) - The service principal ID that this federation policy applies to. Output only. Only set for service principal federation policies
|
|
67
|
+
"""
|
|
68
|
+
return pulumi.get(self, "service_principal_id")
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
class AwaitableGetServicePrincipalFederationPoliciesResult(GetServicePrincipalFederationPoliciesResult):
|
|
72
|
+
# pylint: disable=using-constant-test
|
|
73
|
+
def __await__(self):
|
|
74
|
+
if False:
|
|
75
|
+
yield self
|
|
76
|
+
return GetServicePrincipalFederationPoliciesResult(
|
|
77
|
+
id=self.id,
|
|
78
|
+
page_size=self.page_size,
|
|
79
|
+
policies=self.policies,
|
|
80
|
+
service_principal_id=self.service_principal_id)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def get_service_principal_federation_policies(page_size: Optional[_builtins.int] = None,
|
|
84
|
+
service_principal_id: Optional[_builtins.int] = None,
|
|
85
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServicePrincipalFederationPoliciesResult:
|
|
86
|
+
"""
|
|
87
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
88
|
+
|
|
89
|
+
This data source can be used to fetch the list of federation policies for a service principal.
|
|
90
|
+
|
|
91
|
+
> **Note** This data source can only be used with an account-level provider!
|
|
92
|
+
|
|
93
|
+
## Example Usage
|
|
94
|
+
|
|
95
|
+
Getting a list of all service principal federation policies:
|
|
96
|
+
|
|
97
|
+
```python
|
|
98
|
+
import pulumi
|
|
99
|
+
import pulumi_databricks as databricks
|
|
100
|
+
|
|
101
|
+
all = databricks.get_service_principal_federation_policies(service_principal_id=1234)
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
:param _builtins.int service_principal_id: The service principal id for the federation policy
|
|
106
|
+
"""
|
|
107
|
+
__args__ = dict()
|
|
108
|
+
__args__['pageSize'] = page_size
|
|
109
|
+
__args__['servicePrincipalId'] = service_principal_id
|
|
110
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
111
|
+
__ret__ = pulumi.runtime.invoke('databricks:index/getServicePrincipalFederationPolicies:getServicePrincipalFederationPolicies', __args__, opts=opts, typ=GetServicePrincipalFederationPoliciesResult).value
|
|
112
|
+
|
|
113
|
+
return AwaitableGetServicePrincipalFederationPoliciesResult(
|
|
114
|
+
id=pulumi.get(__ret__, 'id'),
|
|
115
|
+
page_size=pulumi.get(__ret__, 'page_size'),
|
|
116
|
+
policies=pulumi.get(__ret__, 'policies'),
|
|
117
|
+
service_principal_id=pulumi.get(__ret__, 'service_principal_id'))
|
|
118
|
+
def get_service_principal_federation_policies_output(page_size: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
119
|
+
service_principal_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
120
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServicePrincipalFederationPoliciesResult]:
|
|
121
|
+
"""
|
|
122
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
123
|
+
|
|
124
|
+
This data source can be used to fetch the list of federation policies for a service principal.
|
|
125
|
+
|
|
126
|
+
> **Note** This data source can only be used with an account-level provider!
|
|
127
|
+
|
|
128
|
+
## Example Usage
|
|
129
|
+
|
|
130
|
+
Getting a list of all service principal federation policies:
|
|
131
|
+
|
|
132
|
+
```python
|
|
133
|
+
import pulumi
|
|
134
|
+
import pulumi_databricks as databricks
|
|
135
|
+
|
|
136
|
+
all = databricks.get_service_principal_federation_policies(service_principal_id=1234)
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
:param _builtins.int service_principal_id: The service principal id for the federation policy
|
|
141
|
+
"""
|
|
142
|
+
__args__ = dict()
|
|
143
|
+
__args__['pageSize'] = page_size
|
|
144
|
+
__args__['servicePrincipalId'] = service_principal_id
|
|
145
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
146
|
+
__ret__ = pulumi.runtime.invoke_output('databricks:index/getServicePrincipalFederationPolicies:getServicePrincipalFederationPolicies', __args__, opts=opts, typ=GetServicePrincipalFederationPoliciesResult)
|
|
147
|
+
return __ret__.apply(lambda __response__: GetServicePrincipalFederationPoliciesResult(
|
|
148
|
+
id=pulumi.get(__response__, 'id'),
|
|
149
|
+
page_size=pulumi.get(__response__, 'page_size'),
|
|
150
|
+
policies=pulumi.get(__response__, 'policies'),
|
|
151
|
+
service_principal_id=pulumi.get(__response__, 'service_principal_id')))
|