pulumi-snowflake 0.50.2a1709892015__py3-none-any.whl → 1.2.0a1736835738__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.
Potentially problematic release.
This version of pulumi-snowflake might be problematic. Click here for more details.
- pulumi_snowflake/__init__.py +224 -172
- pulumi_snowflake/_inputs.py +52854 -1662
- pulumi_snowflake/_utilities.py +41 -5
- pulumi_snowflake/account.py +188 -214
- pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
- pulumi_snowflake/account_parameter.py +21 -44
- pulumi_snowflake/account_password_policy_attachment.py +7 -28
- pulumi_snowflake/account_role.py +250 -0
- pulumi_snowflake/alert.py +38 -43
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +704 -0
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +657 -0
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +692 -0
- pulumi_snowflake/api_integration.py +35 -50
- pulumi_snowflake/authentication_policy.py +622 -0
- pulumi_snowflake/config/__init__.pyi +76 -99
- pulumi_snowflake/config/outputs.py +5 -0
- pulumi_snowflake/config/vars.py +93 -124
- pulumi_snowflake/cortex_search_service.py +596 -0
- pulumi_snowflake/database.py +819 -209
- pulumi_snowflake/database_role.py +81 -40
- pulumi_snowflake/dynamic_table.py +44 -47
- pulumi_snowflake/email_notification_integration.py +35 -26
- pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -139
- pulumi_snowflake/external_function.py +54 -71
- pulumi_snowflake/external_oauth_integration.py +593 -538
- pulumi_snowflake/external_table.py +67 -86
- pulumi_snowflake/external_volume.py +382 -0
- pulumi_snowflake/failover_group.py +59 -96
- pulumi_snowflake/file_format.py +33 -24
- pulumi_snowflake/function_java.py +1211 -0
- pulumi_snowflake/function_javascript.py +882 -0
- pulumi_snowflake/function_python.py +1212 -0
- pulumi_snowflake/function_scala.py +1212 -0
- pulumi_snowflake/function_sql.py +835 -0
- pulumi_snowflake/get_account_roles.py +129 -0
- pulumi_snowflake/get_accounts.py +53 -22
- pulumi_snowflake/get_alerts.py +22 -5
- pulumi_snowflake/get_connections.py +109 -0
- pulumi_snowflake/get_cortex_search_services.py +216 -0
- pulumi_snowflake/get_current_account.py +24 -9
- pulumi_snowflake/get_current_role.py +14 -7
- pulumi_snowflake/get_database.py +25 -5
- pulumi_snowflake/get_database_role.py +162 -0
- pulumi_snowflake/get_database_roles.py +79 -43
- pulumi_snowflake/get_databases.py +91 -69
- pulumi_snowflake/get_dynamic_tables.py +36 -19
- pulumi_snowflake/get_external_functions.py +28 -5
- pulumi_snowflake/get_external_tables.py +28 -5
- pulumi_snowflake/get_failover_groups.py +18 -7
- pulumi_snowflake/get_file_formats.py +28 -5
- pulumi_snowflake/get_functions.py +28 -5
- pulumi_snowflake/get_grants.py +207 -80
- pulumi_snowflake/get_masking_policies.py +91 -47
- pulumi_snowflake/get_materialized_views.py +28 -5
- pulumi_snowflake/get_network_policies.py +129 -0
- pulumi_snowflake/get_parameters.py +38 -11
- pulumi_snowflake/get_pipes.py +28 -5
- pulumi_snowflake/get_procedures.py +28 -5
- pulumi_snowflake/get_resource_monitors.py +37 -20
- pulumi_snowflake/get_row_access_policies.py +91 -47
- pulumi_snowflake/get_schemas.py +145 -37
- pulumi_snowflake/get_secrets.py +200 -0
- pulumi_snowflake/get_security_integrations.py +129 -0
- pulumi_snowflake/get_sequences.py +28 -5
- pulumi_snowflake/get_shares.py +18 -5
- pulumi_snowflake/get_stages.py +28 -5
- pulumi_snowflake/get_storage_integrations.py +16 -5
- pulumi_snowflake/get_streamlits.py +170 -0
- pulumi_snowflake/get_streams.py +114 -50
- pulumi_snowflake/get_system_generate_scim_access_token.py +18 -5
- pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
- pulumi_snowflake/get_system_get_private_link_config.py +121 -6
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
- pulumi_snowflake/get_tables.py +28 -5
- pulumi_snowflake/get_tags.py +130 -0
- pulumi_snowflake/get_tasks.py +134 -50
- pulumi_snowflake/get_users.py +116 -40
- pulumi_snowflake/get_views.py +114 -50
- pulumi_snowflake/get_warehouses.py +79 -22
- pulumi_snowflake/grant_account_role.py +28 -61
- pulumi_snowflake/grant_application_role.py +257 -0
- pulumi_snowflake/grant_database_role.py +35 -108
- pulumi_snowflake/grant_ownership.py +382 -0
- pulumi_snowflake/grant_privileges_to_account_role.py +42 -78
- pulumi_snowflake/grant_privileges_to_database_role.py +37 -223
- pulumi_snowflake/grant_privileges_to_share.py +96 -44
- pulumi_snowflake/legacy_service_user.py +3670 -0
- pulumi_snowflake/managed_account.py +42 -9
- pulumi_snowflake/masking_policy.py +213 -306
- pulumi_snowflake/materialized_view.py +62 -67
- pulumi_snowflake/network_policy.py +217 -57
- pulumi_snowflake/network_policy_attachment.py +7 -32
- pulumi_snowflake/network_rule.py +473 -0
- pulumi_snowflake/notification_integration.py +51 -82
- pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
- pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -188
- pulumi_snowflake/object_parameter.py +12 -99
- pulumi_snowflake/outputs.py +49200 -2928
- pulumi_snowflake/password_policy.py +41 -28
- pulumi_snowflake/pipe.py +33 -0
- pulumi_snowflake/primary_connection.py +330 -0
- pulumi_snowflake/procedure_java.py +1273 -0
- pulumi_snowflake/procedure_javascript.py +895 -0
- pulumi_snowflake/procedure_python.py +1226 -0
- pulumi_snowflake/procedure_scala.py +1273 -0
- pulumi_snowflake/procedure_sql.py +895 -0
- pulumi_snowflake/provider.py +378 -613
- pulumi_snowflake/pulumi-plugin.json +2 -1
- pulumi_snowflake/resource_monitor.py +118 -323
- pulumi_snowflake/row_access_policy.py +200 -145
- pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -295
- pulumi_snowflake/schema.py +949 -174
- pulumi_snowflake/scim_integration.py +286 -105
- pulumi_snowflake/secondary_connection.py +339 -0
- pulumi_snowflake/secondary_database.py +1080 -0
- pulumi_snowflake/secret_with_authorization_code_grant.py +548 -0
- pulumi_snowflake/secret_with_basic_authentication.py +500 -0
- pulumi_snowflake/secret_with_client_credentials.py +511 -0
- pulumi_snowflake/secret_with_generic_string.py +452 -0
- pulumi_snowflake/sequence.py +9 -30
- pulumi_snowflake/service_user.py +3585 -0
- pulumi_snowflake/share.py +35 -26
- pulumi_snowflake/shared_database.py +939 -0
- pulumi_snowflake/stage.py +95 -80
- pulumi_snowflake/storage_integration.py +48 -2
- pulumi_snowflake/stream_on_directory_table.py +517 -0
- pulumi_snowflake/stream_on_external_table.py +632 -0
- pulumi_snowflake/stream_on_table.py +666 -0
- pulumi_snowflake/stream_on_view.py +666 -0
- pulumi_snowflake/streamlit.py +671 -0
- pulumi_snowflake/table.py +86 -93
- pulumi_snowflake/table_column_masking_policy_application.py +7 -14
- pulumi_snowflake/table_constraint.py +29 -168
- pulumi_snowflake/tag.py +142 -70
- pulumi_snowflake/tag_association.py +40 -211
- pulumi_snowflake/task.py +3048 -414
- pulumi_snowflake/user.py +3351 -380
- pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
- pulumi_snowflake/user_password_policy_attachment.py +7 -6
- pulumi_snowflake/user_public_keys.py +5 -0
- pulumi_snowflake/view.py +466 -211
- pulumi_snowflake/warehouse.py +184 -164
- {pulumi_snowflake-0.50.2a1709892015.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/METADATA +7 -6
- pulumi_snowflake-1.2.0a1736835738.dist-info/RECORD +148 -0
- {pulumi_snowflake-0.50.2a1709892015.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/WHEEL +1 -1
- pulumi_snowflake/account_grant.py +0 -339
- pulumi_snowflake/database_grant.py +0 -491
- pulumi_snowflake/external_table_grant.py +0 -686
- pulumi_snowflake/failover_group_grant.py +0 -388
- pulumi_snowflake/file_format_grant.py +0 -631
- pulumi_snowflake/function.py +0 -868
- pulumi_snowflake/function_grant.py +0 -741
- pulumi_snowflake/get_role.py +0 -117
- pulumi_snowflake/get_roles.py +0 -116
- pulumi_snowflake/grant_privileges_to_role.py +0 -667
- pulumi_snowflake/integration_grant.py +0 -436
- pulumi_snowflake/masking_policy_grant.py +0 -538
- pulumi_snowflake/materialized_view_grant.py +0 -685
- pulumi_snowflake/pipe_grant.py +0 -583
- pulumi_snowflake/procedure.py +0 -883
- pulumi_snowflake/procedure_grant.py +0 -741
- pulumi_snowflake/resource_monitor_grant.py +0 -383
- pulumi_snowflake/role.py +0 -269
- pulumi_snowflake/role_grants.py +0 -348
- pulumi_snowflake/role_ownership_grant.py +0 -334
- pulumi_snowflake/row_access_policy_grant.py +0 -536
- pulumi_snowflake/schema_grant.py +0 -643
- pulumi_snowflake/sequence_grant.py +0 -631
- pulumi_snowflake/session_parameter.py +0 -328
- pulumi_snowflake/stage_grant.py +0 -631
- pulumi_snowflake/stream.py +0 -610
- pulumi_snowflake/stream_grant.py +0 -631
- pulumi_snowflake/table_grant.py +0 -673
- pulumi_snowflake/tag_grant.py +0 -528
- pulumi_snowflake/tag_masking_policy_association.py +0 -210
- pulumi_snowflake/task_grant.py +0 -631
- pulumi_snowflake/user_grant.py +0 -390
- pulumi_snowflake/user_ownership_grant.py +0 -286
- pulumi_snowflake/view_grant.py +0 -701
- pulumi_snowflake/warehouse_grant.py +0 -436
- pulumi_snowflake-0.50.2a1709892015.dist-info/RECORD +0 -136
- {pulumi_snowflake-0.50.2a1709892015.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/top_level.txt +0 -0
|
@@ -4,11 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
12
18
|
|
|
13
19
|
__all__ = [
|
|
14
20
|
'GetDatabasesResult',
|
|
@@ -22,73 +28,84 @@ class GetDatabasesResult:
|
|
|
22
28
|
"""
|
|
23
29
|
A collection of values returned by getDatabases.
|
|
24
30
|
"""
|
|
25
|
-
def __init__(__self__, databases=None,
|
|
31
|
+
def __init__(__self__, databases=None, id=None, like=None, limit=None, starts_with=None, with_describe=None, with_parameters=None):
|
|
26
32
|
if databases and not isinstance(databases, list):
|
|
27
33
|
raise TypeError("Expected argument 'databases' to be a list")
|
|
28
34
|
pulumi.set(__self__, "databases", databases)
|
|
29
|
-
if history and not isinstance(history, bool):
|
|
30
|
-
raise TypeError("Expected argument 'history' to be a bool")
|
|
31
|
-
pulumi.set(__self__, "history", history)
|
|
32
35
|
if id and not isinstance(id, str):
|
|
33
36
|
raise TypeError("Expected argument 'id' to be a str")
|
|
34
37
|
pulumi.set(__self__, "id", id)
|
|
35
|
-
if
|
|
36
|
-
raise TypeError("Expected argument '
|
|
37
|
-
pulumi.set(__self__, "
|
|
38
|
+
if like and not isinstance(like, str):
|
|
39
|
+
raise TypeError("Expected argument 'like' to be a str")
|
|
40
|
+
pulumi.set(__self__, "like", like)
|
|
41
|
+
if limit and not isinstance(limit, dict):
|
|
42
|
+
raise TypeError("Expected argument 'limit' to be a dict")
|
|
43
|
+
pulumi.set(__self__, "limit", limit)
|
|
38
44
|
if starts_with and not isinstance(starts_with, str):
|
|
39
45
|
raise TypeError("Expected argument 'starts_with' to be a str")
|
|
40
46
|
pulumi.set(__self__, "starts_with", starts_with)
|
|
41
|
-
if
|
|
42
|
-
raise TypeError("Expected argument '
|
|
43
|
-
pulumi.set(__self__, "
|
|
47
|
+
if with_describe and not isinstance(with_describe, bool):
|
|
48
|
+
raise TypeError("Expected argument 'with_describe' to be a bool")
|
|
49
|
+
pulumi.set(__self__, "with_describe", with_describe)
|
|
50
|
+
if with_parameters and not isinstance(with_parameters, bool):
|
|
51
|
+
raise TypeError("Expected argument 'with_parameters' to be a bool")
|
|
52
|
+
pulumi.set(__self__, "with_parameters", with_parameters)
|
|
44
53
|
|
|
45
54
|
@property
|
|
46
55
|
@pulumi.getter
|
|
47
56
|
def databases(self) -> Sequence['outputs.GetDatabasesDatabaseResult']:
|
|
48
57
|
"""
|
|
49
|
-
|
|
58
|
+
Holds the aggregated output of all database details queries.
|
|
50
59
|
"""
|
|
51
60
|
return pulumi.get(self, "databases")
|
|
52
61
|
|
|
53
62
|
@property
|
|
54
63
|
@pulumi.getter
|
|
55
|
-
def
|
|
64
|
+
def id(self) -> str:
|
|
56
65
|
"""
|
|
57
|
-
|
|
66
|
+
The provider-assigned unique ID for this managed resource.
|
|
58
67
|
"""
|
|
59
|
-
return pulumi.get(self, "
|
|
68
|
+
return pulumi.get(self, "id")
|
|
60
69
|
|
|
61
70
|
@property
|
|
62
71
|
@pulumi.getter
|
|
63
|
-
def
|
|
72
|
+
def like(self) -> Optional[str]:
|
|
64
73
|
"""
|
|
65
|
-
|
|
74
|
+
Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
66
75
|
"""
|
|
67
|
-
return pulumi.get(self, "
|
|
76
|
+
return pulumi.get(self, "like")
|
|
68
77
|
|
|
69
78
|
@property
|
|
70
79
|
@pulumi.getter
|
|
71
|
-
def
|
|
80
|
+
def limit(self) -> Optional['outputs.GetDatabasesLimitResult']:
|
|
72
81
|
"""
|
|
73
|
-
|
|
82
|
+
Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
|
|
74
83
|
"""
|
|
75
|
-
return pulumi.get(self, "
|
|
84
|
+
return pulumi.get(self, "limit")
|
|
76
85
|
|
|
77
86
|
@property
|
|
78
87
|
@pulumi.getter(name="startsWith")
|
|
79
88
|
def starts_with(self) -> Optional[str]:
|
|
80
89
|
"""
|
|
81
|
-
|
|
90
|
+
Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
82
91
|
"""
|
|
83
92
|
return pulumi.get(self, "starts_with")
|
|
84
93
|
|
|
85
94
|
@property
|
|
86
|
-
@pulumi.getter
|
|
87
|
-
def
|
|
95
|
+
@pulumi.getter(name="withDescribe")
|
|
96
|
+
def with_describe(self) -> Optional[bool]:
|
|
88
97
|
"""
|
|
89
|
-
|
|
98
|
+
Runs DESC DATABASE for each database returned by SHOW DATABASES. The output of describe is saved to the description field. By default this value is set to true.
|
|
90
99
|
"""
|
|
91
|
-
return pulumi.get(self, "
|
|
100
|
+
return pulumi.get(self, "with_describe")
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
@pulumi.getter(name="withParameters")
|
|
104
|
+
def with_parameters(self) -> Optional[bool]:
|
|
105
|
+
"""
|
|
106
|
+
Runs SHOW PARAMETERS FOR DATABASE for each database returned by SHOW DATABASES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
|
|
107
|
+
"""
|
|
108
|
+
return pulumi.get(self, "with_parameters")
|
|
92
109
|
|
|
93
110
|
|
|
94
111
|
class AwaitableGetDatabasesResult(GetDatabasesResult):
|
|
@@ -98,71 +115,76 @@ class AwaitableGetDatabasesResult(GetDatabasesResult):
|
|
|
98
115
|
yield self
|
|
99
116
|
return GetDatabasesResult(
|
|
100
117
|
databases=self.databases,
|
|
101
|
-
history=self.history,
|
|
102
118
|
id=self.id,
|
|
103
|
-
|
|
119
|
+
like=self.like,
|
|
120
|
+
limit=self.limit,
|
|
104
121
|
starts_with=self.starts_with,
|
|
105
|
-
|
|
122
|
+
with_describe=self.with_describe,
|
|
123
|
+
with_parameters=self.with_parameters)
|
|
106
124
|
|
|
107
125
|
|
|
108
|
-
def get_databases(
|
|
109
|
-
|
|
126
|
+
def get_databases(like: Optional[str] = None,
|
|
127
|
+
limit: Optional[Union['GetDatabasesLimitArgs', 'GetDatabasesLimitArgsDict']] = None,
|
|
110
128
|
starts_with: Optional[str] = None,
|
|
111
|
-
|
|
129
|
+
with_describe: Optional[bool] = None,
|
|
130
|
+
with_parameters: Optional[bool] = None,
|
|
112
131
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatabasesResult:
|
|
113
132
|
"""
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
```python
|
|
117
|
-
import pulumi
|
|
118
|
-
import pulumi_snowflake as snowflake
|
|
119
|
-
|
|
120
|
-
this = snowflake.get_databases()
|
|
121
|
-
```
|
|
133
|
+
Data source used to get details of filtered databases. Filtering is aligned with the current possibilities for [SHOW DATABASES](https://docs.snowflake.com/en/sql-reference/sql/show-databases) query (`like`, `starts_with`, and `limit` are all supported). The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
|
|
122
134
|
|
|
123
135
|
|
|
124
|
-
:param
|
|
125
|
-
:param
|
|
126
|
-
:param str starts_with:
|
|
127
|
-
:param bool
|
|
136
|
+
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
137
|
+
:param Union['GetDatabasesLimitArgs', 'GetDatabasesLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
|
|
138
|
+
:param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
139
|
+
:param bool with_describe: Runs DESC DATABASE for each database returned by SHOW DATABASES. The output of describe is saved to the description field. By default this value is set to true.
|
|
140
|
+
:param bool with_parameters: Runs SHOW PARAMETERS FOR DATABASE for each database returned by SHOW DATABASES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
|
|
128
141
|
"""
|
|
129
142
|
__args__ = dict()
|
|
130
|
-
__args__['
|
|
131
|
-
__args__['
|
|
143
|
+
__args__['like'] = like
|
|
144
|
+
__args__['limit'] = limit
|
|
132
145
|
__args__['startsWith'] = starts_with
|
|
133
|
-
__args__['
|
|
146
|
+
__args__['withDescribe'] = with_describe
|
|
147
|
+
__args__['withParameters'] = with_parameters
|
|
134
148
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
135
149
|
__ret__ = pulumi.runtime.invoke('snowflake:index/getDatabases:getDatabases', __args__, opts=opts, typ=GetDatabasesResult).value
|
|
136
150
|
|
|
137
151
|
return AwaitableGetDatabasesResult(
|
|
138
152
|
databases=pulumi.get(__ret__, 'databases'),
|
|
139
|
-
history=pulumi.get(__ret__, 'history'),
|
|
140
153
|
id=pulumi.get(__ret__, 'id'),
|
|
141
|
-
|
|
154
|
+
like=pulumi.get(__ret__, 'like'),
|
|
155
|
+
limit=pulumi.get(__ret__, 'limit'),
|
|
142
156
|
starts_with=pulumi.get(__ret__, 'starts_with'),
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
def get_databases_output(history: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
148
|
-
pattern: Optional[pulumi.Input[Optional[str]]] = None,
|
|
157
|
+
with_describe=pulumi.get(__ret__, 'with_describe'),
|
|
158
|
+
with_parameters=pulumi.get(__ret__, 'with_parameters'))
|
|
159
|
+
def get_databases_output(like: Optional[pulumi.Input[Optional[str]]] = None,
|
|
160
|
+
limit: Optional[pulumi.Input[Optional[Union['GetDatabasesLimitArgs', 'GetDatabasesLimitArgsDict']]]] = None,
|
|
149
161
|
starts_with: Optional[pulumi.Input[Optional[str]]] = None,
|
|
150
|
-
|
|
151
|
-
|
|
162
|
+
with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
163
|
+
with_parameters: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
164
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDatabasesResult]:
|
|
152
165
|
"""
|
|
153
|
-
|
|
166
|
+
Data source used to get details of filtered databases. Filtering is aligned with the current possibilities for [SHOW DATABASES](https://docs.snowflake.com/en/sql-reference/sql/show-databases) query (`like`, `starts_with`, and `limit` are all supported). The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
|
|
154
167
|
|
|
155
|
-
```python
|
|
156
|
-
import pulumi
|
|
157
|
-
import pulumi_snowflake as snowflake
|
|
158
168
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
:param bool
|
|
164
|
-
:param str pattern: Optionally filters the databases by a pattern
|
|
165
|
-
:param str starts_with: Optionally filters the databases by a pattern
|
|
166
|
-
:param bool terse: Optionally returns only the columns `created_on` and `name` in the results
|
|
169
|
+
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
170
|
+
:param Union['GetDatabasesLimitArgs', 'GetDatabasesLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
|
|
171
|
+
:param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
172
|
+
:param bool with_describe: Runs DESC DATABASE for each database returned by SHOW DATABASES. The output of describe is saved to the description field. By default this value is set to true.
|
|
173
|
+
:param bool with_parameters: Runs SHOW PARAMETERS FOR DATABASE for each database returned by SHOW DATABASES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
|
|
167
174
|
"""
|
|
168
|
-
|
|
175
|
+
__args__ = dict()
|
|
176
|
+
__args__['like'] = like
|
|
177
|
+
__args__['limit'] = limit
|
|
178
|
+
__args__['startsWith'] = starts_with
|
|
179
|
+
__args__['withDescribe'] = with_describe
|
|
180
|
+
__args__['withParameters'] = with_parameters
|
|
181
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
182
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getDatabases:getDatabases', __args__, opts=opts, typ=GetDatabasesResult)
|
|
183
|
+
return __ret__.apply(lambda __response__: GetDatabasesResult(
|
|
184
|
+
databases=pulumi.get(__response__, 'databases'),
|
|
185
|
+
id=pulumi.get(__response__, 'id'),
|
|
186
|
+
like=pulumi.get(__response__, 'like'),
|
|
187
|
+
limit=pulumi.get(__response__, 'limit'),
|
|
188
|
+
starts_with=pulumi.get(__response__, 'starts_with'),
|
|
189
|
+
with_describe=pulumi.get(__response__, 'with_describe'),
|
|
190
|
+
with_parameters=pulumi.get(__response__, 'with_parameters')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -106,17 +111,18 @@ class AwaitableGetDynamicTablesResult(GetDynamicTablesResult):
|
|
|
106
111
|
starts_with=self.starts_with)
|
|
107
112
|
|
|
108
113
|
|
|
109
|
-
def get_dynamic_tables(in_: Optional[
|
|
110
|
-
like: Optional[
|
|
111
|
-
limit: Optional[
|
|
114
|
+
def get_dynamic_tables(in_: Optional[Union['GetDynamicTablesInArgs', 'GetDynamicTablesInArgsDict']] = None,
|
|
115
|
+
like: Optional[Union['GetDynamicTablesLikeArgs', 'GetDynamicTablesLikeArgsDict']] = None,
|
|
116
|
+
limit: Optional[Union['GetDynamicTablesLimitArgs', 'GetDynamicTablesLimitArgsDict']] = None,
|
|
112
117
|
starts_with: Optional[str] = None,
|
|
113
118
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDynamicTablesResult:
|
|
114
119
|
"""
|
|
115
|
-
|
|
120
|
+
!> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
116
121
|
|
|
117
|
-
|
|
118
|
-
:param
|
|
119
|
-
:param
|
|
122
|
+
|
|
123
|
+
:param Union['GetDynamicTablesInArgs', 'GetDynamicTablesInArgsDict'] in_: IN clause to filter the list of dynamic tables.
|
|
124
|
+
:param Union['GetDynamicTablesLikeArgs', 'GetDynamicTablesLikeArgsDict'] like: LIKE clause to filter the list of dynamic tables.
|
|
125
|
+
:param Union['GetDynamicTablesLimitArgs', 'GetDynamicTablesLimitArgsDict'] limit: Optionally limits the maximum number of rows returned, while also enabling “pagination” of the results. Note that the actual number of rows returned might be less than the specified limit (e.g. the number of existing objects is less than the specified limit).
|
|
120
126
|
:param str starts_with: Optionally filters the command output based on the characters that appear at the beginning of the object name. The string is case-sensitive.
|
|
121
127
|
"""
|
|
122
128
|
__args__ = dict()
|
|
@@ -134,20 +140,31 @@ def get_dynamic_tables(in_: Optional[pulumi.InputType['GetDynamicTablesInArgs']]
|
|
|
134
140
|
limit=pulumi.get(__ret__, 'limit'),
|
|
135
141
|
records=pulumi.get(__ret__, 'records'),
|
|
136
142
|
starts_with=pulumi.get(__ret__, 'starts_with'))
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
def get_dynamic_tables_output(in_: Optional[pulumi.Input[Optional[pulumi.InputType['GetDynamicTablesInArgs']]]] = None,
|
|
141
|
-
like: Optional[pulumi.Input[Optional[pulumi.InputType['GetDynamicTablesLikeArgs']]]] = None,
|
|
142
|
-
limit: Optional[pulumi.Input[Optional[pulumi.InputType['GetDynamicTablesLimitArgs']]]] = None,
|
|
143
|
+
def get_dynamic_tables_output(in_: Optional[pulumi.Input[Optional[Union['GetDynamicTablesInArgs', 'GetDynamicTablesInArgsDict']]]] = None,
|
|
144
|
+
like: Optional[pulumi.Input[Optional[Union['GetDynamicTablesLikeArgs', 'GetDynamicTablesLikeArgsDict']]]] = None,
|
|
145
|
+
limit: Optional[pulumi.Input[Optional[Union['GetDynamicTablesLimitArgs', 'GetDynamicTablesLimitArgsDict']]]] = None,
|
|
143
146
|
starts_with: Optional[pulumi.Input[Optional[str]]] = None,
|
|
144
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDynamicTablesResult]:
|
|
147
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDynamicTablesResult]:
|
|
145
148
|
"""
|
|
146
|
-
|
|
149
|
+
!> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
147
150
|
|
|
148
|
-
|
|
149
|
-
:param
|
|
150
|
-
:param
|
|
151
|
+
|
|
152
|
+
:param Union['GetDynamicTablesInArgs', 'GetDynamicTablesInArgsDict'] in_: IN clause to filter the list of dynamic tables.
|
|
153
|
+
:param Union['GetDynamicTablesLikeArgs', 'GetDynamicTablesLikeArgsDict'] like: LIKE clause to filter the list of dynamic tables.
|
|
154
|
+
:param Union['GetDynamicTablesLimitArgs', 'GetDynamicTablesLimitArgsDict'] limit: Optionally limits the maximum number of rows returned, while also enabling “pagination” of the results. Note that the actual number of rows returned might be less than the specified limit (e.g. the number of existing objects is less than the specified limit).
|
|
151
155
|
:param str starts_with: Optionally filters the command output based on the characters that appear at the beginning of the object name. The string is case-sensitive.
|
|
152
156
|
"""
|
|
153
|
-
|
|
157
|
+
__args__ = dict()
|
|
158
|
+
__args__['in'] = in_
|
|
159
|
+
__args__['like'] = like
|
|
160
|
+
__args__['limit'] = limit
|
|
161
|
+
__args__['startsWith'] = starts_with
|
|
162
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
163
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getDynamicTables:getDynamicTables', __args__, opts=opts, typ=GetDynamicTablesResult)
|
|
164
|
+
return __ret__.apply(lambda __response__: GetDynamicTablesResult(
|
|
165
|
+
id=pulumi.get(__response__, 'id'),
|
|
166
|
+
in_=pulumi.get(__response__, 'in_'),
|
|
167
|
+
like=pulumi.get(__response__, 'like'),
|
|
168
|
+
limit=pulumi.get(__response__, 'limit'),
|
|
169
|
+
records=pulumi.get(__response__, 'records'),
|
|
170
|
+
starts_with=pulumi.get(__response__, 'starts_with')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
|
|
@@ -85,6 +90,8 @@ def get_external_functions(database: Optional[str] = None,
|
|
|
85
90
|
schema: Optional[str] = None,
|
|
86
91
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetExternalFunctionsResult:
|
|
87
92
|
"""
|
|
93
|
+
!> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
94
|
+
|
|
88
95
|
## Example Usage
|
|
89
96
|
|
|
90
97
|
```python
|
|
@@ -94,6 +101,10 @@ def get_external_functions(database: Optional[str] = None,
|
|
|
94
101
|
current = snowflake.get_external_functions(database="MYDB",
|
|
95
102
|
schema="MYSCHEMA")
|
|
96
103
|
```
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param str database: The database from which to return the schemas from.
|
|
107
|
+
:param str schema: The schema from which to return the external functions from.
|
|
97
108
|
"""
|
|
98
109
|
__args__ = dict()
|
|
99
110
|
__args__['database'] = database
|
|
@@ -106,13 +117,12 @@ def get_external_functions(database: Optional[str] = None,
|
|
|
106
117
|
external_functions=pulumi.get(__ret__, 'external_functions'),
|
|
107
118
|
id=pulumi.get(__ret__, 'id'),
|
|
108
119
|
schema=pulumi.get(__ret__, 'schema'))
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
@_utilities.lift_output_func(get_external_functions)
|
|
112
120
|
def get_external_functions_output(database: Optional[pulumi.Input[Optional[str]]] = None,
|
|
113
121
|
schema: Optional[pulumi.Input[Optional[str]]] = None,
|
|
114
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetExternalFunctionsResult]:
|
|
122
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetExternalFunctionsResult]:
|
|
115
123
|
"""
|
|
124
|
+
!> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
125
|
+
|
|
116
126
|
## Example Usage
|
|
117
127
|
|
|
118
128
|
```python
|
|
@@ -122,5 +132,18 @@ def get_external_functions_output(database: Optional[pulumi.Input[Optional[str]]
|
|
|
122
132
|
current = snowflake.get_external_functions(database="MYDB",
|
|
123
133
|
schema="MYSCHEMA")
|
|
124
134
|
```
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
:param str database: The database from which to return the schemas from.
|
|
138
|
+
:param str schema: The schema from which to return the external functions from.
|
|
125
139
|
"""
|
|
126
|
-
|
|
140
|
+
__args__ = dict()
|
|
141
|
+
__args__['database'] = database
|
|
142
|
+
__args__['schema'] = schema
|
|
143
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
144
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getExternalFunctions:getExternalFunctions', __args__, opts=opts, typ=GetExternalFunctionsResult)
|
|
145
|
+
return __ret__.apply(lambda __response__: GetExternalFunctionsResult(
|
|
146
|
+
database=pulumi.get(__response__, 'database'),
|
|
147
|
+
external_functions=pulumi.get(__response__, 'external_functions'),
|
|
148
|
+
id=pulumi.get(__response__, 'id'),
|
|
149
|
+
schema=pulumi.get(__response__, 'schema')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
|
|
@@ -85,6 +90,8 @@ def get_external_tables(database: Optional[str] = None,
|
|
|
85
90
|
schema: Optional[str] = None,
|
|
86
91
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetExternalTablesResult:
|
|
87
92
|
"""
|
|
93
|
+
!> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
94
|
+
|
|
88
95
|
## Example Usage
|
|
89
96
|
|
|
90
97
|
```python
|
|
@@ -94,6 +101,10 @@ def get_external_tables(database: Optional[str] = None,
|
|
|
94
101
|
current = snowflake.get_external_tables(database="MYDB",
|
|
95
102
|
schema="MYSCHEMA")
|
|
96
103
|
```
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param str database: The database from which to return the schemas from.
|
|
107
|
+
:param str schema: The schema from which to return the external tables from.
|
|
97
108
|
"""
|
|
98
109
|
__args__ = dict()
|
|
99
110
|
__args__['database'] = database
|
|
@@ -106,13 +117,12 @@ def get_external_tables(database: Optional[str] = None,
|
|
|
106
117
|
external_tables=pulumi.get(__ret__, 'external_tables'),
|
|
107
118
|
id=pulumi.get(__ret__, 'id'),
|
|
108
119
|
schema=pulumi.get(__ret__, 'schema'))
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
@_utilities.lift_output_func(get_external_tables)
|
|
112
120
|
def get_external_tables_output(database: Optional[pulumi.Input[str]] = None,
|
|
113
121
|
schema: Optional[pulumi.Input[str]] = None,
|
|
114
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetExternalTablesResult]:
|
|
122
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetExternalTablesResult]:
|
|
115
123
|
"""
|
|
124
|
+
!> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
125
|
+
|
|
116
126
|
## Example Usage
|
|
117
127
|
|
|
118
128
|
```python
|
|
@@ -122,5 +132,18 @@ def get_external_tables_output(database: Optional[pulumi.Input[str]] = None,
|
|
|
122
132
|
current = snowflake.get_external_tables(database="MYDB",
|
|
123
133
|
schema="MYSCHEMA")
|
|
124
134
|
```
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
:param str database: The database from which to return the schemas from.
|
|
138
|
+
:param str schema: The schema from which to return the external tables from.
|
|
125
139
|
"""
|
|
126
|
-
|
|
140
|
+
__args__ = dict()
|
|
141
|
+
__args__['database'] = database
|
|
142
|
+
__args__['schema'] = schema
|
|
143
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
144
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getExternalTables:getExternalTables', __args__, opts=opts, typ=GetExternalTablesResult)
|
|
145
|
+
return __ret__.apply(lambda __response__: GetExternalTablesResult(
|
|
146
|
+
database=pulumi.get(__response__, 'database'),
|
|
147
|
+
external_tables=pulumi.get(__response__, 'external_tables'),
|
|
148
|
+
id=pulumi.get(__response__, 'id'),
|
|
149
|
+
schema=pulumi.get(__response__, 'schema')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
|
|
@@ -72,7 +77,8 @@ class AwaitableGetFailoverGroupsResult(GetFailoverGroupsResult):
|
|
|
72
77
|
def get_failover_groups(in_account: Optional[str] = None,
|
|
73
78
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetFailoverGroupsResult:
|
|
74
79
|
"""
|
|
75
|
-
|
|
80
|
+
!> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
81
|
+
|
|
76
82
|
|
|
77
83
|
:param str in_account: Specifies the identifier for the account
|
|
78
84
|
"""
|
|
@@ -85,14 +91,19 @@ def get_failover_groups(in_account: Optional[str] = None,
|
|
|
85
91
|
failover_groups=pulumi.get(__ret__, 'failover_groups'),
|
|
86
92
|
id=pulumi.get(__ret__, 'id'),
|
|
87
93
|
in_account=pulumi.get(__ret__, 'in_account'))
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
@_utilities.lift_output_func(get_failover_groups)
|
|
91
94
|
def get_failover_groups_output(in_account: Optional[pulumi.Input[Optional[str]]] = None,
|
|
92
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetFailoverGroupsResult]:
|
|
95
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetFailoverGroupsResult]:
|
|
93
96
|
"""
|
|
94
|
-
|
|
97
|
+
!> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
98
|
+
|
|
95
99
|
|
|
96
100
|
:param str in_account: Specifies the identifier for the account
|
|
97
101
|
"""
|
|
98
|
-
|
|
102
|
+
__args__ = dict()
|
|
103
|
+
__args__['inAccount'] = in_account
|
|
104
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
105
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getFailoverGroups:getFailoverGroups', __args__, opts=opts, typ=GetFailoverGroupsResult)
|
|
106
|
+
return __ret__.apply(lambda __response__: GetFailoverGroupsResult(
|
|
107
|
+
failover_groups=pulumi.get(__response__, 'failover_groups'),
|
|
108
|
+
id=pulumi.get(__response__, 'id'),
|
|
109
|
+
in_account=pulumi.get(__response__, 'in_account')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
|
|
@@ -85,6 +90,8 @@ def get_file_formats(database: Optional[str] = None,
|
|
|
85
90
|
schema: Optional[str] = None,
|
|
86
91
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetFileFormatsResult:
|
|
87
92
|
"""
|
|
93
|
+
!> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
94
|
+
|
|
88
95
|
## Example Usage
|
|
89
96
|
|
|
90
97
|
```python
|
|
@@ -94,6 +101,10 @@ def get_file_formats(database: Optional[str] = None,
|
|
|
94
101
|
current = snowflake.get_file_formats(database="MYDB",
|
|
95
102
|
schema="MYSCHEMA")
|
|
96
103
|
```
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param str database: The database from which to return the schemas from.
|
|
107
|
+
:param str schema: The schema from which to return the file formats from.
|
|
97
108
|
"""
|
|
98
109
|
__args__ = dict()
|
|
99
110
|
__args__['database'] = database
|
|
@@ -106,13 +117,12 @@ def get_file_formats(database: Optional[str] = None,
|
|
|
106
117
|
file_formats=pulumi.get(__ret__, 'file_formats'),
|
|
107
118
|
id=pulumi.get(__ret__, 'id'),
|
|
108
119
|
schema=pulumi.get(__ret__, 'schema'))
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
@_utilities.lift_output_func(get_file_formats)
|
|
112
120
|
def get_file_formats_output(database: Optional[pulumi.Input[str]] = None,
|
|
113
121
|
schema: Optional[pulumi.Input[str]] = None,
|
|
114
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetFileFormatsResult]:
|
|
122
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetFileFormatsResult]:
|
|
115
123
|
"""
|
|
124
|
+
!> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
125
|
+
|
|
116
126
|
## Example Usage
|
|
117
127
|
|
|
118
128
|
```python
|
|
@@ -122,5 +132,18 @@ def get_file_formats_output(database: Optional[pulumi.Input[str]] = None,
|
|
|
122
132
|
current = snowflake.get_file_formats(database="MYDB",
|
|
123
133
|
schema="MYSCHEMA")
|
|
124
134
|
```
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
:param str database: The database from which to return the schemas from.
|
|
138
|
+
:param str schema: The schema from which to return the file formats from.
|
|
125
139
|
"""
|
|
126
|
-
|
|
140
|
+
__args__ = dict()
|
|
141
|
+
__args__['database'] = database
|
|
142
|
+
__args__['schema'] = schema
|
|
143
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
144
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getFileFormats:getFileFormats', __args__, opts=opts, typ=GetFileFormatsResult)
|
|
145
|
+
return __ret__.apply(lambda __response__: GetFileFormatsResult(
|
|
146
|
+
database=pulumi.get(__response__, 'database'),
|
|
147
|
+
file_formats=pulumi.get(__response__, 'file_formats'),
|
|
148
|
+
id=pulumi.get(__response__, 'id'),
|
|
149
|
+
schema=pulumi.get(__response__, 'schema')))
|