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
|
@@ -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
|
|
@@ -23,13 +22,13 @@ __all__ = ['AccessControlRuleSetArgs', 'AccessControlRuleSet']
|
|
|
23
22
|
class AccessControlRuleSetArgs:
|
|
24
23
|
def __init__(__self__, *,
|
|
25
24
|
grant_rules: Optional[pulumi.Input[Sequence[pulumi.Input['AccessControlRuleSetGrantRuleArgs']]]] = None,
|
|
26
|
-
name: Optional[pulumi.Input[
|
|
25
|
+
name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
27
26
|
"""
|
|
28
27
|
The set of arguments for constructing a AccessControlRuleSet resource.
|
|
29
28
|
:param pulumi.Input[Sequence[pulumi.Input['AccessControlRuleSetGrantRuleArgs']]] grant_rules: The access control rules to be granted by this rule set, consisting of a set of principals and roles to be granted to them.
|
|
30
29
|
|
|
31
30
|
!> Name uniquely identifies a rule set resource. Ensure all the grant_rules blocks for a rule set name are present in one `AccessControlRuleSet` resource block. Otherwise, after applying changes, users might lose their role assignment even if that was not intended.
|
|
32
|
-
:param pulumi.Input[
|
|
31
|
+
:param pulumi.Input[_builtins.str] name: Unique identifier of a rule set. The name determines the resource to which the rule set applies. **Changing the name recreates the resource!**. Currently, only default rule sets are supported. The following rule set formats are supported:
|
|
33
32
|
* `accounts/{account_id}/ruleSets/default` - account-level access control.
|
|
34
33
|
* `accounts/{account_id}/servicePrincipals/{service_principal_application_id}/ruleSets/default` - access control for a specific service principal.
|
|
35
34
|
* `accounts/{account_id}/groups/{group_id}/ruleSets/default` - access control for a specific group.
|
|
@@ -40,7 +39,7 @@ class AccessControlRuleSetArgs:
|
|
|
40
39
|
if name is not None:
|
|
41
40
|
pulumi.set(__self__, "name", name)
|
|
42
41
|
|
|
43
|
-
@property
|
|
42
|
+
@_builtins.property
|
|
44
43
|
@pulumi.getter(name="grantRules")
|
|
45
44
|
def grant_rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AccessControlRuleSetGrantRuleArgs']]]]:
|
|
46
45
|
"""
|
|
@@ -54,9 +53,9 @@ class AccessControlRuleSetArgs:
|
|
|
54
53
|
def grant_rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AccessControlRuleSetGrantRuleArgs']]]]):
|
|
55
54
|
pulumi.set(self, "grant_rules", value)
|
|
56
55
|
|
|
57
|
-
@property
|
|
56
|
+
@_builtins.property
|
|
58
57
|
@pulumi.getter
|
|
59
|
-
def name(self) -> Optional[pulumi.Input[
|
|
58
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
60
59
|
"""
|
|
61
60
|
Unique identifier of a rule set. The name determines the resource to which the rule set applies. **Changing the name recreates the resource!**. Currently, only default rule sets are supported. The following rule set formats are supported:
|
|
62
61
|
* `accounts/{account_id}/ruleSets/default` - account-level access control.
|
|
@@ -67,22 +66,22 @@ class AccessControlRuleSetArgs:
|
|
|
67
66
|
return pulumi.get(self, "name")
|
|
68
67
|
|
|
69
68
|
@name.setter
|
|
70
|
-
def name(self, value: Optional[pulumi.Input[
|
|
69
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
71
70
|
pulumi.set(self, "name", value)
|
|
72
71
|
|
|
73
72
|
|
|
74
73
|
@pulumi.input_type
|
|
75
74
|
class _AccessControlRuleSetState:
|
|
76
75
|
def __init__(__self__, *,
|
|
77
|
-
etag: Optional[pulumi.Input[
|
|
76
|
+
etag: Optional[pulumi.Input[_builtins.str]] = None,
|
|
78
77
|
grant_rules: Optional[pulumi.Input[Sequence[pulumi.Input['AccessControlRuleSetGrantRuleArgs']]]] = None,
|
|
79
|
-
name: Optional[pulumi.Input[
|
|
78
|
+
name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
80
79
|
"""
|
|
81
80
|
Input properties used for looking up and filtering AccessControlRuleSet resources.
|
|
82
81
|
:param pulumi.Input[Sequence[pulumi.Input['AccessControlRuleSetGrantRuleArgs']]] grant_rules: The access control rules to be granted by this rule set, consisting of a set of principals and roles to be granted to them.
|
|
83
82
|
|
|
84
83
|
!> Name uniquely identifies a rule set resource. Ensure all the grant_rules blocks for a rule set name are present in one `AccessControlRuleSet` resource block. Otherwise, after applying changes, users might lose their role assignment even if that was not intended.
|
|
85
|
-
:param pulumi.Input[
|
|
84
|
+
:param pulumi.Input[_builtins.str] name: Unique identifier of a rule set. The name determines the resource to which the rule set applies. **Changing the name recreates the resource!**. Currently, only default rule sets are supported. The following rule set formats are supported:
|
|
86
85
|
* `accounts/{account_id}/ruleSets/default` - account-level access control.
|
|
87
86
|
* `accounts/{account_id}/servicePrincipals/{service_principal_application_id}/ruleSets/default` - access control for a specific service principal.
|
|
88
87
|
* `accounts/{account_id}/groups/{group_id}/ruleSets/default` - access control for a specific group.
|
|
@@ -95,16 +94,16 @@ class _AccessControlRuleSetState:
|
|
|
95
94
|
if name is not None:
|
|
96
95
|
pulumi.set(__self__, "name", name)
|
|
97
96
|
|
|
98
|
-
@property
|
|
97
|
+
@_builtins.property
|
|
99
98
|
@pulumi.getter
|
|
100
|
-
def etag(self) -> Optional[pulumi.Input[
|
|
99
|
+
def etag(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
101
100
|
return pulumi.get(self, "etag")
|
|
102
101
|
|
|
103
102
|
@etag.setter
|
|
104
|
-
def etag(self, value: Optional[pulumi.Input[
|
|
103
|
+
def etag(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
105
104
|
pulumi.set(self, "etag", value)
|
|
106
105
|
|
|
107
|
-
@property
|
|
106
|
+
@_builtins.property
|
|
108
107
|
@pulumi.getter(name="grantRules")
|
|
109
108
|
def grant_rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AccessControlRuleSetGrantRuleArgs']]]]:
|
|
110
109
|
"""
|
|
@@ -118,9 +117,9 @@ class _AccessControlRuleSetState:
|
|
|
118
117
|
def grant_rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AccessControlRuleSetGrantRuleArgs']]]]):
|
|
119
118
|
pulumi.set(self, "grant_rules", value)
|
|
120
119
|
|
|
121
|
-
@property
|
|
120
|
+
@_builtins.property
|
|
122
121
|
@pulumi.getter
|
|
123
|
-
def name(self) -> Optional[pulumi.Input[
|
|
122
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
124
123
|
"""
|
|
125
124
|
Unique identifier of a rule set. The name determines the resource to which the rule set applies. **Changing the name recreates the resource!**. Currently, only default rule sets are supported. The following rule set formats are supported:
|
|
126
125
|
* `accounts/{account_id}/ruleSets/default` - account-level access control.
|
|
@@ -131,7 +130,7 @@ class _AccessControlRuleSetState:
|
|
|
131
130
|
return pulumi.get(self, "name")
|
|
132
131
|
|
|
133
132
|
@name.setter
|
|
134
|
-
def name(self, value: Optional[pulumi.Input[
|
|
133
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
135
134
|
pulumi.set(self, "name", value)
|
|
136
135
|
|
|
137
136
|
|
|
@@ -142,7 +141,7 @@ class AccessControlRuleSet(pulumi.CustomResource):
|
|
|
142
141
|
resource_name: str,
|
|
143
142
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
144
143
|
grant_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AccessControlRuleSetGrantRuleArgs', 'AccessControlRuleSetGrantRuleArgsDict']]]]] = None,
|
|
145
|
-
name: Optional[pulumi.Input[
|
|
144
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
146
145
|
__props__=None):
|
|
147
146
|
"""
|
|
148
147
|
This resource allows you to manage access rules on Databricks account level resources. For convenience we allow accessing this resource through the Databricks account and workspace.
|
|
@@ -328,7 +327,7 @@ class AccessControlRuleSet(pulumi.CustomResource):
|
|
|
328
327
|
:param pulumi.Input[Sequence[pulumi.Input[Union['AccessControlRuleSetGrantRuleArgs', 'AccessControlRuleSetGrantRuleArgsDict']]]] grant_rules: The access control rules to be granted by this rule set, consisting of a set of principals and roles to be granted to them.
|
|
329
328
|
|
|
330
329
|
!> Name uniquely identifies a rule set resource. Ensure all the grant_rules blocks for a rule set name are present in one `AccessControlRuleSet` resource block. Otherwise, after applying changes, users might lose their role assignment even if that was not intended.
|
|
331
|
-
:param pulumi.Input[
|
|
330
|
+
:param pulumi.Input[_builtins.str] name: Unique identifier of a rule set. The name determines the resource to which the rule set applies. **Changing the name recreates the resource!**. Currently, only default rule sets are supported. The following rule set formats are supported:
|
|
332
331
|
* `accounts/{account_id}/ruleSets/default` - account-level access control.
|
|
333
332
|
* `accounts/{account_id}/servicePrincipals/{service_principal_application_id}/ruleSets/default` - access control for a specific service principal.
|
|
334
333
|
* `accounts/{account_id}/groups/{group_id}/ruleSets/default` - access control for a specific group.
|
|
@@ -535,7 +534,7 @@ class AccessControlRuleSet(pulumi.CustomResource):
|
|
|
535
534
|
resource_name: str,
|
|
536
535
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
537
536
|
grant_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AccessControlRuleSetGrantRuleArgs', 'AccessControlRuleSetGrantRuleArgsDict']]]]] = None,
|
|
538
|
-
name: Optional[pulumi.Input[
|
|
537
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
539
538
|
__props__=None):
|
|
540
539
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
541
540
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -558,9 +557,9 @@ class AccessControlRuleSet(pulumi.CustomResource):
|
|
|
558
557
|
def get(resource_name: str,
|
|
559
558
|
id: pulumi.Input[str],
|
|
560
559
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
561
|
-
etag: Optional[pulumi.Input[
|
|
560
|
+
etag: Optional[pulumi.Input[_builtins.str]] = None,
|
|
562
561
|
grant_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AccessControlRuleSetGrantRuleArgs', 'AccessControlRuleSetGrantRuleArgsDict']]]]] = None,
|
|
563
|
-
name: Optional[pulumi.Input[
|
|
562
|
+
name: Optional[pulumi.Input[_builtins.str]] = None) -> 'AccessControlRuleSet':
|
|
564
563
|
"""
|
|
565
564
|
Get an existing AccessControlRuleSet resource's state with the given name, id, and optional extra
|
|
566
565
|
properties used to qualify the lookup.
|
|
@@ -571,7 +570,7 @@ class AccessControlRuleSet(pulumi.CustomResource):
|
|
|
571
570
|
:param pulumi.Input[Sequence[pulumi.Input[Union['AccessControlRuleSetGrantRuleArgs', 'AccessControlRuleSetGrantRuleArgsDict']]]] grant_rules: The access control rules to be granted by this rule set, consisting of a set of principals and roles to be granted to them.
|
|
572
571
|
|
|
573
572
|
!> Name uniquely identifies a rule set resource. Ensure all the grant_rules blocks for a rule set name are present in one `AccessControlRuleSet` resource block. Otherwise, after applying changes, users might lose their role assignment even if that was not intended.
|
|
574
|
-
:param pulumi.Input[
|
|
573
|
+
:param pulumi.Input[_builtins.str] name: Unique identifier of a rule set. The name determines the resource to which the rule set applies. **Changing the name recreates the resource!**. Currently, only default rule sets are supported. The following rule set formats are supported:
|
|
575
574
|
* `accounts/{account_id}/ruleSets/default` - account-level access control.
|
|
576
575
|
* `accounts/{account_id}/servicePrincipals/{service_principal_application_id}/ruleSets/default` - access control for a specific service principal.
|
|
577
576
|
* `accounts/{account_id}/groups/{group_id}/ruleSets/default` - access control for a specific group.
|
|
@@ -586,12 +585,12 @@ class AccessControlRuleSet(pulumi.CustomResource):
|
|
|
586
585
|
__props__.__dict__["name"] = name
|
|
587
586
|
return AccessControlRuleSet(resource_name, opts=opts, __props__=__props__)
|
|
588
587
|
|
|
589
|
-
@property
|
|
588
|
+
@_builtins.property
|
|
590
589
|
@pulumi.getter
|
|
591
|
-
def etag(self) -> pulumi.Output[
|
|
590
|
+
def etag(self) -> pulumi.Output[_builtins.str]:
|
|
592
591
|
return pulumi.get(self, "etag")
|
|
593
592
|
|
|
594
|
-
@property
|
|
593
|
+
@_builtins.property
|
|
595
594
|
@pulumi.getter(name="grantRules")
|
|
596
595
|
def grant_rules(self) -> pulumi.Output[Optional[Sequence['outputs.AccessControlRuleSetGrantRule']]]:
|
|
597
596
|
"""
|
|
@@ -601,9 +600,9 @@ class AccessControlRuleSet(pulumi.CustomResource):
|
|
|
601
600
|
"""
|
|
602
601
|
return pulumi.get(self, "grant_rules")
|
|
603
602
|
|
|
604
|
-
@property
|
|
603
|
+
@_builtins.property
|
|
605
604
|
@pulumi.getter
|
|
606
|
-
def name(self) -> pulumi.Output[
|
|
605
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
607
606
|
"""
|
|
608
607
|
Unique identifier of a rule set. The name determines the resource to which the rule set applies. **Changing the name recreates the resource!**. Currently, only default rule sets are supported. The following rule set formats are supported:
|
|
609
608
|
* `accounts/{account_id}/ruleSets/default` - account-level access control.
|
|
@@ -0,0 +1,473 @@
|
|
|
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
|
+
from ._inputs import *
|
|
18
|
+
|
|
19
|
+
__all__ = ['AccountFederationPolicyArgs', 'AccountFederationPolicy']
|
|
20
|
+
|
|
21
|
+
@pulumi.input_type
|
|
22
|
+
class AccountFederationPolicyArgs:
|
|
23
|
+
def __init__(__self__, *,
|
|
24
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
|
+
oidc_policy: Optional[pulumi.Input['AccountFederationPolicyOidcPolicyArgs']] = None,
|
|
26
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
27
|
+
service_principal_id: Optional[pulumi.Input[_builtins.int]] = None):
|
|
28
|
+
"""
|
|
29
|
+
The set of arguments for constructing a AccountFederationPolicy resource.
|
|
30
|
+
:param pulumi.Input[_builtins.str] description: Description of the federation policy
|
|
31
|
+
:param pulumi.Input[_builtins.str] policy_id: (string) - The ID of the federation policy. Output only
|
|
32
|
+
:param pulumi.Input[_builtins.int] service_principal_id: (integer) - The service principal ID that this federation policy applies to. Output only. Only set for service principal federation policies
|
|
33
|
+
"""
|
|
34
|
+
if description is not None:
|
|
35
|
+
pulumi.set(__self__, "description", description)
|
|
36
|
+
if oidc_policy is not None:
|
|
37
|
+
pulumi.set(__self__, "oidc_policy", oidc_policy)
|
|
38
|
+
if policy_id is not None:
|
|
39
|
+
pulumi.set(__self__, "policy_id", policy_id)
|
|
40
|
+
if service_principal_id is not None:
|
|
41
|
+
pulumi.set(__self__, "service_principal_id", service_principal_id)
|
|
42
|
+
|
|
43
|
+
@_builtins.property
|
|
44
|
+
@pulumi.getter
|
|
45
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
46
|
+
"""
|
|
47
|
+
Description of the federation policy
|
|
48
|
+
"""
|
|
49
|
+
return pulumi.get(self, "description")
|
|
50
|
+
|
|
51
|
+
@description.setter
|
|
52
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
53
|
+
pulumi.set(self, "description", value)
|
|
54
|
+
|
|
55
|
+
@_builtins.property
|
|
56
|
+
@pulumi.getter(name="oidcPolicy")
|
|
57
|
+
def oidc_policy(self) -> Optional[pulumi.Input['AccountFederationPolicyOidcPolicyArgs']]:
|
|
58
|
+
return pulumi.get(self, "oidc_policy")
|
|
59
|
+
|
|
60
|
+
@oidc_policy.setter
|
|
61
|
+
def oidc_policy(self, value: Optional[pulumi.Input['AccountFederationPolicyOidcPolicyArgs']]):
|
|
62
|
+
pulumi.set(self, "oidc_policy", value)
|
|
63
|
+
|
|
64
|
+
@_builtins.property
|
|
65
|
+
@pulumi.getter(name="policyId")
|
|
66
|
+
def policy_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
67
|
+
"""
|
|
68
|
+
(string) - The ID of the federation policy. Output only
|
|
69
|
+
"""
|
|
70
|
+
return pulumi.get(self, "policy_id")
|
|
71
|
+
|
|
72
|
+
@policy_id.setter
|
|
73
|
+
def policy_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
74
|
+
pulumi.set(self, "policy_id", value)
|
|
75
|
+
|
|
76
|
+
@_builtins.property
|
|
77
|
+
@pulumi.getter(name="servicePrincipalId")
|
|
78
|
+
def service_principal_id(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
79
|
+
"""
|
|
80
|
+
(integer) - The service principal ID that this federation policy applies to. Output only. Only set for service principal federation policies
|
|
81
|
+
"""
|
|
82
|
+
return pulumi.get(self, "service_principal_id")
|
|
83
|
+
|
|
84
|
+
@service_principal_id.setter
|
|
85
|
+
def service_principal_id(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
86
|
+
pulumi.set(self, "service_principal_id", value)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
@pulumi.input_type
|
|
90
|
+
class _AccountFederationPolicyState:
|
|
91
|
+
def __init__(__self__, *,
|
|
92
|
+
create_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
93
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
94
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
95
|
+
oidc_policy: Optional[pulumi.Input['AccountFederationPolicyOidcPolicyArgs']] = None,
|
|
96
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
97
|
+
service_principal_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
98
|
+
uid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
99
|
+
update_time: Optional[pulumi.Input[_builtins.str]] = None):
|
|
100
|
+
"""
|
|
101
|
+
Input properties used for looking up and filtering AccountFederationPolicy resources.
|
|
102
|
+
:param pulumi.Input[_builtins.str] create_time: (string) - Creation time of the federation policy
|
|
103
|
+
:param pulumi.Input[_builtins.str] description: Description of the federation policy
|
|
104
|
+
:param pulumi.Input[_builtins.str] name: (string) - Resource name for the federation policy. Example values include
|
|
105
|
+
`accounts/<account-id>/federationPolicies/my-federation-policy` for Account Federation Policies, and
|
|
106
|
+
`accounts/<account-id>/servicePrincipals/<service-principal-id>/federationPolicies/my-federation-policy`
|
|
107
|
+
for Service Principal Federation Policies. Typically an output parameter, which does not need to be
|
|
108
|
+
specified in create or update requests. If specified in a request, must match the value in the
|
|
109
|
+
request URL
|
|
110
|
+
:param pulumi.Input[_builtins.str] policy_id: (string) - The ID of the federation policy. Output only
|
|
111
|
+
:param pulumi.Input[_builtins.int] service_principal_id: (integer) - The service principal ID that this federation policy applies to. Output only. Only set for service principal federation policies
|
|
112
|
+
:param pulumi.Input[_builtins.str] uid: (string) - Unique, immutable id of the federation policy
|
|
113
|
+
:param pulumi.Input[_builtins.str] update_time: (string) - Last update time of the federation policy
|
|
114
|
+
"""
|
|
115
|
+
if create_time is not None:
|
|
116
|
+
pulumi.set(__self__, "create_time", create_time)
|
|
117
|
+
if description is not None:
|
|
118
|
+
pulumi.set(__self__, "description", description)
|
|
119
|
+
if name is not None:
|
|
120
|
+
pulumi.set(__self__, "name", name)
|
|
121
|
+
if oidc_policy is not None:
|
|
122
|
+
pulumi.set(__self__, "oidc_policy", oidc_policy)
|
|
123
|
+
if policy_id is not None:
|
|
124
|
+
pulumi.set(__self__, "policy_id", policy_id)
|
|
125
|
+
if service_principal_id is not None:
|
|
126
|
+
pulumi.set(__self__, "service_principal_id", service_principal_id)
|
|
127
|
+
if uid is not None:
|
|
128
|
+
pulumi.set(__self__, "uid", uid)
|
|
129
|
+
if update_time is not None:
|
|
130
|
+
pulumi.set(__self__, "update_time", update_time)
|
|
131
|
+
|
|
132
|
+
@_builtins.property
|
|
133
|
+
@pulumi.getter(name="createTime")
|
|
134
|
+
def create_time(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
135
|
+
"""
|
|
136
|
+
(string) - Creation time of the federation policy
|
|
137
|
+
"""
|
|
138
|
+
return pulumi.get(self, "create_time")
|
|
139
|
+
|
|
140
|
+
@create_time.setter
|
|
141
|
+
def create_time(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
142
|
+
pulumi.set(self, "create_time", value)
|
|
143
|
+
|
|
144
|
+
@_builtins.property
|
|
145
|
+
@pulumi.getter
|
|
146
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
147
|
+
"""
|
|
148
|
+
Description of the federation policy
|
|
149
|
+
"""
|
|
150
|
+
return pulumi.get(self, "description")
|
|
151
|
+
|
|
152
|
+
@description.setter
|
|
153
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
154
|
+
pulumi.set(self, "description", value)
|
|
155
|
+
|
|
156
|
+
@_builtins.property
|
|
157
|
+
@pulumi.getter
|
|
158
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
159
|
+
"""
|
|
160
|
+
(string) - Resource name for the federation policy. Example values include
|
|
161
|
+
`accounts/<account-id>/federationPolicies/my-federation-policy` for Account Federation Policies, and
|
|
162
|
+
`accounts/<account-id>/servicePrincipals/<service-principal-id>/federationPolicies/my-federation-policy`
|
|
163
|
+
for Service Principal Federation Policies. Typically an output parameter, which does not need to be
|
|
164
|
+
specified in create or update requests. If specified in a request, must match the value in the
|
|
165
|
+
request URL
|
|
166
|
+
"""
|
|
167
|
+
return pulumi.get(self, "name")
|
|
168
|
+
|
|
169
|
+
@name.setter
|
|
170
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
171
|
+
pulumi.set(self, "name", value)
|
|
172
|
+
|
|
173
|
+
@_builtins.property
|
|
174
|
+
@pulumi.getter(name="oidcPolicy")
|
|
175
|
+
def oidc_policy(self) -> Optional[pulumi.Input['AccountFederationPolicyOidcPolicyArgs']]:
|
|
176
|
+
return pulumi.get(self, "oidc_policy")
|
|
177
|
+
|
|
178
|
+
@oidc_policy.setter
|
|
179
|
+
def oidc_policy(self, value: Optional[pulumi.Input['AccountFederationPolicyOidcPolicyArgs']]):
|
|
180
|
+
pulumi.set(self, "oidc_policy", value)
|
|
181
|
+
|
|
182
|
+
@_builtins.property
|
|
183
|
+
@pulumi.getter(name="policyId")
|
|
184
|
+
def policy_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
185
|
+
"""
|
|
186
|
+
(string) - The ID of the federation policy. Output only
|
|
187
|
+
"""
|
|
188
|
+
return pulumi.get(self, "policy_id")
|
|
189
|
+
|
|
190
|
+
@policy_id.setter
|
|
191
|
+
def policy_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
192
|
+
pulumi.set(self, "policy_id", value)
|
|
193
|
+
|
|
194
|
+
@_builtins.property
|
|
195
|
+
@pulumi.getter(name="servicePrincipalId")
|
|
196
|
+
def service_principal_id(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
197
|
+
"""
|
|
198
|
+
(integer) - The service principal ID that this federation policy applies to. Output only. Only set for service principal federation policies
|
|
199
|
+
"""
|
|
200
|
+
return pulumi.get(self, "service_principal_id")
|
|
201
|
+
|
|
202
|
+
@service_principal_id.setter
|
|
203
|
+
def service_principal_id(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
204
|
+
pulumi.set(self, "service_principal_id", value)
|
|
205
|
+
|
|
206
|
+
@_builtins.property
|
|
207
|
+
@pulumi.getter
|
|
208
|
+
def uid(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
209
|
+
"""
|
|
210
|
+
(string) - Unique, immutable id of the federation policy
|
|
211
|
+
"""
|
|
212
|
+
return pulumi.get(self, "uid")
|
|
213
|
+
|
|
214
|
+
@uid.setter
|
|
215
|
+
def uid(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
216
|
+
pulumi.set(self, "uid", value)
|
|
217
|
+
|
|
218
|
+
@_builtins.property
|
|
219
|
+
@pulumi.getter(name="updateTime")
|
|
220
|
+
def update_time(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
221
|
+
"""
|
|
222
|
+
(string) - Last update time of the federation policy
|
|
223
|
+
"""
|
|
224
|
+
return pulumi.get(self, "update_time")
|
|
225
|
+
|
|
226
|
+
@update_time.setter
|
|
227
|
+
def update_time(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
228
|
+
pulumi.set(self, "update_time", value)
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
@pulumi.type_token("databricks:index/accountFederationPolicy:AccountFederationPolicy")
|
|
232
|
+
class AccountFederationPolicy(pulumi.CustomResource):
|
|
233
|
+
@overload
|
|
234
|
+
def __init__(__self__,
|
|
235
|
+
resource_name: str,
|
|
236
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
237
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
238
|
+
oidc_policy: Optional[pulumi.Input[Union['AccountFederationPolicyOidcPolicyArgs', 'AccountFederationPolicyOidcPolicyArgsDict']]] = None,
|
|
239
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
240
|
+
service_principal_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
241
|
+
__props__=None):
|
|
242
|
+
"""
|
|
243
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
244
|
+
|
|
245
|
+
Account federation policies allow users and service principals in your Databricks account to securely access Databricks APIs using tokens from your trusted identity providers (IdPs).
|
|
246
|
+
|
|
247
|
+
Token federation policies eliminate the need to manage Databricks secrets, and allow you to centralize management of token issuance policies in your IdP. Databricks token federation policies are typically used in combination with [SCIM](https://www.terraform.io/admin/users-groups/scim/index.html), so users in your IdP are synchronized into your Databricks account.
|
|
248
|
+
|
|
249
|
+
An account federation policy specifies:
|
|
250
|
+
* which IdP, or issuer, your Databricks account should accept tokens from
|
|
251
|
+
* how to determine which Databricks user, or subject, a token is issued for
|
|
252
|
+
|
|
253
|
+
## Example Usage
|
|
254
|
+
|
|
255
|
+
## Import
|
|
256
|
+
|
|
257
|
+
As of Pulumi v1.5, resources can be imported through configuration.
|
|
258
|
+
|
|
259
|
+
hcl
|
|
260
|
+
|
|
261
|
+
import {
|
|
262
|
+
|
|
263
|
+
id = "policy_id"
|
|
264
|
+
|
|
265
|
+
to = databricks_account_federation_policy.this
|
|
266
|
+
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
If you are using an older version of Pulumi, import the resource using the `pulumi import` command as follows:
|
|
270
|
+
|
|
271
|
+
```sh
|
|
272
|
+
$ pulumi import databricks:index/accountFederationPolicy:AccountFederationPolicy this "policy_id"
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
:param str resource_name: The name of the resource.
|
|
276
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
277
|
+
:param pulumi.Input[_builtins.str] description: Description of the federation policy
|
|
278
|
+
:param pulumi.Input[_builtins.str] policy_id: (string) - The ID of the federation policy. Output only
|
|
279
|
+
:param pulumi.Input[_builtins.int] service_principal_id: (integer) - The service principal ID that this federation policy applies to. Output only. Only set for service principal federation policies
|
|
280
|
+
"""
|
|
281
|
+
...
|
|
282
|
+
@overload
|
|
283
|
+
def __init__(__self__,
|
|
284
|
+
resource_name: str,
|
|
285
|
+
args: Optional[AccountFederationPolicyArgs] = None,
|
|
286
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
287
|
+
"""
|
|
288
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
289
|
+
|
|
290
|
+
Account federation policies allow users and service principals in your Databricks account to securely access Databricks APIs using tokens from your trusted identity providers (IdPs).
|
|
291
|
+
|
|
292
|
+
Token federation policies eliminate the need to manage Databricks secrets, and allow you to centralize management of token issuance policies in your IdP. Databricks token federation policies are typically used in combination with [SCIM](https://www.terraform.io/admin/users-groups/scim/index.html), so users in your IdP are synchronized into your Databricks account.
|
|
293
|
+
|
|
294
|
+
An account federation policy specifies:
|
|
295
|
+
* which IdP, or issuer, your Databricks account should accept tokens from
|
|
296
|
+
* how to determine which Databricks user, or subject, a token is issued for
|
|
297
|
+
|
|
298
|
+
## Example Usage
|
|
299
|
+
|
|
300
|
+
## Import
|
|
301
|
+
|
|
302
|
+
As of Pulumi v1.5, resources can be imported through configuration.
|
|
303
|
+
|
|
304
|
+
hcl
|
|
305
|
+
|
|
306
|
+
import {
|
|
307
|
+
|
|
308
|
+
id = "policy_id"
|
|
309
|
+
|
|
310
|
+
to = databricks_account_federation_policy.this
|
|
311
|
+
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
If you are using an older version of Pulumi, import the resource using the `pulumi import` command as follows:
|
|
315
|
+
|
|
316
|
+
```sh
|
|
317
|
+
$ pulumi import databricks:index/accountFederationPolicy:AccountFederationPolicy this "policy_id"
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
:param str resource_name: The name of the resource.
|
|
321
|
+
:param AccountFederationPolicyArgs args: The arguments to use to populate this resource's properties.
|
|
322
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
323
|
+
"""
|
|
324
|
+
...
|
|
325
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
326
|
+
resource_args, opts = _utilities.get_resource_args_opts(AccountFederationPolicyArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
327
|
+
if resource_args is not None:
|
|
328
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
329
|
+
else:
|
|
330
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
331
|
+
|
|
332
|
+
def _internal_init(__self__,
|
|
333
|
+
resource_name: str,
|
|
334
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
335
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
336
|
+
oidc_policy: Optional[pulumi.Input[Union['AccountFederationPolicyOidcPolicyArgs', 'AccountFederationPolicyOidcPolicyArgsDict']]] = None,
|
|
337
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
338
|
+
service_principal_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
339
|
+
__props__=None):
|
|
340
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
341
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
342
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
343
|
+
if opts.id is None:
|
|
344
|
+
if __props__ is not None:
|
|
345
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
346
|
+
__props__ = AccountFederationPolicyArgs.__new__(AccountFederationPolicyArgs)
|
|
347
|
+
|
|
348
|
+
__props__.__dict__["description"] = description
|
|
349
|
+
__props__.__dict__["oidc_policy"] = oidc_policy
|
|
350
|
+
__props__.__dict__["policy_id"] = policy_id
|
|
351
|
+
__props__.__dict__["service_principal_id"] = service_principal_id
|
|
352
|
+
__props__.__dict__["create_time"] = None
|
|
353
|
+
__props__.__dict__["name"] = None
|
|
354
|
+
__props__.__dict__["uid"] = None
|
|
355
|
+
__props__.__dict__["update_time"] = None
|
|
356
|
+
super(AccountFederationPolicy, __self__).__init__(
|
|
357
|
+
'databricks:index/accountFederationPolicy:AccountFederationPolicy',
|
|
358
|
+
resource_name,
|
|
359
|
+
__props__,
|
|
360
|
+
opts)
|
|
361
|
+
|
|
362
|
+
@staticmethod
|
|
363
|
+
def get(resource_name: str,
|
|
364
|
+
id: pulumi.Input[str],
|
|
365
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
366
|
+
create_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
367
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
368
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
369
|
+
oidc_policy: Optional[pulumi.Input[Union['AccountFederationPolicyOidcPolicyArgs', 'AccountFederationPolicyOidcPolicyArgsDict']]] = None,
|
|
370
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
371
|
+
service_principal_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
372
|
+
uid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
373
|
+
update_time: Optional[pulumi.Input[_builtins.str]] = None) -> 'AccountFederationPolicy':
|
|
374
|
+
"""
|
|
375
|
+
Get an existing AccountFederationPolicy resource's state with the given name, id, and optional extra
|
|
376
|
+
properties used to qualify the lookup.
|
|
377
|
+
|
|
378
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
379
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
380
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
381
|
+
:param pulumi.Input[_builtins.str] create_time: (string) - Creation time of the federation policy
|
|
382
|
+
:param pulumi.Input[_builtins.str] description: Description of the federation policy
|
|
383
|
+
:param pulumi.Input[_builtins.str] name: (string) - Resource name for the federation policy. Example values include
|
|
384
|
+
`accounts/<account-id>/federationPolicies/my-federation-policy` for Account Federation Policies, and
|
|
385
|
+
`accounts/<account-id>/servicePrincipals/<service-principal-id>/federationPolicies/my-federation-policy`
|
|
386
|
+
for Service Principal Federation Policies. Typically an output parameter, which does not need to be
|
|
387
|
+
specified in create or update requests. If specified in a request, must match the value in the
|
|
388
|
+
request URL
|
|
389
|
+
:param pulumi.Input[_builtins.str] policy_id: (string) - The ID of the federation policy. Output only
|
|
390
|
+
:param pulumi.Input[_builtins.int] service_principal_id: (integer) - The service principal ID that this federation policy applies to. Output only. Only set for service principal federation policies
|
|
391
|
+
:param pulumi.Input[_builtins.str] uid: (string) - Unique, immutable id of the federation policy
|
|
392
|
+
:param pulumi.Input[_builtins.str] update_time: (string) - Last update time of the federation policy
|
|
393
|
+
"""
|
|
394
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
395
|
+
|
|
396
|
+
__props__ = _AccountFederationPolicyState.__new__(_AccountFederationPolicyState)
|
|
397
|
+
|
|
398
|
+
__props__.__dict__["create_time"] = create_time
|
|
399
|
+
__props__.__dict__["description"] = description
|
|
400
|
+
__props__.__dict__["name"] = name
|
|
401
|
+
__props__.__dict__["oidc_policy"] = oidc_policy
|
|
402
|
+
__props__.__dict__["policy_id"] = policy_id
|
|
403
|
+
__props__.__dict__["service_principal_id"] = service_principal_id
|
|
404
|
+
__props__.__dict__["uid"] = uid
|
|
405
|
+
__props__.__dict__["update_time"] = update_time
|
|
406
|
+
return AccountFederationPolicy(resource_name, opts=opts, __props__=__props__)
|
|
407
|
+
|
|
408
|
+
@_builtins.property
|
|
409
|
+
@pulumi.getter(name="createTime")
|
|
410
|
+
def create_time(self) -> pulumi.Output[_builtins.str]:
|
|
411
|
+
"""
|
|
412
|
+
(string) - Creation time of the federation policy
|
|
413
|
+
"""
|
|
414
|
+
return pulumi.get(self, "create_time")
|
|
415
|
+
|
|
416
|
+
@_builtins.property
|
|
417
|
+
@pulumi.getter
|
|
418
|
+
def description(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
419
|
+
"""
|
|
420
|
+
Description of the federation policy
|
|
421
|
+
"""
|
|
422
|
+
return pulumi.get(self, "description")
|
|
423
|
+
|
|
424
|
+
@_builtins.property
|
|
425
|
+
@pulumi.getter
|
|
426
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
427
|
+
"""
|
|
428
|
+
(string) - Resource name for the federation policy. Example values include
|
|
429
|
+
`accounts/<account-id>/federationPolicies/my-federation-policy` for Account Federation Policies, and
|
|
430
|
+
`accounts/<account-id>/servicePrincipals/<service-principal-id>/federationPolicies/my-federation-policy`
|
|
431
|
+
for Service Principal Federation Policies. Typically an output parameter, which does not need to be
|
|
432
|
+
specified in create or update requests. If specified in a request, must match the value in the
|
|
433
|
+
request URL
|
|
434
|
+
"""
|
|
435
|
+
return pulumi.get(self, "name")
|
|
436
|
+
|
|
437
|
+
@_builtins.property
|
|
438
|
+
@pulumi.getter(name="oidcPolicy")
|
|
439
|
+
def oidc_policy(self) -> pulumi.Output[Optional['outputs.AccountFederationPolicyOidcPolicy']]:
|
|
440
|
+
return pulumi.get(self, "oidc_policy")
|
|
441
|
+
|
|
442
|
+
@_builtins.property
|
|
443
|
+
@pulumi.getter(name="policyId")
|
|
444
|
+
def policy_id(self) -> pulumi.Output[_builtins.str]:
|
|
445
|
+
"""
|
|
446
|
+
(string) - The ID of the federation policy. Output only
|
|
447
|
+
"""
|
|
448
|
+
return pulumi.get(self, "policy_id")
|
|
449
|
+
|
|
450
|
+
@_builtins.property
|
|
451
|
+
@pulumi.getter(name="servicePrincipalId")
|
|
452
|
+
def service_principal_id(self) -> pulumi.Output[_builtins.int]:
|
|
453
|
+
"""
|
|
454
|
+
(integer) - The service principal ID that this federation policy applies to. Output only. Only set for service principal federation policies
|
|
455
|
+
"""
|
|
456
|
+
return pulumi.get(self, "service_principal_id")
|
|
457
|
+
|
|
458
|
+
@_builtins.property
|
|
459
|
+
@pulumi.getter
|
|
460
|
+
def uid(self) -> pulumi.Output[_builtins.str]:
|
|
461
|
+
"""
|
|
462
|
+
(string) - Unique, immutable id of the federation policy
|
|
463
|
+
"""
|
|
464
|
+
return pulumi.get(self, "uid")
|
|
465
|
+
|
|
466
|
+
@_builtins.property
|
|
467
|
+
@pulumi.getter(name="updateTime")
|
|
468
|
+
def update_time(self) -> pulumi.Output[_builtins.str]:
|
|
469
|
+
"""
|
|
470
|
+
(string) - Last update time of the federation policy
|
|
471
|
+
"""
|
|
472
|
+
return pulumi.get(self, "update_time")
|
|
473
|
+
|