pulumi-databricks 1.75.0a1756323569__py3-none-any.whl → 1.77.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_databricks/__init__.py +129 -46
- pulumi_databricks/_inputs.py +13377 -13798
- pulumi_databricks/account_federation_policy.py +473 -0
- pulumi_databricks/account_network_policy.py +12 -4
- pulumi_databricks/account_setting_v2.py +759 -0
- pulumi_databricks/alert_v2.py +223 -90
- pulumi_databricks/app.py +111 -4
- pulumi_databricks/apps_settings_custom_template.py +531 -0
- pulumi_databricks/budget_policy.py +28 -5
- pulumi_databricks/catalog.py +322 -2
- pulumi_databricks/cluster.py +47 -168
- pulumi_databricks/config/__init__.pyi +2 -0
- pulumi_databricks/config/vars.py +4 -0
- pulumi_databricks/connection.py +0 -34
- pulumi_databricks/data_quality_monitor.py +453 -0
- pulumi_databricks/data_quality_refresh.py +492 -0
- pulumi_databricks/database_database_catalog.py +8 -4
- pulumi_databricks/database_instance.py +354 -73
- pulumi_databricks/database_synced_database_table.py +52 -4
- pulumi_databricks/entitlements.py +21 -21
- pulumi_databricks/entity_tag_assignment.py +409 -0
- pulumi_databricks/external_metadata.py +15 -11
- pulumi_databricks/feature_engineering_feature.py +480 -0
- pulumi_databricks/feature_engineering_materialized_feature.py +397 -0
- pulumi_databricks/get_account_federation_policies.py +127 -0
- pulumi_databricks/get_account_federation_policy.py +214 -0
- pulumi_databricks/get_account_network_policies.py +4 -0
- pulumi_databricks/get_account_network_policy.py +17 -18
- pulumi_databricks/get_account_setting_v2.py +331 -0
- pulumi_databricks/get_alert_v2.py +78 -70
- pulumi_databricks/get_alerts_v2.py +31 -12
- pulumi_databricks/get_app.py +21 -9
- pulumi_databricks/get_apps.py +22 -10
- pulumi_databricks/get_apps_settings_custom_template.py +207 -0
- pulumi_databricks/get_apps_settings_custom_templates.py +133 -0
- pulumi_databricks/get_aws_bucket_policy.py +6 -6
- pulumi_databricks/get_budget_policies.py +70 -6
- pulumi_databricks/get_budget_policy.py +35 -30
- pulumi_databricks/get_catalog.py +21 -4
- pulumi_databricks/get_catalogs.py +23 -4
- pulumi_databricks/get_cluster.py +21 -4
- pulumi_databricks/get_cluster_policy.py +23 -4
- pulumi_databricks/get_clusters.py +21 -4
- pulumi_databricks/get_current_metastore.py +21 -4
- pulumi_databricks/get_dashboards.py +24 -4
- pulumi_databricks/get_data_quality_monitor.py +210 -0
- pulumi_databricks/get_data_quality_monitors.py +143 -0
- pulumi_databricks/get_data_quality_refresh.py +270 -0
- pulumi_databricks/get_data_quality_refreshes.py +207 -0
- pulumi_databricks/get_database_database_catalog.py +6 -20
- pulumi_databricks/get_database_database_catalogs.py +46 -8
- pulumi_databricks/get_database_instance.py +122 -75
- pulumi_databricks/get_database_instances.py +31 -6
- pulumi_databricks/get_database_synced_database_table.py +7 -28
- pulumi_databricks/get_database_synced_database_tables.py +43 -5
- pulumi_databricks/get_directory.py +20 -1
- pulumi_databricks/get_entity_tag_assignment.py +202 -0
- pulumi_databricks/get_entity_tag_assignments.py +187 -0
- pulumi_databricks/get_external_location.py +21 -4
- pulumi_databricks/get_external_locations.py +23 -4
- pulumi_databricks/get_external_metadata.py +12 -50
- pulumi_databricks/get_external_metadatas.py +55 -6
- pulumi_databricks/get_feature_engineering_feature.py +179 -0
- pulumi_databricks/get_feature_engineering_features.py +103 -0
- pulumi_databricks/get_feature_engineering_materialized_feature.py +180 -0
- pulumi_databricks/get_feature_engineering_materialized_features.py +123 -0
- pulumi_databricks/get_functions.py +16 -1
- pulumi_databricks/get_instance_profiles.py +21 -4
- pulumi_databricks/get_jobs.py +23 -4
- pulumi_databricks/get_materialized_features_feature_tag.py +3 -11
- pulumi_databricks/get_materialized_features_feature_tags.py +59 -8
- pulumi_databricks/get_metastore.py +2 -2
- pulumi_databricks/get_mlflow_experiment.py +18 -1
- pulumi_databricks/get_mlflow_model.py +18 -1
- pulumi_databricks/get_mlflow_models.py +23 -4
- pulumi_databricks/get_node_type.py +42 -5
- pulumi_databricks/get_notification_destinations.py +17 -1
- pulumi_databricks/get_online_store.py +7 -17
- pulumi_databricks/get_online_stores.py +29 -8
- pulumi_databricks/get_pipelines.py +23 -4
- pulumi_databricks/get_policy_info.py +28 -99
- pulumi_databricks/get_policy_infos.py +92 -5
- pulumi_databricks/get_quality_monitor_v2.py +4 -0
- pulumi_databricks/get_quality_monitors_v2.py +22 -3
- pulumi_databricks/get_registered_model.py +19 -4
- pulumi_databricks/get_registered_model_versions.py +19 -4
- pulumi_databricks/get_rfa_access_request_destinations.py +126 -0
- pulumi_databricks/get_schema.py +18 -1
- pulumi_databricks/get_schemas.py +23 -4
- pulumi_databricks/get_service_principal_federation_policies.py +151 -0
- pulumi_databricks/get_service_principal_federation_policy.py +220 -0
- pulumi_databricks/get_serving_endpoints.py +19 -4
- pulumi_databricks/get_share.py +117 -18
- pulumi_databricks/get_shares.py +22 -3
- pulumi_databricks/get_spark_version.py +20 -1
- pulumi_databricks/get_sql_warehouse.py +16 -1
- pulumi_databricks/get_sql_warehouses.py +20 -1
- pulumi_databricks/get_storage_credential.py +18 -1
- pulumi_databricks/get_storage_credentials.py +23 -4
- pulumi_databricks/get_table.py +18 -1
- pulumi_databricks/get_tables.py +20 -1
- pulumi_databricks/get_tag_policies.py +139 -0
- pulumi_databricks/get_tag_policy.py +175 -0
- pulumi_databricks/get_views.py +20 -1
- pulumi_databricks/get_volume.py +18 -1
- pulumi_databricks/get_volumes.py +20 -1
- pulumi_databricks/get_workspace_network_option.py +8 -16
- pulumi_databricks/get_workspace_setting_v2.py +331 -0
- pulumi_databricks/get_zones.py +20 -1
- pulumi_databricks/git_credential.py +54 -7
- pulumi_databricks/grant.py +2 -2
- pulumi_databricks/group.py +21 -21
- pulumi_databricks/job.py +47 -0
- pulumi_databricks/library.py +165 -0
- pulumi_databricks/materialized_features_feature_tag.py +8 -4
- pulumi_databricks/mws_ncc_private_endpoint_rule.py +7 -7
- pulumi_databricks/mws_permission_assignment.py +16 -16
- pulumi_databricks/mws_storage_configurations.py +6 -6
- pulumi_databricks/mws_workspaces.py +76 -29
- pulumi_databricks/online_store.py +8 -4
- pulumi_databricks/outputs.py +26397 -22382
- pulumi_databricks/permission_assignment.py +266 -24
- pulumi_databricks/pipeline.py +37 -3
- pulumi_databricks/policy_info.py +43 -39
- pulumi_databricks/provider.py +15 -0
- pulumi_databricks/pulumi-plugin.json +1 -1
- pulumi_databricks/quality_monitor.py +47 -0
- pulumi_databricks/quality_monitor_v2.py +8 -4
- pulumi_databricks/registered_model.py +301 -29
- pulumi_databricks/rfa_access_request_destinations.py +286 -0
- pulumi_databricks/service_principal_federation_policy.py +469 -0
- pulumi_databricks/share.py +71 -84
- pulumi_databricks/sql_endpoint.py +47 -0
- pulumi_databricks/sql_table.py +35 -7
- pulumi_databricks/storage_credential.py +59 -6
- pulumi_databricks/tag_policy.py +357 -0
- pulumi_databricks/user.py +21 -21
- pulumi_databricks/workspace_binding.py +0 -48
- pulumi_databricks/workspace_network_option.py +8 -4
- pulumi_databricks/workspace_setting_v2.py +759 -0
- {pulumi_databricks-1.75.0a1756323569.dist-info → pulumi_databricks-1.77.0.dist-info}/METADATA +1 -1
- pulumi_databricks-1.77.0.dist-info/RECORD +250 -0
- pulumi_databricks/clean_room_asset.py +0 -891
- pulumi_databricks/clean_room_auto_approval_rule.py +0 -426
- pulumi_databricks/clean_rooms_clean_room.py +0 -518
- pulumi_databricks/get_clean_room_asset.py +0 -399
- pulumi_databricks/get_clean_room_asset_revisions_clean_room_asset.py +0 -375
- pulumi_databricks/get_clean_room_asset_revisions_clean_room_assets.py +0 -82
- pulumi_databricks/get_clean_room_assets.py +0 -104
- pulumi_databricks/get_clean_room_auto_approval_rule.py +0 -200
- pulumi_databricks/get_clean_room_auto_approval_rules.py +0 -82
- pulumi_databricks/get_clean_rooms_clean_room.py +0 -272
- pulumi_databricks/get_clean_rooms_clean_rooms.py +0 -104
- pulumi_databricks/get_recipient_federation_policies.py +0 -82
- pulumi_databricks/get_recipient_federation_policy.py +0 -165
- pulumi_databricks/recipient_federation_policy.py +0 -346
- pulumi_databricks-1.75.0a1756323569.dist-info/RECORD +0 -231
- {pulumi_databricks-1.75.0a1756323569.dist-info → pulumi_databricks-1.77.0.dist-info}/WHEEL +0 -0
- {pulumi_databricks-1.75.0a1756323569.dist-info → pulumi_databricks-1.77.0.dist-info}/top_level.txt +0 -0
|
@@ -22,20 +22,25 @@ __all__ = ['DatabaseInstanceArgs', 'DatabaseInstance']
|
|
|
22
22
|
class DatabaseInstanceArgs:
|
|
23
23
|
def __init__(__self__, *,
|
|
24
24
|
capacity: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
|
+
custom_tags: Optional[pulumi.Input[Sequence[pulumi.Input['DatabaseInstanceCustomTagArgs']]]] = None,
|
|
26
|
+
enable_pg_native_login: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
25
27
|
enable_readable_secondaries: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
26
28
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
27
29
|
node_count: Optional[pulumi.Input[_builtins.int]] = None,
|
|
28
30
|
parent_instance_ref: Optional[pulumi.Input['DatabaseInstanceParentInstanceRefArgs']] = None,
|
|
29
31
|
purge_on_delete: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
30
32
|
retention_window_in_days: Optional[pulumi.Input[_builtins.int]] = None,
|
|
31
|
-
stopped: Optional[pulumi.Input[_builtins.bool]] = None
|
|
33
|
+
stopped: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
34
|
+
usage_policy_id: Optional[pulumi.Input[_builtins.str]] = None):
|
|
32
35
|
"""
|
|
33
36
|
The set of arguments for constructing a DatabaseInstance resource.
|
|
34
37
|
:param pulumi.Input[_builtins.str] capacity: The sku of the instance. Valid values are "CU_1", "CU_2", "CU_4", "CU_8"
|
|
38
|
+
:param pulumi.Input[Sequence[pulumi.Input['DatabaseInstanceCustomTagArgs']]] custom_tags: Custom tags associated with the instance. This field is only included on create and update responses
|
|
39
|
+
:param pulumi.Input[_builtins.bool] enable_pg_native_login: Whether to enable PG native password login on the instance. Defaults to false
|
|
35
40
|
:param pulumi.Input[_builtins.bool] enable_readable_secondaries: Whether to enable secondaries to serve read-only traffic. Defaults to false
|
|
36
41
|
:param pulumi.Input[_builtins.str] name: The name of the instance. This is the unique identifier for the instance
|
|
37
42
|
:param pulumi.Input[_builtins.int] node_count: The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to
|
|
38
|
-
1 primary and 0 secondaries
|
|
43
|
+
1 primary and 0 secondaries. This field is input only, see effective_node_count for the output
|
|
39
44
|
:param pulumi.Input['DatabaseInstanceParentInstanceRefArgs'] parent_instance_ref: The ref of the parent instance. This is only available if the instance is
|
|
40
45
|
child instance.
|
|
41
46
|
Input: For specifying the parent instance to create a child instance. Optional.
|
|
@@ -44,10 +49,15 @@ class DatabaseInstanceArgs:
|
|
|
44
49
|
:param pulumi.Input[_builtins.int] retention_window_in_days: The retention window for the instance. This is the time window in days
|
|
45
50
|
for which the historical data is retained. The default value is 7 days.
|
|
46
51
|
Valid values are 2 to 35 days
|
|
47
|
-
:param pulumi.Input[_builtins.bool] stopped: Whether the instance
|
|
52
|
+
:param pulumi.Input[_builtins.bool] stopped: Whether to stop the instance. An input only param, see effective_stopped for the output
|
|
53
|
+
:param pulumi.Input[_builtins.str] usage_policy_id: The desired usage policy to associate with the instance
|
|
48
54
|
"""
|
|
49
55
|
if capacity is not None:
|
|
50
56
|
pulumi.set(__self__, "capacity", capacity)
|
|
57
|
+
if custom_tags is not None:
|
|
58
|
+
pulumi.set(__self__, "custom_tags", custom_tags)
|
|
59
|
+
if enable_pg_native_login is not None:
|
|
60
|
+
pulumi.set(__self__, "enable_pg_native_login", enable_pg_native_login)
|
|
51
61
|
if enable_readable_secondaries is not None:
|
|
52
62
|
pulumi.set(__self__, "enable_readable_secondaries", enable_readable_secondaries)
|
|
53
63
|
if name is not None:
|
|
@@ -62,6 +72,8 @@ class DatabaseInstanceArgs:
|
|
|
62
72
|
pulumi.set(__self__, "retention_window_in_days", retention_window_in_days)
|
|
63
73
|
if stopped is not None:
|
|
64
74
|
pulumi.set(__self__, "stopped", stopped)
|
|
75
|
+
if usage_policy_id is not None:
|
|
76
|
+
pulumi.set(__self__, "usage_policy_id", usage_policy_id)
|
|
65
77
|
|
|
66
78
|
@_builtins.property
|
|
67
79
|
@pulumi.getter
|
|
@@ -75,6 +87,30 @@ class DatabaseInstanceArgs:
|
|
|
75
87
|
def capacity(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
76
88
|
pulumi.set(self, "capacity", value)
|
|
77
89
|
|
|
90
|
+
@_builtins.property
|
|
91
|
+
@pulumi.getter(name="customTags")
|
|
92
|
+
def custom_tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DatabaseInstanceCustomTagArgs']]]]:
|
|
93
|
+
"""
|
|
94
|
+
Custom tags associated with the instance. This field is only included on create and update responses
|
|
95
|
+
"""
|
|
96
|
+
return pulumi.get(self, "custom_tags")
|
|
97
|
+
|
|
98
|
+
@custom_tags.setter
|
|
99
|
+
def custom_tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DatabaseInstanceCustomTagArgs']]]]):
|
|
100
|
+
pulumi.set(self, "custom_tags", value)
|
|
101
|
+
|
|
102
|
+
@_builtins.property
|
|
103
|
+
@pulumi.getter(name="enablePgNativeLogin")
|
|
104
|
+
def enable_pg_native_login(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
105
|
+
"""
|
|
106
|
+
Whether to enable PG native password login on the instance. Defaults to false
|
|
107
|
+
"""
|
|
108
|
+
return pulumi.get(self, "enable_pg_native_login")
|
|
109
|
+
|
|
110
|
+
@enable_pg_native_login.setter
|
|
111
|
+
def enable_pg_native_login(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
112
|
+
pulumi.set(self, "enable_pg_native_login", value)
|
|
113
|
+
|
|
78
114
|
@_builtins.property
|
|
79
115
|
@pulumi.getter(name="enableReadableSecondaries")
|
|
80
116
|
def enable_readable_secondaries(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
@@ -104,7 +140,7 @@ class DatabaseInstanceArgs:
|
|
|
104
140
|
def node_count(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
105
141
|
"""
|
|
106
142
|
The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to
|
|
107
|
-
1 primary and 0 secondaries
|
|
143
|
+
1 primary and 0 secondaries. This field is input only, see effective_node_count for the output
|
|
108
144
|
"""
|
|
109
145
|
return pulumi.get(self, "node_count")
|
|
110
146
|
|
|
@@ -157,7 +193,7 @@ class DatabaseInstanceArgs:
|
|
|
157
193
|
@pulumi.getter
|
|
158
194
|
def stopped(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
159
195
|
"""
|
|
160
|
-
Whether the instance
|
|
196
|
+
Whether to stop the instance. An input only param, see effective_stopped for the output
|
|
161
197
|
"""
|
|
162
198
|
return pulumi.get(self, "stopped")
|
|
163
199
|
|
|
@@ -165,6 +201,18 @@ class DatabaseInstanceArgs:
|
|
|
165
201
|
def stopped(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
166
202
|
pulumi.set(self, "stopped", value)
|
|
167
203
|
|
|
204
|
+
@_builtins.property
|
|
205
|
+
@pulumi.getter(name="usagePolicyId")
|
|
206
|
+
def usage_policy_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
207
|
+
"""
|
|
208
|
+
The desired usage policy to associate with the instance
|
|
209
|
+
"""
|
|
210
|
+
return pulumi.get(self, "usage_policy_id")
|
|
211
|
+
|
|
212
|
+
@usage_policy_id.setter
|
|
213
|
+
def usage_policy_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
214
|
+
pulumi.set(self, "usage_policy_id", value)
|
|
215
|
+
|
|
168
216
|
|
|
169
217
|
@pulumi.input_type
|
|
170
218
|
class _DatabaseInstanceState:
|
|
@@ -173,10 +221,16 @@ class _DatabaseInstanceState:
|
|
|
173
221
|
child_instance_refs: Optional[pulumi.Input[Sequence[pulumi.Input['DatabaseInstanceChildInstanceRefArgs']]]] = None,
|
|
174
222
|
creation_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
175
223
|
creator: Optional[pulumi.Input[_builtins.str]] = None,
|
|
224
|
+
custom_tags: Optional[pulumi.Input[Sequence[pulumi.Input['DatabaseInstanceCustomTagArgs']]]] = None,
|
|
225
|
+
effective_capacity: Optional[pulumi.Input[_builtins.str]] = None,
|
|
226
|
+
effective_custom_tags: Optional[pulumi.Input[Sequence[pulumi.Input['DatabaseInstanceEffectiveCustomTagArgs']]]] = None,
|
|
227
|
+
effective_enable_pg_native_login: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
176
228
|
effective_enable_readable_secondaries: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
177
229
|
effective_node_count: Optional[pulumi.Input[_builtins.int]] = None,
|
|
178
230
|
effective_retention_window_in_days: Optional[pulumi.Input[_builtins.int]] = None,
|
|
179
231
|
effective_stopped: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
232
|
+
effective_usage_policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
233
|
+
enable_pg_native_login: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
180
234
|
enable_readable_secondaries: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
181
235
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
182
236
|
node_count: Optional[pulumi.Input[_builtins.int]] = None,
|
|
@@ -188,7 +242,8 @@ class _DatabaseInstanceState:
|
|
|
188
242
|
retention_window_in_days: Optional[pulumi.Input[_builtins.int]] = None,
|
|
189
243
|
state: Optional[pulumi.Input[_builtins.str]] = None,
|
|
190
244
|
stopped: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
191
|
-
uid: Optional[pulumi.Input[_builtins.str]] = None
|
|
245
|
+
uid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
246
|
+
usage_policy_id: Optional[pulumi.Input[_builtins.str]] = None):
|
|
192
247
|
"""
|
|
193
248
|
Input properties used for looking up and filtering DatabaseInstance resources.
|
|
194
249
|
:param pulumi.Input[_builtins.str] capacity: The sku of the instance. Valid values are "CU_1", "CU_2", "CU_4", "CU_8"
|
|
@@ -196,22 +251,22 @@ class _DatabaseInstanceState:
|
|
|
196
251
|
parent instance
|
|
197
252
|
:param pulumi.Input[_builtins.str] creation_time: (string) - The timestamp when the instance was created
|
|
198
253
|
:param pulumi.Input[_builtins.str] creator: (string) - The email of the creator of the instance
|
|
199
|
-
:param pulumi.Input[
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
:param pulumi.Input[_builtins.
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
:param pulumi.Input[_builtins.bool] effective_stopped: (boolean) -
|
|
209
|
-
|
|
210
|
-
|
|
254
|
+
:param pulumi.Input[Sequence[pulumi.Input['DatabaseInstanceCustomTagArgs']]] custom_tags: Custom tags associated with the instance. This field is only included on create and update responses
|
|
255
|
+
:param pulumi.Input[_builtins.str] effective_capacity: (string, deprecated) - Deprecated. The sku of the instance; this field will always match the value of capacity
|
|
256
|
+
:param pulumi.Input[Sequence[pulumi.Input['DatabaseInstanceEffectiveCustomTagArgs']]] effective_custom_tags: (list of CustomTag) - The recorded custom tags associated with the instance
|
|
257
|
+
:param pulumi.Input[_builtins.bool] effective_enable_pg_native_login: (boolean) - Whether the instance has PG native password login enabled
|
|
258
|
+
:param pulumi.Input[_builtins.bool] effective_enable_readable_secondaries: (boolean) - Whether secondaries serving read-only traffic are enabled. Defaults to false
|
|
259
|
+
:param pulumi.Input[_builtins.int] effective_node_count: (integer) - The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to
|
|
260
|
+
1 primary and 0 secondaries
|
|
261
|
+
:param pulumi.Input[_builtins.int] effective_retention_window_in_days: (integer) - The retention window for the instance. This is the time window in days
|
|
262
|
+
for which the historical data is retained
|
|
263
|
+
:param pulumi.Input[_builtins.bool] effective_stopped: (boolean) - Whether the instance is stopped
|
|
264
|
+
:param pulumi.Input[_builtins.str] effective_usage_policy_id: (string) - The policy that is applied to the instance
|
|
265
|
+
:param pulumi.Input[_builtins.bool] enable_pg_native_login: Whether to enable PG native password login on the instance. Defaults to false
|
|
211
266
|
:param pulumi.Input[_builtins.bool] enable_readable_secondaries: Whether to enable secondaries to serve read-only traffic. Defaults to false
|
|
212
267
|
:param pulumi.Input[_builtins.str] name: The name of the instance. This is the unique identifier for the instance
|
|
213
268
|
:param pulumi.Input[_builtins.int] node_count: The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to
|
|
214
|
-
1 primary and 0 secondaries
|
|
269
|
+
1 primary and 0 secondaries. This field is input only, see effective_node_count for the output
|
|
215
270
|
:param pulumi.Input['DatabaseInstanceParentInstanceRefArgs'] parent_instance_ref: The ref of the parent instance. This is only available if the instance is
|
|
216
271
|
child instance.
|
|
217
272
|
Input: For specifying the parent instance to create a child instance. Optional.
|
|
@@ -225,8 +280,9 @@ class _DatabaseInstanceState:
|
|
|
225
280
|
for which the historical data is retained. The default value is 7 days.
|
|
226
281
|
Valid values are 2 to 35 days
|
|
227
282
|
:param pulumi.Input[_builtins.str] state: (string) - The current state of the instance. Possible values are: `AVAILABLE`, `DELETING`, `FAILING_OVER`, `STARTING`, `STOPPED`, `UPDATING`
|
|
228
|
-
:param pulumi.Input[_builtins.bool] stopped: Whether the instance
|
|
283
|
+
:param pulumi.Input[_builtins.bool] stopped: Whether to stop the instance. An input only param, see effective_stopped for the output
|
|
229
284
|
:param pulumi.Input[_builtins.str] uid: (string) - Id of the ref database instance
|
|
285
|
+
:param pulumi.Input[_builtins.str] usage_policy_id: The desired usage policy to associate with the instance
|
|
230
286
|
"""
|
|
231
287
|
if capacity is not None:
|
|
232
288
|
pulumi.set(__self__, "capacity", capacity)
|
|
@@ -236,6 +292,14 @@ class _DatabaseInstanceState:
|
|
|
236
292
|
pulumi.set(__self__, "creation_time", creation_time)
|
|
237
293
|
if creator is not None:
|
|
238
294
|
pulumi.set(__self__, "creator", creator)
|
|
295
|
+
if custom_tags is not None:
|
|
296
|
+
pulumi.set(__self__, "custom_tags", custom_tags)
|
|
297
|
+
if effective_capacity is not None:
|
|
298
|
+
pulumi.set(__self__, "effective_capacity", effective_capacity)
|
|
299
|
+
if effective_custom_tags is not None:
|
|
300
|
+
pulumi.set(__self__, "effective_custom_tags", effective_custom_tags)
|
|
301
|
+
if effective_enable_pg_native_login is not None:
|
|
302
|
+
pulumi.set(__self__, "effective_enable_pg_native_login", effective_enable_pg_native_login)
|
|
239
303
|
if effective_enable_readable_secondaries is not None:
|
|
240
304
|
pulumi.set(__self__, "effective_enable_readable_secondaries", effective_enable_readable_secondaries)
|
|
241
305
|
if effective_node_count is not None:
|
|
@@ -244,6 +308,10 @@ class _DatabaseInstanceState:
|
|
|
244
308
|
pulumi.set(__self__, "effective_retention_window_in_days", effective_retention_window_in_days)
|
|
245
309
|
if effective_stopped is not None:
|
|
246
310
|
pulumi.set(__self__, "effective_stopped", effective_stopped)
|
|
311
|
+
if effective_usage_policy_id is not None:
|
|
312
|
+
pulumi.set(__self__, "effective_usage_policy_id", effective_usage_policy_id)
|
|
313
|
+
if enable_pg_native_login is not None:
|
|
314
|
+
pulumi.set(__self__, "enable_pg_native_login", enable_pg_native_login)
|
|
247
315
|
if enable_readable_secondaries is not None:
|
|
248
316
|
pulumi.set(__self__, "enable_readable_secondaries", enable_readable_secondaries)
|
|
249
317
|
if name is not None:
|
|
@@ -268,6 +336,8 @@ class _DatabaseInstanceState:
|
|
|
268
336
|
pulumi.set(__self__, "stopped", stopped)
|
|
269
337
|
if uid is not None:
|
|
270
338
|
pulumi.set(__self__, "uid", uid)
|
|
339
|
+
if usage_policy_id is not None:
|
|
340
|
+
pulumi.set(__self__, "usage_policy_id", usage_policy_id)
|
|
271
341
|
|
|
272
342
|
@_builtins.property
|
|
273
343
|
@pulumi.getter
|
|
@@ -318,13 +388,59 @@ class _DatabaseInstanceState:
|
|
|
318
388
|
def creator(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
319
389
|
pulumi.set(self, "creator", value)
|
|
320
390
|
|
|
391
|
+
@_builtins.property
|
|
392
|
+
@pulumi.getter(name="customTags")
|
|
393
|
+
def custom_tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DatabaseInstanceCustomTagArgs']]]]:
|
|
394
|
+
"""
|
|
395
|
+
Custom tags associated with the instance. This field is only included on create and update responses
|
|
396
|
+
"""
|
|
397
|
+
return pulumi.get(self, "custom_tags")
|
|
398
|
+
|
|
399
|
+
@custom_tags.setter
|
|
400
|
+
def custom_tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DatabaseInstanceCustomTagArgs']]]]):
|
|
401
|
+
pulumi.set(self, "custom_tags", value)
|
|
402
|
+
|
|
403
|
+
@_builtins.property
|
|
404
|
+
@pulumi.getter(name="effectiveCapacity")
|
|
405
|
+
def effective_capacity(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
406
|
+
"""
|
|
407
|
+
(string, deprecated) - Deprecated. The sku of the instance; this field will always match the value of capacity
|
|
408
|
+
"""
|
|
409
|
+
return pulumi.get(self, "effective_capacity")
|
|
410
|
+
|
|
411
|
+
@effective_capacity.setter
|
|
412
|
+
def effective_capacity(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
413
|
+
pulumi.set(self, "effective_capacity", value)
|
|
414
|
+
|
|
415
|
+
@_builtins.property
|
|
416
|
+
@pulumi.getter(name="effectiveCustomTags")
|
|
417
|
+
def effective_custom_tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DatabaseInstanceEffectiveCustomTagArgs']]]]:
|
|
418
|
+
"""
|
|
419
|
+
(list of CustomTag) - The recorded custom tags associated with the instance
|
|
420
|
+
"""
|
|
421
|
+
return pulumi.get(self, "effective_custom_tags")
|
|
422
|
+
|
|
423
|
+
@effective_custom_tags.setter
|
|
424
|
+
def effective_custom_tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DatabaseInstanceEffectiveCustomTagArgs']]]]):
|
|
425
|
+
pulumi.set(self, "effective_custom_tags", value)
|
|
426
|
+
|
|
427
|
+
@_builtins.property
|
|
428
|
+
@pulumi.getter(name="effectiveEnablePgNativeLogin")
|
|
429
|
+
def effective_enable_pg_native_login(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
430
|
+
"""
|
|
431
|
+
(boolean) - Whether the instance has PG native password login enabled
|
|
432
|
+
"""
|
|
433
|
+
return pulumi.get(self, "effective_enable_pg_native_login")
|
|
434
|
+
|
|
435
|
+
@effective_enable_pg_native_login.setter
|
|
436
|
+
def effective_enable_pg_native_login(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
437
|
+
pulumi.set(self, "effective_enable_pg_native_login", value)
|
|
438
|
+
|
|
321
439
|
@_builtins.property
|
|
322
440
|
@pulumi.getter(name="effectiveEnableReadableSecondaries")
|
|
323
441
|
def effective_enable_readable_secondaries(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
324
442
|
"""
|
|
325
|
-
(boolean) -
|
|
326
|
-
`enable_readable_secondaries` will only be set in Create/Update response messages if and only if the user provides the field via the request.
|
|
327
|
-
`effective_enable_readable_secondaries` on the other hand will always bet set in all response messages (Create/Update/Get/List)
|
|
443
|
+
(boolean) - Whether secondaries serving read-only traffic are enabled. Defaults to false
|
|
328
444
|
"""
|
|
329
445
|
return pulumi.get(self, "effective_enable_readable_secondaries")
|
|
330
446
|
|
|
@@ -336,9 +452,8 @@ class _DatabaseInstanceState:
|
|
|
336
452
|
@pulumi.getter(name="effectiveNodeCount")
|
|
337
453
|
def effective_node_count(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
338
454
|
"""
|
|
339
|
-
(integer) -
|
|
340
|
-
|
|
341
|
-
`effective_node_count` on the other hand will always bet set in all response messages (Create/Update/Get/List)
|
|
455
|
+
(integer) - The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to
|
|
456
|
+
1 primary and 0 secondaries
|
|
342
457
|
"""
|
|
343
458
|
return pulumi.get(self, "effective_node_count")
|
|
344
459
|
|
|
@@ -350,9 +465,8 @@ class _DatabaseInstanceState:
|
|
|
350
465
|
@pulumi.getter(name="effectiveRetentionWindowInDays")
|
|
351
466
|
def effective_retention_window_in_days(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
352
467
|
"""
|
|
353
|
-
(integer) -
|
|
354
|
-
|
|
355
|
-
`effective_retention_window_in_days` on the other hand will always bet set in all response messages (Create/Update/Get/List)
|
|
468
|
+
(integer) - The retention window for the instance. This is the time window in days
|
|
469
|
+
for which the historical data is retained
|
|
356
470
|
"""
|
|
357
471
|
return pulumi.get(self, "effective_retention_window_in_days")
|
|
358
472
|
|
|
@@ -364,9 +478,7 @@ class _DatabaseInstanceState:
|
|
|
364
478
|
@pulumi.getter(name="effectiveStopped")
|
|
365
479
|
def effective_stopped(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
366
480
|
"""
|
|
367
|
-
(boolean) -
|
|
368
|
-
`stopped` will only be set in Create/Update response messages if and only if the user provides the field via the request.
|
|
369
|
-
`effective_stopped` on the other hand will always bet set in all response messages (Create/Update/Get/List)
|
|
481
|
+
(boolean) - Whether the instance is stopped
|
|
370
482
|
"""
|
|
371
483
|
return pulumi.get(self, "effective_stopped")
|
|
372
484
|
|
|
@@ -374,6 +486,30 @@ class _DatabaseInstanceState:
|
|
|
374
486
|
def effective_stopped(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
375
487
|
pulumi.set(self, "effective_stopped", value)
|
|
376
488
|
|
|
489
|
+
@_builtins.property
|
|
490
|
+
@pulumi.getter(name="effectiveUsagePolicyId")
|
|
491
|
+
def effective_usage_policy_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
492
|
+
"""
|
|
493
|
+
(string) - The policy that is applied to the instance
|
|
494
|
+
"""
|
|
495
|
+
return pulumi.get(self, "effective_usage_policy_id")
|
|
496
|
+
|
|
497
|
+
@effective_usage_policy_id.setter
|
|
498
|
+
def effective_usage_policy_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
499
|
+
pulumi.set(self, "effective_usage_policy_id", value)
|
|
500
|
+
|
|
501
|
+
@_builtins.property
|
|
502
|
+
@pulumi.getter(name="enablePgNativeLogin")
|
|
503
|
+
def enable_pg_native_login(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
504
|
+
"""
|
|
505
|
+
Whether to enable PG native password login on the instance. Defaults to false
|
|
506
|
+
"""
|
|
507
|
+
return pulumi.get(self, "enable_pg_native_login")
|
|
508
|
+
|
|
509
|
+
@enable_pg_native_login.setter
|
|
510
|
+
def enable_pg_native_login(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
511
|
+
pulumi.set(self, "enable_pg_native_login", value)
|
|
512
|
+
|
|
377
513
|
@_builtins.property
|
|
378
514
|
@pulumi.getter(name="enableReadableSecondaries")
|
|
379
515
|
def enable_readable_secondaries(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
@@ -403,7 +539,7 @@ class _DatabaseInstanceState:
|
|
|
403
539
|
def node_count(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
404
540
|
"""
|
|
405
541
|
The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to
|
|
406
|
-
1 primary and 0 secondaries
|
|
542
|
+
1 primary and 0 secondaries. This field is input only, see effective_node_count for the output
|
|
407
543
|
"""
|
|
408
544
|
return pulumi.get(self, "node_count")
|
|
409
545
|
|
|
@@ -505,7 +641,7 @@ class _DatabaseInstanceState:
|
|
|
505
641
|
@pulumi.getter
|
|
506
642
|
def stopped(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
507
643
|
"""
|
|
508
|
-
Whether the instance
|
|
644
|
+
Whether to stop the instance. An input only param, see effective_stopped for the output
|
|
509
645
|
"""
|
|
510
646
|
return pulumi.get(self, "stopped")
|
|
511
647
|
|
|
@@ -525,6 +661,18 @@ class _DatabaseInstanceState:
|
|
|
525
661
|
def uid(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
526
662
|
pulumi.set(self, "uid", value)
|
|
527
663
|
|
|
664
|
+
@_builtins.property
|
|
665
|
+
@pulumi.getter(name="usagePolicyId")
|
|
666
|
+
def usage_policy_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
667
|
+
"""
|
|
668
|
+
The desired usage policy to associate with the instance
|
|
669
|
+
"""
|
|
670
|
+
return pulumi.get(self, "usage_policy_id")
|
|
671
|
+
|
|
672
|
+
@usage_policy_id.setter
|
|
673
|
+
def usage_policy_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
674
|
+
pulumi.set(self, "usage_policy_id", value)
|
|
675
|
+
|
|
528
676
|
|
|
529
677
|
@pulumi.type_token("databricks:index/databaseInstance:DatabaseInstance")
|
|
530
678
|
class DatabaseInstance(pulumi.CustomResource):
|
|
@@ -533,6 +681,8 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
533
681
|
resource_name: str,
|
|
534
682
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
535
683
|
capacity: Optional[pulumi.Input[_builtins.str]] = None,
|
|
684
|
+
custom_tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DatabaseInstanceCustomTagArgs', 'DatabaseInstanceCustomTagArgsDict']]]]] = None,
|
|
685
|
+
enable_pg_native_login: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
536
686
|
enable_readable_secondaries: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
537
687
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
538
688
|
node_count: Optional[pulumi.Input[_builtins.int]] = None,
|
|
@@ -540,8 +690,11 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
540
690
|
purge_on_delete: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
541
691
|
retention_window_in_days: Optional[pulumi.Input[_builtins.int]] = None,
|
|
542
692
|
stopped: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
693
|
+
usage_policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
543
694
|
__props__=None):
|
|
544
695
|
"""
|
|
696
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
697
|
+
|
|
545
698
|
Lakebase Database Instances are managed Postgres instances, composed of a primary Postgres compute instance and 0 or more read replica instances.
|
|
546
699
|
|
|
547
700
|
## Example Usage
|
|
@@ -590,6 +743,30 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
590
743
|
})
|
|
591
744
|
```
|
|
592
745
|
|
|
746
|
+
### Example with a usage policy and custom tags
|
|
747
|
+
|
|
748
|
+
This example creates a Database Instance with an associated usage policy and custom tags.
|
|
749
|
+
|
|
750
|
+
```python
|
|
751
|
+
import pulumi
|
|
752
|
+
import pulumi_databricks as databricks
|
|
753
|
+
|
|
754
|
+
this = databricks.DatabaseInstance("this",
|
|
755
|
+
name="my-database-instance",
|
|
756
|
+
capacity="CU_8",
|
|
757
|
+
usage_policy_id="948192fa-a98b-498f-a09b-ecee79d8b983",
|
|
758
|
+
custom_tags=[
|
|
759
|
+
{
|
|
760
|
+
"key": "custom_tag_key1",
|
|
761
|
+
"value": "custom_tag_value1",
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"key": "custom_tag_key2",
|
|
765
|
+
"value": "custom_tag_value2",
|
|
766
|
+
},
|
|
767
|
+
])
|
|
768
|
+
```
|
|
769
|
+
|
|
593
770
|
## Import
|
|
594
771
|
|
|
595
772
|
As of Pulumi v1.5, resources can be imported through configuration.
|
|
@@ -598,7 +775,7 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
598
775
|
|
|
599
776
|
import {
|
|
600
777
|
|
|
601
|
-
id = name
|
|
778
|
+
id = "name"
|
|
602
779
|
|
|
603
780
|
to = databricks_database_instance.this
|
|
604
781
|
|
|
@@ -607,16 +784,18 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
607
784
|
If you are using an older version of Pulumi, import the resource using the `pulumi import` command as follows:
|
|
608
785
|
|
|
609
786
|
```sh
|
|
610
|
-
$ pulumi import databricks:index/databaseInstance:DatabaseInstance
|
|
787
|
+
$ pulumi import databricks:index/databaseInstance:DatabaseInstance this "name"
|
|
611
788
|
```
|
|
612
789
|
|
|
613
790
|
:param str resource_name: The name of the resource.
|
|
614
791
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
615
792
|
:param pulumi.Input[_builtins.str] capacity: The sku of the instance. Valid values are "CU_1", "CU_2", "CU_4", "CU_8"
|
|
793
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['DatabaseInstanceCustomTagArgs', 'DatabaseInstanceCustomTagArgsDict']]]] custom_tags: Custom tags associated with the instance. This field is only included on create and update responses
|
|
794
|
+
:param pulumi.Input[_builtins.bool] enable_pg_native_login: Whether to enable PG native password login on the instance. Defaults to false
|
|
616
795
|
:param pulumi.Input[_builtins.bool] enable_readable_secondaries: Whether to enable secondaries to serve read-only traffic. Defaults to false
|
|
617
796
|
:param pulumi.Input[_builtins.str] name: The name of the instance. This is the unique identifier for the instance
|
|
618
797
|
:param pulumi.Input[_builtins.int] node_count: The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to
|
|
619
|
-
1 primary and 0 secondaries
|
|
798
|
+
1 primary and 0 secondaries. This field is input only, see effective_node_count for the output
|
|
620
799
|
:param pulumi.Input[Union['DatabaseInstanceParentInstanceRefArgs', 'DatabaseInstanceParentInstanceRefArgsDict']] parent_instance_ref: The ref of the parent instance. This is only available if the instance is
|
|
621
800
|
child instance.
|
|
622
801
|
Input: For specifying the parent instance to create a child instance. Optional.
|
|
@@ -625,7 +804,8 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
625
804
|
:param pulumi.Input[_builtins.int] retention_window_in_days: The retention window for the instance. This is the time window in days
|
|
626
805
|
for which the historical data is retained. The default value is 7 days.
|
|
627
806
|
Valid values are 2 to 35 days
|
|
628
|
-
:param pulumi.Input[_builtins.bool] stopped: Whether the instance
|
|
807
|
+
:param pulumi.Input[_builtins.bool] stopped: Whether to stop the instance. An input only param, see effective_stopped for the output
|
|
808
|
+
:param pulumi.Input[_builtins.str] usage_policy_id: The desired usage policy to associate with the instance
|
|
629
809
|
"""
|
|
630
810
|
...
|
|
631
811
|
@overload
|
|
@@ -634,6 +814,8 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
634
814
|
args: Optional[DatabaseInstanceArgs] = None,
|
|
635
815
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
636
816
|
"""
|
|
817
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
818
|
+
|
|
637
819
|
Lakebase Database Instances are managed Postgres instances, composed of a primary Postgres compute instance and 0 or more read replica instances.
|
|
638
820
|
|
|
639
821
|
## Example Usage
|
|
@@ -682,6 +864,30 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
682
864
|
})
|
|
683
865
|
```
|
|
684
866
|
|
|
867
|
+
### Example with a usage policy and custom tags
|
|
868
|
+
|
|
869
|
+
This example creates a Database Instance with an associated usage policy and custom tags.
|
|
870
|
+
|
|
871
|
+
```python
|
|
872
|
+
import pulumi
|
|
873
|
+
import pulumi_databricks as databricks
|
|
874
|
+
|
|
875
|
+
this = databricks.DatabaseInstance("this",
|
|
876
|
+
name="my-database-instance",
|
|
877
|
+
capacity="CU_8",
|
|
878
|
+
usage_policy_id="948192fa-a98b-498f-a09b-ecee79d8b983",
|
|
879
|
+
custom_tags=[
|
|
880
|
+
{
|
|
881
|
+
"key": "custom_tag_key1",
|
|
882
|
+
"value": "custom_tag_value1",
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"key": "custom_tag_key2",
|
|
886
|
+
"value": "custom_tag_value2",
|
|
887
|
+
},
|
|
888
|
+
])
|
|
889
|
+
```
|
|
890
|
+
|
|
685
891
|
## Import
|
|
686
892
|
|
|
687
893
|
As of Pulumi v1.5, resources can be imported through configuration.
|
|
@@ -690,7 +896,7 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
690
896
|
|
|
691
897
|
import {
|
|
692
898
|
|
|
693
|
-
id = name
|
|
899
|
+
id = "name"
|
|
694
900
|
|
|
695
901
|
to = databricks_database_instance.this
|
|
696
902
|
|
|
@@ -699,7 +905,7 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
699
905
|
If you are using an older version of Pulumi, import the resource using the `pulumi import` command as follows:
|
|
700
906
|
|
|
701
907
|
```sh
|
|
702
|
-
$ pulumi import databricks:index/databaseInstance:DatabaseInstance
|
|
908
|
+
$ pulumi import databricks:index/databaseInstance:DatabaseInstance this "name"
|
|
703
909
|
```
|
|
704
910
|
|
|
705
911
|
:param str resource_name: The name of the resource.
|
|
@@ -718,6 +924,8 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
718
924
|
resource_name: str,
|
|
719
925
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
720
926
|
capacity: Optional[pulumi.Input[_builtins.str]] = None,
|
|
927
|
+
custom_tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DatabaseInstanceCustomTagArgs', 'DatabaseInstanceCustomTagArgsDict']]]]] = None,
|
|
928
|
+
enable_pg_native_login: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
721
929
|
enable_readable_secondaries: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
722
930
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
723
931
|
node_count: Optional[pulumi.Input[_builtins.int]] = None,
|
|
@@ -725,6 +933,7 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
725
933
|
purge_on_delete: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
726
934
|
retention_window_in_days: Optional[pulumi.Input[_builtins.int]] = None,
|
|
727
935
|
stopped: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
936
|
+
usage_policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
728
937
|
__props__=None):
|
|
729
938
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
730
939
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -735,6 +944,8 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
735
944
|
__props__ = DatabaseInstanceArgs.__new__(DatabaseInstanceArgs)
|
|
736
945
|
|
|
737
946
|
__props__.__dict__["capacity"] = capacity
|
|
947
|
+
__props__.__dict__["custom_tags"] = custom_tags
|
|
948
|
+
__props__.__dict__["enable_pg_native_login"] = enable_pg_native_login
|
|
738
949
|
__props__.__dict__["enable_readable_secondaries"] = enable_readable_secondaries
|
|
739
950
|
__props__.__dict__["name"] = name
|
|
740
951
|
__props__.__dict__["node_count"] = node_count
|
|
@@ -742,13 +953,18 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
742
953
|
__props__.__dict__["purge_on_delete"] = purge_on_delete
|
|
743
954
|
__props__.__dict__["retention_window_in_days"] = retention_window_in_days
|
|
744
955
|
__props__.__dict__["stopped"] = stopped
|
|
956
|
+
__props__.__dict__["usage_policy_id"] = usage_policy_id
|
|
745
957
|
__props__.__dict__["child_instance_refs"] = None
|
|
746
958
|
__props__.__dict__["creation_time"] = None
|
|
747
959
|
__props__.__dict__["creator"] = None
|
|
960
|
+
__props__.__dict__["effective_capacity"] = None
|
|
961
|
+
__props__.__dict__["effective_custom_tags"] = None
|
|
962
|
+
__props__.__dict__["effective_enable_pg_native_login"] = None
|
|
748
963
|
__props__.__dict__["effective_enable_readable_secondaries"] = None
|
|
749
964
|
__props__.__dict__["effective_node_count"] = None
|
|
750
965
|
__props__.__dict__["effective_retention_window_in_days"] = None
|
|
751
966
|
__props__.__dict__["effective_stopped"] = None
|
|
967
|
+
__props__.__dict__["effective_usage_policy_id"] = None
|
|
752
968
|
__props__.__dict__["pg_version"] = None
|
|
753
969
|
__props__.__dict__["read_only_dns"] = None
|
|
754
970
|
__props__.__dict__["read_write_dns"] = None
|
|
@@ -768,10 +984,16 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
768
984
|
child_instance_refs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DatabaseInstanceChildInstanceRefArgs', 'DatabaseInstanceChildInstanceRefArgsDict']]]]] = None,
|
|
769
985
|
creation_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
770
986
|
creator: Optional[pulumi.Input[_builtins.str]] = None,
|
|
987
|
+
custom_tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DatabaseInstanceCustomTagArgs', 'DatabaseInstanceCustomTagArgsDict']]]]] = None,
|
|
988
|
+
effective_capacity: Optional[pulumi.Input[_builtins.str]] = None,
|
|
989
|
+
effective_custom_tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DatabaseInstanceEffectiveCustomTagArgs', 'DatabaseInstanceEffectiveCustomTagArgsDict']]]]] = None,
|
|
990
|
+
effective_enable_pg_native_login: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
771
991
|
effective_enable_readable_secondaries: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
772
992
|
effective_node_count: Optional[pulumi.Input[_builtins.int]] = None,
|
|
773
993
|
effective_retention_window_in_days: Optional[pulumi.Input[_builtins.int]] = None,
|
|
774
994
|
effective_stopped: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
995
|
+
effective_usage_policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
996
|
+
enable_pg_native_login: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
775
997
|
enable_readable_secondaries: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
776
998
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
777
999
|
node_count: Optional[pulumi.Input[_builtins.int]] = None,
|
|
@@ -783,7 +1005,8 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
783
1005
|
retention_window_in_days: Optional[pulumi.Input[_builtins.int]] = None,
|
|
784
1006
|
state: Optional[pulumi.Input[_builtins.str]] = None,
|
|
785
1007
|
stopped: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
786
|
-
uid: Optional[pulumi.Input[_builtins.str]] = None
|
|
1008
|
+
uid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1009
|
+
usage_policy_id: Optional[pulumi.Input[_builtins.str]] = None) -> 'DatabaseInstance':
|
|
787
1010
|
"""
|
|
788
1011
|
Get an existing DatabaseInstance resource's state with the given name, id, and optional extra
|
|
789
1012
|
properties used to qualify the lookup.
|
|
@@ -796,22 +1019,22 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
796
1019
|
parent instance
|
|
797
1020
|
:param pulumi.Input[_builtins.str] creation_time: (string) - The timestamp when the instance was created
|
|
798
1021
|
:param pulumi.Input[_builtins.str] creator: (string) - The email of the creator of the instance
|
|
799
|
-
:param pulumi.Input[
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
:param pulumi.Input[_builtins.
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
:param pulumi.Input[_builtins.bool] effective_stopped: (boolean) -
|
|
809
|
-
|
|
810
|
-
|
|
1022
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['DatabaseInstanceCustomTagArgs', 'DatabaseInstanceCustomTagArgsDict']]]] custom_tags: Custom tags associated with the instance. This field is only included on create and update responses
|
|
1023
|
+
:param pulumi.Input[_builtins.str] effective_capacity: (string, deprecated) - Deprecated. The sku of the instance; this field will always match the value of capacity
|
|
1024
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['DatabaseInstanceEffectiveCustomTagArgs', 'DatabaseInstanceEffectiveCustomTagArgsDict']]]] effective_custom_tags: (list of CustomTag) - The recorded custom tags associated with the instance
|
|
1025
|
+
:param pulumi.Input[_builtins.bool] effective_enable_pg_native_login: (boolean) - Whether the instance has PG native password login enabled
|
|
1026
|
+
:param pulumi.Input[_builtins.bool] effective_enable_readable_secondaries: (boolean) - Whether secondaries serving read-only traffic are enabled. Defaults to false
|
|
1027
|
+
:param pulumi.Input[_builtins.int] effective_node_count: (integer) - The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to
|
|
1028
|
+
1 primary and 0 secondaries
|
|
1029
|
+
:param pulumi.Input[_builtins.int] effective_retention_window_in_days: (integer) - The retention window for the instance. This is the time window in days
|
|
1030
|
+
for which the historical data is retained
|
|
1031
|
+
:param pulumi.Input[_builtins.bool] effective_stopped: (boolean) - Whether the instance is stopped
|
|
1032
|
+
:param pulumi.Input[_builtins.str] effective_usage_policy_id: (string) - The policy that is applied to the instance
|
|
1033
|
+
:param pulumi.Input[_builtins.bool] enable_pg_native_login: Whether to enable PG native password login on the instance. Defaults to false
|
|
811
1034
|
:param pulumi.Input[_builtins.bool] enable_readable_secondaries: Whether to enable secondaries to serve read-only traffic. Defaults to false
|
|
812
1035
|
:param pulumi.Input[_builtins.str] name: The name of the instance. This is the unique identifier for the instance
|
|
813
1036
|
:param pulumi.Input[_builtins.int] node_count: The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to
|
|
814
|
-
1 primary and 0 secondaries
|
|
1037
|
+
1 primary and 0 secondaries. This field is input only, see effective_node_count for the output
|
|
815
1038
|
:param pulumi.Input[Union['DatabaseInstanceParentInstanceRefArgs', 'DatabaseInstanceParentInstanceRefArgsDict']] parent_instance_ref: The ref of the parent instance. This is only available if the instance is
|
|
816
1039
|
child instance.
|
|
817
1040
|
Input: For specifying the parent instance to create a child instance. Optional.
|
|
@@ -825,8 +1048,9 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
825
1048
|
for which the historical data is retained. The default value is 7 days.
|
|
826
1049
|
Valid values are 2 to 35 days
|
|
827
1050
|
:param pulumi.Input[_builtins.str] state: (string) - The current state of the instance. Possible values are: `AVAILABLE`, `DELETING`, `FAILING_OVER`, `STARTING`, `STOPPED`, `UPDATING`
|
|
828
|
-
:param pulumi.Input[_builtins.bool] stopped: Whether the instance
|
|
1051
|
+
:param pulumi.Input[_builtins.bool] stopped: Whether to stop the instance. An input only param, see effective_stopped for the output
|
|
829
1052
|
:param pulumi.Input[_builtins.str] uid: (string) - Id of the ref database instance
|
|
1053
|
+
:param pulumi.Input[_builtins.str] usage_policy_id: The desired usage policy to associate with the instance
|
|
830
1054
|
"""
|
|
831
1055
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
832
1056
|
|
|
@@ -836,10 +1060,16 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
836
1060
|
__props__.__dict__["child_instance_refs"] = child_instance_refs
|
|
837
1061
|
__props__.__dict__["creation_time"] = creation_time
|
|
838
1062
|
__props__.__dict__["creator"] = creator
|
|
1063
|
+
__props__.__dict__["custom_tags"] = custom_tags
|
|
1064
|
+
__props__.__dict__["effective_capacity"] = effective_capacity
|
|
1065
|
+
__props__.__dict__["effective_custom_tags"] = effective_custom_tags
|
|
1066
|
+
__props__.__dict__["effective_enable_pg_native_login"] = effective_enable_pg_native_login
|
|
839
1067
|
__props__.__dict__["effective_enable_readable_secondaries"] = effective_enable_readable_secondaries
|
|
840
1068
|
__props__.__dict__["effective_node_count"] = effective_node_count
|
|
841
1069
|
__props__.__dict__["effective_retention_window_in_days"] = effective_retention_window_in_days
|
|
842
1070
|
__props__.__dict__["effective_stopped"] = effective_stopped
|
|
1071
|
+
__props__.__dict__["effective_usage_policy_id"] = effective_usage_policy_id
|
|
1072
|
+
__props__.__dict__["enable_pg_native_login"] = enable_pg_native_login
|
|
843
1073
|
__props__.__dict__["enable_readable_secondaries"] = enable_readable_secondaries
|
|
844
1074
|
__props__.__dict__["name"] = name
|
|
845
1075
|
__props__.__dict__["node_count"] = node_count
|
|
@@ -852,6 +1082,7 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
852
1082
|
__props__.__dict__["state"] = state
|
|
853
1083
|
__props__.__dict__["stopped"] = stopped
|
|
854
1084
|
__props__.__dict__["uid"] = uid
|
|
1085
|
+
__props__.__dict__["usage_policy_id"] = usage_policy_id
|
|
855
1086
|
return DatabaseInstance(resource_name, opts=opts, __props__=__props__)
|
|
856
1087
|
|
|
857
1088
|
@_builtins.property
|
|
@@ -887,13 +1118,43 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
887
1118
|
"""
|
|
888
1119
|
return pulumi.get(self, "creator")
|
|
889
1120
|
|
|
1121
|
+
@_builtins.property
|
|
1122
|
+
@pulumi.getter(name="customTags")
|
|
1123
|
+
def custom_tags(self) -> pulumi.Output[Sequence['outputs.DatabaseInstanceCustomTag']]:
|
|
1124
|
+
"""
|
|
1125
|
+
Custom tags associated with the instance. This field is only included on create and update responses
|
|
1126
|
+
"""
|
|
1127
|
+
return pulumi.get(self, "custom_tags")
|
|
1128
|
+
|
|
1129
|
+
@_builtins.property
|
|
1130
|
+
@pulumi.getter(name="effectiveCapacity")
|
|
1131
|
+
def effective_capacity(self) -> pulumi.Output[_builtins.str]:
|
|
1132
|
+
"""
|
|
1133
|
+
(string, deprecated) - Deprecated. The sku of the instance; this field will always match the value of capacity
|
|
1134
|
+
"""
|
|
1135
|
+
return pulumi.get(self, "effective_capacity")
|
|
1136
|
+
|
|
1137
|
+
@_builtins.property
|
|
1138
|
+
@pulumi.getter(name="effectiveCustomTags")
|
|
1139
|
+
def effective_custom_tags(self) -> pulumi.Output[Sequence['outputs.DatabaseInstanceEffectiveCustomTag']]:
|
|
1140
|
+
"""
|
|
1141
|
+
(list of CustomTag) - The recorded custom tags associated with the instance
|
|
1142
|
+
"""
|
|
1143
|
+
return pulumi.get(self, "effective_custom_tags")
|
|
1144
|
+
|
|
1145
|
+
@_builtins.property
|
|
1146
|
+
@pulumi.getter(name="effectiveEnablePgNativeLogin")
|
|
1147
|
+
def effective_enable_pg_native_login(self) -> pulumi.Output[_builtins.bool]:
|
|
1148
|
+
"""
|
|
1149
|
+
(boolean) - Whether the instance has PG native password login enabled
|
|
1150
|
+
"""
|
|
1151
|
+
return pulumi.get(self, "effective_enable_pg_native_login")
|
|
1152
|
+
|
|
890
1153
|
@_builtins.property
|
|
891
1154
|
@pulumi.getter(name="effectiveEnableReadableSecondaries")
|
|
892
1155
|
def effective_enable_readable_secondaries(self) -> pulumi.Output[_builtins.bool]:
|
|
893
1156
|
"""
|
|
894
|
-
(boolean) -
|
|
895
|
-
`enable_readable_secondaries` will only be set in Create/Update response messages if and only if the user provides the field via the request.
|
|
896
|
-
`effective_enable_readable_secondaries` on the other hand will always bet set in all response messages (Create/Update/Get/List)
|
|
1157
|
+
(boolean) - Whether secondaries serving read-only traffic are enabled. Defaults to false
|
|
897
1158
|
"""
|
|
898
1159
|
return pulumi.get(self, "effective_enable_readable_secondaries")
|
|
899
1160
|
|
|
@@ -901,9 +1162,8 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
901
1162
|
@pulumi.getter(name="effectiveNodeCount")
|
|
902
1163
|
def effective_node_count(self) -> pulumi.Output[_builtins.int]:
|
|
903
1164
|
"""
|
|
904
|
-
(integer) -
|
|
905
|
-
|
|
906
|
-
`effective_node_count` on the other hand will always bet set in all response messages (Create/Update/Get/List)
|
|
1165
|
+
(integer) - The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to
|
|
1166
|
+
1 primary and 0 secondaries
|
|
907
1167
|
"""
|
|
908
1168
|
return pulumi.get(self, "effective_node_count")
|
|
909
1169
|
|
|
@@ -911,9 +1171,8 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
911
1171
|
@pulumi.getter(name="effectiveRetentionWindowInDays")
|
|
912
1172
|
def effective_retention_window_in_days(self) -> pulumi.Output[_builtins.int]:
|
|
913
1173
|
"""
|
|
914
|
-
(integer) -
|
|
915
|
-
|
|
916
|
-
`effective_retention_window_in_days` on the other hand will always bet set in all response messages (Create/Update/Get/List)
|
|
1174
|
+
(integer) - The retention window for the instance. This is the time window in days
|
|
1175
|
+
for which the historical data is retained
|
|
917
1176
|
"""
|
|
918
1177
|
return pulumi.get(self, "effective_retention_window_in_days")
|
|
919
1178
|
|
|
@@ -921,15 +1180,29 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
921
1180
|
@pulumi.getter(name="effectiveStopped")
|
|
922
1181
|
def effective_stopped(self) -> pulumi.Output[_builtins.bool]:
|
|
923
1182
|
"""
|
|
924
|
-
(boolean) -
|
|
925
|
-
`stopped` will only be set in Create/Update response messages if and only if the user provides the field via the request.
|
|
926
|
-
`effective_stopped` on the other hand will always bet set in all response messages (Create/Update/Get/List)
|
|
1183
|
+
(boolean) - Whether the instance is stopped
|
|
927
1184
|
"""
|
|
928
1185
|
return pulumi.get(self, "effective_stopped")
|
|
929
1186
|
|
|
1187
|
+
@_builtins.property
|
|
1188
|
+
@pulumi.getter(name="effectiveUsagePolicyId")
|
|
1189
|
+
def effective_usage_policy_id(self) -> pulumi.Output[_builtins.str]:
|
|
1190
|
+
"""
|
|
1191
|
+
(string) - The policy that is applied to the instance
|
|
1192
|
+
"""
|
|
1193
|
+
return pulumi.get(self, "effective_usage_policy_id")
|
|
1194
|
+
|
|
1195
|
+
@_builtins.property
|
|
1196
|
+
@pulumi.getter(name="enablePgNativeLogin")
|
|
1197
|
+
def enable_pg_native_login(self) -> pulumi.Output[_builtins.bool]:
|
|
1198
|
+
"""
|
|
1199
|
+
Whether to enable PG native password login on the instance. Defaults to false
|
|
1200
|
+
"""
|
|
1201
|
+
return pulumi.get(self, "enable_pg_native_login")
|
|
1202
|
+
|
|
930
1203
|
@_builtins.property
|
|
931
1204
|
@pulumi.getter(name="enableReadableSecondaries")
|
|
932
|
-
def enable_readable_secondaries(self) -> pulumi.Output[
|
|
1205
|
+
def enable_readable_secondaries(self) -> pulumi.Output[_builtins.bool]:
|
|
933
1206
|
"""
|
|
934
1207
|
Whether to enable secondaries to serve read-only traffic. Defaults to false
|
|
935
1208
|
"""
|
|
@@ -945,10 +1218,10 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
945
1218
|
|
|
946
1219
|
@_builtins.property
|
|
947
1220
|
@pulumi.getter(name="nodeCount")
|
|
948
|
-
def node_count(self) -> pulumi.Output[
|
|
1221
|
+
def node_count(self) -> pulumi.Output[_builtins.int]:
|
|
949
1222
|
"""
|
|
950
1223
|
The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to
|
|
951
|
-
1 primary and 0 secondaries
|
|
1224
|
+
1 primary and 0 secondaries. This field is input only, see effective_node_count for the output
|
|
952
1225
|
"""
|
|
953
1226
|
return pulumi.get(self, "node_count")
|
|
954
1227
|
|
|
@@ -998,7 +1271,7 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
998
1271
|
|
|
999
1272
|
@_builtins.property
|
|
1000
1273
|
@pulumi.getter(name="retentionWindowInDays")
|
|
1001
|
-
def retention_window_in_days(self) -> pulumi.Output[
|
|
1274
|
+
def retention_window_in_days(self) -> pulumi.Output[_builtins.int]:
|
|
1002
1275
|
"""
|
|
1003
1276
|
The retention window for the instance. This is the time window in days
|
|
1004
1277
|
for which the historical data is retained. The default value is 7 days.
|
|
@@ -1016,9 +1289,9 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
1016
1289
|
|
|
1017
1290
|
@_builtins.property
|
|
1018
1291
|
@pulumi.getter
|
|
1019
|
-
def stopped(self) -> pulumi.Output[
|
|
1292
|
+
def stopped(self) -> pulumi.Output[_builtins.bool]:
|
|
1020
1293
|
"""
|
|
1021
|
-
Whether the instance
|
|
1294
|
+
Whether to stop the instance. An input only param, see effective_stopped for the output
|
|
1022
1295
|
"""
|
|
1023
1296
|
return pulumi.get(self, "stopped")
|
|
1024
1297
|
|
|
@@ -1030,3 +1303,11 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
|
1030
1303
|
"""
|
|
1031
1304
|
return pulumi.get(self, "uid")
|
|
1032
1305
|
|
|
1306
|
+
@_builtins.property
|
|
1307
|
+
@pulumi.getter(name="usagePolicyId")
|
|
1308
|
+
def usage_policy_id(self) -> pulumi.Output[_builtins.str]:
|
|
1309
|
+
"""
|
|
1310
|
+
The desired usage policy to associate with the instance
|
|
1311
|
+
"""
|
|
1312
|
+
return pulumi.get(self, "usage_policy_id")
|
|
1313
|
+
|