pulumi-snowflake 0.57.1a1722856643__py3-none-any.whl → 0.58.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_snowflake/_inputs.py +5859 -127
- pulumi_snowflake/account.py +28 -50
- pulumi_snowflake/account_parameter.py +0 -28
- pulumi_snowflake/account_password_policy_attachment.py +2 -30
- pulumi_snowflake/account_role.py +51 -32
- pulumi_snowflake/alert.py +33 -45
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +39 -19
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +39 -19
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +39 -19
- pulumi_snowflake/api_integration.py +28 -54
- pulumi_snowflake/cortex_search_service.py +28 -0
- pulumi_snowflake/database.py +97 -148
- pulumi_snowflake/database_old.py +5 -77
- pulumi_snowflake/database_role.py +76 -42
- pulumi_snowflake/dynamic_table.py +33 -43
- pulumi_snowflake/email_notification_integration.py +28 -26
- pulumi_snowflake/external_function.py +38 -62
- pulumi_snowflake/external_oauth_integration.py +41 -21
- pulumi_snowflake/external_table.py +38 -58
- pulumi_snowflake/failover_group.py +38 -82
- pulumi_snowflake/file_format.py +28 -26
- pulumi_snowflake/function.py +33 -9
- pulumi_snowflake/get_cortex_search_services.py +16 -16
- pulumi_snowflake/get_database_roles.py +61 -38
- pulumi_snowflake/get_databases.py +4 -4
- pulumi_snowflake/get_dynamic_tables.py +12 -12
- pulumi_snowflake/get_grants.py +138 -138
- pulumi_snowflake/get_schemas.py +8 -8
- pulumi_snowflake/get_streamlits.py +8 -8
- pulumi_snowflake/get_users.py +96 -33
- pulumi_snowflake/get_views.py +92 -53
- pulumi_snowflake/grant_account_role.py +0 -4
- pulumi_snowflake/grant_application_role.py +0 -4
- pulumi_snowflake/grant_database_role.py +0 -4
- pulumi_snowflake/grant_ownership.py +5 -5
- pulumi_snowflake/grant_privileges_to_account_role.py +15 -15
- pulumi_snowflake/grant_privileges_to_database_role.py +16 -12
- pulumi_snowflake/grant_privileges_to_share.py +47 -0
- pulumi_snowflake/managed_account.py +28 -4
- pulumi_snowflake/masking_policy.py +33 -89
- pulumi_snowflake/materialized_view.py +33 -39
- pulumi_snowflake/network_policy.py +47 -49
- pulumi_snowflake/network_policy_attachment.py +0 -30
- pulumi_snowflake/network_rule.py +28 -66
- pulumi_snowflake/notification_integration.py +28 -34
- pulumi_snowflake/oauth_integration.py +0 -34
- pulumi_snowflake/oauth_integration_for_custom_clients.py +39 -105
- pulumi_snowflake/oauth_integration_for_partner_applications.py +39 -19
- pulumi_snowflake/object_parameter.py +5 -103
- pulumi_snowflake/outputs.py +11648 -3842
- pulumi_snowflake/password_policy.py +28 -28
- pulumi_snowflake/pipe.py +28 -4
- pulumi_snowflake/procedure.py +33 -9
- pulumi_snowflake/provider.py +16 -16
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/resource_monitor.py +28 -48
- pulumi_snowflake/role.py +51 -32
- pulumi_snowflake/row_access_policy.py +28 -34
- pulumi_snowflake/saml2_integration.py +39 -19
- pulumi_snowflake/saml_integration.py +0 -34
- pulumi_snowflake/schema.py +45 -25
- pulumi_snowflake/scim_integration.py +39 -19
- pulumi_snowflake/secondary_database.py +35 -19
- pulumi_snowflake/sequence.py +4 -36
- pulumi_snowflake/session_parameter.py +0 -32
- pulumi_snowflake/share.py +28 -28
- pulumi_snowflake/shared_database.py +35 -15
- pulumi_snowflake/stage.py +33 -33
- pulumi_snowflake/storage_integration.py +28 -4
- pulumi_snowflake/stream.py +28 -4
- pulumi_snowflake/streamlit.py +39 -19
- pulumi_snowflake/table.py +43 -47
- pulumi_snowflake/table_column_masking_policy_application.py +2 -14
- pulumi_snowflake/table_constraint.py +5 -157
- pulumi_snowflake/tag.py +28 -40
- pulumi_snowflake/tag_association.py +5 -125
- pulumi_snowflake/tag_masking_policy_association.py +0 -4
- pulumi_snowflake/task.py +28 -92
- pulumi_snowflake/unsafe_execute.py +2 -20
- pulumi_snowflake/user.py +3341 -368
- pulumi_snowflake/user_password_policy_attachment.py +0 -36
- pulumi_snowflake/view.py +465 -185
- pulumi_snowflake/warehouse.py +39 -43
- {pulumi_snowflake-0.57.1a1722856643.dist-info → pulumi_snowflake-0.58.0.dist-info}/METADATA +1 -1
- pulumi_snowflake-0.58.0.dist-info/RECORD +129 -0
- {pulumi_snowflake-0.57.1a1722856643.dist-info → pulumi_snowflake-0.58.0.dist-info}/WHEEL +1 -1
- pulumi_snowflake-0.57.1a1722856643.dist-info/RECORD +0 -129
- {pulumi_snowflake-0.57.1a1722856643.dist-info → pulumi_snowflake-0.58.0.dist-info}/top_level.txt +0 -0
|
@@ -9,6 +9,7 @@ import pulumi.runtime
|
|
|
9
9
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
10
|
from . import _utilities
|
|
11
11
|
from . import outputs
|
|
12
|
+
from ._inputs import *
|
|
12
13
|
|
|
13
14
|
__all__ = [
|
|
14
15
|
'GetDatabaseRolesResult',
|
|
@@ -22,30 +23,28 @@ class GetDatabaseRolesResult:
|
|
|
22
23
|
"""
|
|
23
24
|
A collection of values returned by getDatabaseRoles.
|
|
24
25
|
"""
|
|
25
|
-
def __init__(__self__,
|
|
26
|
-
if database and not isinstance(database, str):
|
|
27
|
-
raise TypeError("Expected argument 'database' to be a str")
|
|
28
|
-
pulumi.set(__self__, "database", database)
|
|
26
|
+
def __init__(__self__, database_roles=None, id=None, in_database=None, like=None, limit=None):
|
|
29
27
|
if database_roles and not isinstance(database_roles, list):
|
|
30
28
|
raise TypeError("Expected argument 'database_roles' to be a list")
|
|
31
29
|
pulumi.set(__self__, "database_roles", database_roles)
|
|
32
30
|
if id and not isinstance(id, str):
|
|
33
31
|
raise TypeError("Expected argument 'id' to be a str")
|
|
34
32
|
pulumi.set(__self__, "id", id)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
if in_database and not isinstance(in_database, str):
|
|
34
|
+
raise TypeError("Expected argument 'in_database' to be a str")
|
|
35
|
+
pulumi.set(__self__, "in_database", in_database)
|
|
36
|
+
if like and not isinstance(like, str):
|
|
37
|
+
raise TypeError("Expected argument 'like' to be a str")
|
|
38
|
+
pulumi.set(__self__, "like", like)
|
|
39
|
+
if limit and not isinstance(limit, dict):
|
|
40
|
+
raise TypeError("Expected argument 'limit' to be a dict")
|
|
41
|
+
pulumi.set(__self__, "limit", limit)
|
|
43
42
|
|
|
44
43
|
@property
|
|
45
44
|
@pulumi.getter(name="databaseRoles")
|
|
46
45
|
def database_roles(self) -> Sequence['outputs.GetDatabaseRolesDatabaseRoleResult']:
|
|
47
46
|
"""
|
|
48
|
-
|
|
47
|
+
Holds the aggregated output of all database role details queries.
|
|
49
48
|
"""
|
|
50
49
|
return pulumi.get(self, "database_roles")
|
|
51
50
|
|
|
@@ -57,6 +56,30 @@ class GetDatabaseRolesResult:
|
|
|
57
56
|
"""
|
|
58
57
|
return pulumi.get(self, "id")
|
|
59
58
|
|
|
59
|
+
@property
|
|
60
|
+
@pulumi.getter(name="inDatabase")
|
|
61
|
+
def in_database(self) -> str:
|
|
62
|
+
"""
|
|
63
|
+
The database from which to return the database roles from.
|
|
64
|
+
"""
|
|
65
|
+
return pulumi.get(self, "in_database")
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
@pulumi.getter
|
|
69
|
+
def like(self) -> Optional[str]:
|
|
70
|
+
"""
|
|
71
|
+
Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
72
|
+
"""
|
|
73
|
+
return pulumi.get(self, "like")
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
@pulumi.getter
|
|
77
|
+
def limit(self) -> Optional['outputs.GetDatabaseRolesLimitResult']:
|
|
78
|
+
"""
|
|
79
|
+
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`.
|
|
80
|
+
"""
|
|
81
|
+
return pulumi.get(self, "limit")
|
|
82
|
+
|
|
60
83
|
|
|
61
84
|
class AwaitableGetDatabaseRolesResult(GetDatabaseRolesResult):
|
|
62
85
|
# pylint: disable=using-constant-test
|
|
@@ -64,51 +87,51 @@ class AwaitableGetDatabaseRolesResult(GetDatabaseRolesResult):
|
|
|
64
87
|
if False:
|
|
65
88
|
yield self
|
|
66
89
|
return GetDatabaseRolesResult(
|
|
67
|
-
database=self.database,
|
|
68
90
|
database_roles=self.database_roles,
|
|
69
|
-
id=self.id
|
|
91
|
+
id=self.id,
|
|
92
|
+
in_database=self.in_database,
|
|
93
|
+
like=self.like,
|
|
94
|
+
limit=self.limit)
|
|
70
95
|
|
|
71
96
|
|
|
72
|
-
def get_database_roles(
|
|
97
|
+
def get_database_roles(in_database: Optional[str] = None,
|
|
98
|
+
like: Optional[str] = None,
|
|
99
|
+
limit: Optional[Union['GetDatabaseRolesLimitArgs', 'GetDatabaseRolesLimitArgsDict']] = None,
|
|
73
100
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatabaseRolesResult:
|
|
74
101
|
"""
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
```python
|
|
78
|
-
import pulumi
|
|
79
|
-
import pulumi_snowflake as snowflake
|
|
102
|
+
!> **V1 release candidate** This data source was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
|
|
80
103
|
|
|
81
|
-
db_roles = snowflake.get_database_roles(database="MYDB")
|
|
82
|
-
```
|
|
83
104
|
|
|
84
|
-
|
|
85
|
-
:param str
|
|
105
|
+
:param str in_database: The database from which to return the database roles from.
|
|
106
|
+
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
107
|
+
:param Union['GetDatabaseRolesLimitArgs', 'GetDatabaseRolesLimitArgsDict'] 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`.
|
|
86
108
|
"""
|
|
87
109
|
__args__ = dict()
|
|
88
|
-
__args__['
|
|
110
|
+
__args__['inDatabase'] = in_database
|
|
111
|
+
__args__['like'] = like
|
|
112
|
+
__args__['limit'] = limit
|
|
89
113
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
90
114
|
__ret__ = pulumi.runtime.invoke('snowflake:index/getDatabaseRoles:getDatabaseRoles', __args__, opts=opts, typ=GetDatabaseRolesResult).value
|
|
91
115
|
|
|
92
116
|
return AwaitableGetDatabaseRolesResult(
|
|
93
|
-
database=pulumi.get(__ret__, 'database'),
|
|
94
117
|
database_roles=pulumi.get(__ret__, 'database_roles'),
|
|
95
|
-
id=pulumi.get(__ret__, 'id')
|
|
118
|
+
id=pulumi.get(__ret__, 'id'),
|
|
119
|
+
in_database=pulumi.get(__ret__, 'in_database'),
|
|
120
|
+
like=pulumi.get(__ret__, 'like'),
|
|
121
|
+
limit=pulumi.get(__ret__, 'limit'))
|
|
96
122
|
|
|
97
123
|
|
|
98
124
|
@_utilities.lift_output_func(get_database_roles)
|
|
99
|
-
def get_database_roles_output(
|
|
125
|
+
def get_database_roles_output(in_database: Optional[pulumi.Input[str]] = None,
|
|
126
|
+
like: Optional[pulumi.Input[Optional[str]]] = None,
|
|
127
|
+
limit: Optional[pulumi.Input[Optional[Union['GetDatabaseRolesLimitArgs', 'GetDatabaseRolesLimitArgsDict']]]] = None,
|
|
100
128
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatabaseRolesResult]:
|
|
101
129
|
"""
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
```python
|
|
105
|
-
import pulumi
|
|
106
|
-
import pulumi_snowflake as snowflake
|
|
107
|
-
|
|
108
|
-
db_roles = snowflake.get_database_roles(database="MYDB")
|
|
109
|
-
```
|
|
130
|
+
!> **V1 release candidate** This data source was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
|
|
110
131
|
|
|
111
132
|
|
|
112
|
-
:param str
|
|
133
|
+
:param str in_database: The database from which to return the database roles from.
|
|
134
|
+
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
135
|
+
:param Union['GetDatabaseRolesLimitArgs', 'GetDatabaseRolesLimitArgsDict'] 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`.
|
|
113
136
|
"""
|
|
114
137
|
...
|
|
@@ -119,7 +119,7 @@ class AwaitableGetDatabasesResult(GetDatabasesResult):
|
|
|
119
119
|
|
|
120
120
|
|
|
121
121
|
def get_databases(like: Optional[str] = None,
|
|
122
|
-
limit: Optional[
|
|
122
|
+
limit: Optional[Union['GetDatabasesLimitArgs', 'GetDatabasesLimitArgsDict']] = None,
|
|
123
123
|
starts_with: Optional[str] = None,
|
|
124
124
|
with_describe: Optional[bool] = None,
|
|
125
125
|
with_parameters: Optional[bool] = None,
|
|
@@ -131,7 +131,7 @@ def get_databases(like: Optional[str] = None,
|
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
134
|
-
:param
|
|
134
|
+
: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`.
|
|
135
135
|
:param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
136
136
|
: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.
|
|
137
137
|
: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.
|
|
@@ -157,7 +157,7 @@ def get_databases(like: Optional[str] = None,
|
|
|
157
157
|
|
|
158
158
|
@_utilities.lift_output_func(get_databases)
|
|
159
159
|
def get_databases_output(like: Optional[pulumi.Input[Optional[str]]] = None,
|
|
160
|
-
limit: Optional[pulumi.Input[Optional[
|
|
160
|
+
limit: Optional[pulumi.Input[Optional[Union['GetDatabasesLimitArgs', 'GetDatabasesLimitArgsDict']]]] = None,
|
|
161
161
|
starts_with: Optional[pulumi.Input[Optional[str]]] = None,
|
|
162
162
|
with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
163
163
|
with_parameters: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
@@ -169,7 +169,7 @@ def get_databases_output(like: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
169
169
|
|
|
170
170
|
|
|
171
171
|
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
172
|
-
:param
|
|
172
|
+
: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`.
|
|
173
173
|
:param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
174
174
|
: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.
|
|
175
175
|
: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.
|
|
@@ -106,17 +106,17 @@ class AwaitableGetDynamicTablesResult(GetDynamicTablesResult):
|
|
|
106
106
|
starts_with=self.starts_with)
|
|
107
107
|
|
|
108
108
|
|
|
109
|
-
def get_dynamic_tables(in_: Optional[
|
|
110
|
-
like: Optional[
|
|
111
|
-
limit: Optional[
|
|
109
|
+
def get_dynamic_tables(in_: Optional[Union['GetDynamicTablesInArgs', 'GetDynamicTablesInArgsDict']] = None,
|
|
110
|
+
like: Optional[Union['GetDynamicTablesLikeArgs', 'GetDynamicTablesLikeArgsDict']] = None,
|
|
111
|
+
limit: Optional[Union['GetDynamicTablesLimitArgs', 'GetDynamicTablesLimitArgsDict']] = None,
|
|
112
112
|
starts_with: Optional[str] = None,
|
|
113
113
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDynamicTablesResult:
|
|
114
114
|
"""
|
|
115
115
|
Use this data source to access information about an existing resource.
|
|
116
116
|
|
|
117
|
-
:param
|
|
118
|
-
:param
|
|
119
|
-
:param
|
|
117
|
+
:param Union['GetDynamicTablesInArgs', 'GetDynamicTablesInArgsDict'] in_: IN clause to filter the list of dynamic tables.
|
|
118
|
+
:param Union['GetDynamicTablesLikeArgs', 'GetDynamicTablesLikeArgsDict'] like: LIKE clause to filter the list of dynamic tables.
|
|
119
|
+
: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
120
|
: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
121
|
"""
|
|
122
122
|
__args__ = dict()
|
|
@@ -137,17 +137,17 @@ def get_dynamic_tables(in_: Optional[pulumi.InputType['GetDynamicTablesInArgs']]
|
|
|
137
137
|
|
|
138
138
|
|
|
139
139
|
@_utilities.lift_output_func(get_dynamic_tables)
|
|
140
|
-
def get_dynamic_tables_output(in_: Optional[pulumi.Input[Optional[
|
|
141
|
-
like: Optional[pulumi.Input[Optional[
|
|
142
|
-
limit: Optional[pulumi.Input[Optional[
|
|
140
|
+
def get_dynamic_tables_output(in_: Optional[pulumi.Input[Optional[Union['GetDynamicTablesInArgs', 'GetDynamicTablesInArgsDict']]]] = None,
|
|
141
|
+
like: Optional[pulumi.Input[Optional[Union['GetDynamicTablesLikeArgs', 'GetDynamicTablesLikeArgsDict']]]] = None,
|
|
142
|
+
limit: Optional[pulumi.Input[Optional[Union['GetDynamicTablesLimitArgs', 'GetDynamicTablesLimitArgsDict']]]] = None,
|
|
143
143
|
starts_with: Optional[pulumi.Input[Optional[str]]] = None,
|
|
144
144
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDynamicTablesResult]:
|
|
145
145
|
"""
|
|
146
146
|
Use this data source to access information about an existing resource.
|
|
147
147
|
|
|
148
|
-
:param
|
|
149
|
-
:param
|
|
150
|
-
:param
|
|
148
|
+
:param Union['GetDynamicTablesInArgs', 'GetDynamicTablesInArgsDict'] in_: IN clause to filter the list of dynamic tables.
|
|
149
|
+
:param Union['GetDynamicTablesLikeArgs', 'GetDynamicTablesLikeArgsDict'] like: LIKE clause to filter the list of dynamic tables.
|
|
150
|
+
: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
151
|
: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
152
|
"""
|
|
153
153
|
...
|
pulumi_snowflake/get_grants.py
CHANGED
|
@@ -118,11 +118,11 @@ class AwaitableGetGrantsResult(GetGrantsResult):
|
|
|
118
118
|
id=self.id)
|
|
119
119
|
|
|
120
120
|
|
|
121
|
-
def get_grants(future_grants_in: Optional[
|
|
122
|
-
future_grants_to: Optional[
|
|
123
|
-
grants_of: Optional[
|
|
124
|
-
grants_on: Optional[
|
|
125
|
-
grants_to: Optional[
|
|
121
|
+
def get_grants(future_grants_in: Optional[Union['GetGrantsFutureGrantsInArgs', 'GetGrantsFutureGrantsInArgsDict']] = None,
|
|
122
|
+
future_grants_to: Optional[Union['GetGrantsFutureGrantsToArgs', 'GetGrantsFutureGrantsToArgsDict']] = None,
|
|
123
|
+
grants_of: Optional[Union['GetGrantsGrantsOfArgs', 'GetGrantsGrantsOfArgsDict']] = None,
|
|
124
|
+
grants_on: Optional[Union['GetGrantsGrantsOnArgs', 'GetGrantsGrantsOnArgsDict']] = None,
|
|
125
|
+
grants_to: Optional[Union['GetGrantsGrantsToArgs', 'GetGrantsGrantsToArgsDict']] = None,
|
|
126
126
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGrantsResult:
|
|
127
127
|
"""
|
|
128
128
|
## Example Usage
|
|
@@ -135,90 +135,90 @@ def get_grants(future_grants_in: Optional[pulumi.InputType['GetGrantsFutureGrant
|
|
|
135
135
|
### SHOW GRANTS ON ...
|
|
136
136
|
##################################
|
|
137
137
|
# account
|
|
138
|
-
example_on_account = snowflake.get_grants(grants_on=
|
|
139
|
-
account
|
|
140
|
-
)
|
|
138
|
+
example_on_account = snowflake.get_grants(grants_on={
|
|
139
|
+
"account": True,
|
|
140
|
+
})
|
|
141
141
|
# account object (e.g. database)
|
|
142
|
-
example_on_account_object = snowflake.get_grants(grants_on=
|
|
143
|
-
object_name
|
|
144
|
-
object_type
|
|
145
|
-
)
|
|
142
|
+
example_on_account_object = snowflake.get_grants(grants_on={
|
|
143
|
+
"object_name": "some_database",
|
|
144
|
+
"object_type": "DATABASE",
|
|
145
|
+
})
|
|
146
146
|
# database object (e.g. schema)
|
|
147
|
-
example_on_database_object = snowflake.get_grants(grants_on=
|
|
148
|
-
object_name
|
|
149
|
-
object_type
|
|
150
|
-
)
|
|
147
|
+
example_on_database_object = snowflake.get_grants(grants_on={
|
|
148
|
+
"object_name": "\\"some_database\\".\\"some_schema\\"",
|
|
149
|
+
"object_type": "SCHEMA",
|
|
150
|
+
})
|
|
151
151
|
# schema object (e.g. table)
|
|
152
|
-
example_on_schema_object = snowflake.get_grants(grants_on=
|
|
153
|
-
object_name
|
|
154
|
-
object_type
|
|
155
|
-
)
|
|
152
|
+
example_on_schema_object = snowflake.get_grants(grants_on={
|
|
153
|
+
"object_name": "\\"some_database\\".\\"some_schema\\".\\"some_table\\"",
|
|
154
|
+
"object_type": "TABLE",
|
|
155
|
+
})
|
|
156
156
|
# application
|
|
157
|
-
example_to_application = snowflake.get_grants(grants_to=
|
|
158
|
-
application
|
|
159
|
-
)
|
|
157
|
+
example_to_application = snowflake.get_grants(grants_to={
|
|
158
|
+
"application": "some_application",
|
|
159
|
+
})
|
|
160
160
|
# application role
|
|
161
|
-
example_to_application_role = snowflake.get_grants(grants_to=
|
|
162
|
-
application_role
|
|
163
|
-
)
|
|
161
|
+
example_to_application_role = snowflake.get_grants(grants_to={
|
|
162
|
+
"application_role": "\\"some_application\\".\\"some_application_role\\"",
|
|
163
|
+
})
|
|
164
164
|
# account role
|
|
165
|
-
example_to_role = snowflake.get_grants(grants_to=
|
|
166
|
-
account_role
|
|
167
|
-
)
|
|
165
|
+
example_to_role = snowflake.get_grants(grants_to={
|
|
166
|
+
"account_role": "some_role",
|
|
167
|
+
})
|
|
168
168
|
# database role
|
|
169
|
-
example_to_database_role = snowflake.get_grants(grants_to=
|
|
170
|
-
database_role
|
|
171
|
-
)
|
|
169
|
+
example_to_database_role = snowflake.get_grants(grants_to={
|
|
170
|
+
"database_role": "\\"some_database\\".\\"some_database_role\\"",
|
|
171
|
+
})
|
|
172
172
|
# share
|
|
173
|
-
example_to_share = snowflake.get_grants(grants_to=
|
|
174
|
-
share
|
|
175
|
-
share_name
|
|
176
|
-
|
|
177
|
-
)
|
|
173
|
+
example_to_share = snowflake.get_grants(grants_to={
|
|
174
|
+
"share": {
|
|
175
|
+
"share_name": "some_share",
|
|
176
|
+
},
|
|
177
|
+
})
|
|
178
178
|
# user
|
|
179
|
-
example_to_user = snowflake.get_grants(grants_to=
|
|
180
|
-
user
|
|
181
|
-
)
|
|
179
|
+
example_to_user = snowflake.get_grants(grants_to={
|
|
180
|
+
"user": "some_user",
|
|
181
|
+
})
|
|
182
182
|
# application role
|
|
183
|
-
example_of_application_role = snowflake.get_grants(grants_of=
|
|
184
|
-
application_role
|
|
185
|
-
)
|
|
183
|
+
example_of_application_role = snowflake.get_grants(grants_of={
|
|
184
|
+
"application_role": "\\"some_application\\".\\"some_application_role\\"",
|
|
185
|
+
})
|
|
186
186
|
# database role
|
|
187
|
-
example_of_database_role = snowflake.get_grants(grants_of=
|
|
188
|
-
database_role
|
|
189
|
-
)
|
|
187
|
+
example_of_database_role = snowflake.get_grants(grants_of={
|
|
188
|
+
"database_role": "\\"some_database\\".\\"some_database_role\\"",
|
|
189
|
+
})
|
|
190
190
|
# account role
|
|
191
|
-
example_of_role = snowflake.get_grants(grants_of=
|
|
192
|
-
account_role
|
|
193
|
-
)
|
|
191
|
+
example_of_role = snowflake.get_grants(grants_of={
|
|
192
|
+
"account_role": "some_role",
|
|
193
|
+
})
|
|
194
194
|
# share
|
|
195
|
-
example_of_share = snowflake.get_grants(grants_of=
|
|
196
|
-
share
|
|
197
|
-
)
|
|
195
|
+
example_of_share = snowflake.get_grants(grants_of={
|
|
196
|
+
"share": "some_share",
|
|
197
|
+
})
|
|
198
198
|
# database
|
|
199
|
-
example_future_in_database = snowflake.get_grants(future_grants_in=
|
|
200
|
-
database
|
|
201
|
-
)
|
|
199
|
+
example_future_in_database = snowflake.get_grants(future_grants_in={
|
|
200
|
+
"database": "some_database",
|
|
201
|
+
})
|
|
202
202
|
# schema
|
|
203
|
-
example_future_in_schema = snowflake.get_grants(future_grants_in=
|
|
204
|
-
schema
|
|
205
|
-
)
|
|
203
|
+
example_future_in_schema = snowflake.get_grants(future_grants_in={
|
|
204
|
+
"schema": "\\"some_database\\".\\"some_schema\\"",
|
|
205
|
+
})
|
|
206
206
|
# account role
|
|
207
|
-
example_future_to_role = snowflake.get_grants(future_grants_to=
|
|
208
|
-
account_role
|
|
209
|
-
)
|
|
207
|
+
example_future_to_role = snowflake.get_grants(future_grants_to={
|
|
208
|
+
"account_role": "some_role",
|
|
209
|
+
})
|
|
210
210
|
# database role
|
|
211
|
-
example_future_to_database_role = snowflake.get_grants(future_grants_to=
|
|
212
|
-
database_role
|
|
213
|
-
)
|
|
211
|
+
example_future_to_database_role = snowflake.get_grants(future_grants_to={
|
|
212
|
+
"database_role": "\\"some_database\\".\\"some_database_role\\"",
|
|
213
|
+
})
|
|
214
214
|
```
|
|
215
215
|
|
|
216
216
|
|
|
217
|
-
:param
|
|
218
|
-
:param
|
|
219
|
-
:param
|
|
220
|
-
:param
|
|
221
|
-
:param
|
|
217
|
+
:param Union['GetGrantsFutureGrantsInArgs', 'GetGrantsFutureGrantsInArgsDict'] future_grants_in: Lists all privileges on new (i.e. future) objects.
|
|
218
|
+
:param Union['GetGrantsFutureGrantsToArgs', 'GetGrantsFutureGrantsToArgsDict'] future_grants_to: Lists all privileges granted to the object on new (i.e. future) objects.
|
|
219
|
+
:param Union['GetGrantsGrantsOfArgs', 'GetGrantsGrantsOfArgsDict'] grants_of: Lists all objects to which the given object has been granted.
|
|
220
|
+
:param Union['GetGrantsGrantsOnArgs', 'GetGrantsGrantsOnArgsDict'] grants_on: Lists all privileges that have been granted on an object or on an account.
|
|
221
|
+
:param Union['GetGrantsGrantsToArgs', 'GetGrantsGrantsToArgsDict'] grants_to: Lists all privileges granted to the object.
|
|
222
222
|
"""
|
|
223
223
|
__args__ = dict()
|
|
224
224
|
__args__['futureGrantsIn'] = future_grants_in
|
|
@@ -240,11 +240,11 @@ def get_grants(future_grants_in: Optional[pulumi.InputType['GetGrantsFutureGrant
|
|
|
240
240
|
|
|
241
241
|
|
|
242
242
|
@_utilities.lift_output_func(get_grants)
|
|
243
|
-
def get_grants_output(future_grants_in: Optional[pulumi.Input[Optional[
|
|
244
|
-
future_grants_to: Optional[pulumi.Input[Optional[
|
|
245
|
-
grants_of: Optional[pulumi.Input[Optional[
|
|
246
|
-
grants_on: Optional[pulumi.Input[Optional[
|
|
247
|
-
grants_to: Optional[pulumi.Input[Optional[
|
|
243
|
+
def get_grants_output(future_grants_in: Optional[pulumi.Input[Optional[Union['GetGrantsFutureGrantsInArgs', 'GetGrantsFutureGrantsInArgsDict']]]] = None,
|
|
244
|
+
future_grants_to: Optional[pulumi.Input[Optional[Union['GetGrantsFutureGrantsToArgs', 'GetGrantsFutureGrantsToArgsDict']]]] = None,
|
|
245
|
+
grants_of: Optional[pulumi.Input[Optional[Union['GetGrantsGrantsOfArgs', 'GetGrantsGrantsOfArgsDict']]]] = None,
|
|
246
|
+
grants_on: Optional[pulumi.Input[Optional[Union['GetGrantsGrantsOnArgs', 'GetGrantsGrantsOnArgsDict']]]] = None,
|
|
247
|
+
grants_to: Optional[pulumi.Input[Optional[Union['GetGrantsGrantsToArgs', 'GetGrantsGrantsToArgsDict']]]] = None,
|
|
248
248
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGrantsResult]:
|
|
249
249
|
"""
|
|
250
250
|
## Example Usage
|
|
@@ -257,89 +257,89 @@ def get_grants_output(future_grants_in: Optional[pulumi.Input[Optional[pulumi.In
|
|
|
257
257
|
### SHOW GRANTS ON ...
|
|
258
258
|
##################################
|
|
259
259
|
# account
|
|
260
|
-
example_on_account = snowflake.get_grants(grants_on=
|
|
261
|
-
account
|
|
262
|
-
)
|
|
260
|
+
example_on_account = snowflake.get_grants(grants_on={
|
|
261
|
+
"account": True,
|
|
262
|
+
})
|
|
263
263
|
# account object (e.g. database)
|
|
264
|
-
example_on_account_object = snowflake.get_grants(grants_on=
|
|
265
|
-
object_name
|
|
266
|
-
object_type
|
|
267
|
-
)
|
|
264
|
+
example_on_account_object = snowflake.get_grants(grants_on={
|
|
265
|
+
"object_name": "some_database",
|
|
266
|
+
"object_type": "DATABASE",
|
|
267
|
+
})
|
|
268
268
|
# database object (e.g. schema)
|
|
269
|
-
example_on_database_object = snowflake.get_grants(grants_on=
|
|
270
|
-
object_name
|
|
271
|
-
object_type
|
|
272
|
-
)
|
|
269
|
+
example_on_database_object = snowflake.get_grants(grants_on={
|
|
270
|
+
"object_name": "\\"some_database\\".\\"some_schema\\"",
|
|
271
|
+
"object_type": "SCHEMA",
|
|
272
|
+
})
|
|
273
273
|
# schema object (e.g. table)
|
|
274
|
-
example_on_schema_object = snowflake.get_grants(grants_on=
|
|
275
|
-
object_name
|
|
276
|
-
object_type
|
|
277
|
-
)
|
|
274
|
+
example_on_schema_object = snowflake.get_grants(grants_on={
|
|
275
|
+
"object_name": "\\"some_database\\".\\"some_schema\\".\\"some_table\\"",
|
|
276
|
+
"object_type": "TABLE",
|
|
277
|
+
})
|
|
278
278
|
# application
|
|
279
|
-
example_to_application = snowflake.get_grants(grants_to=
|
|
280
|
-
application
|
|
281
|
-
)
|
|
279
|
+
example_to_application = snowflake.get_grants(grants_to={
|
|
280
|
+
"application": "some_application",
|
|
281
|
+
})
|
|
282
282
|
# application role
|
|
283
|
-
example_to_application_role = snowflake.get_grants(grants_to=
|
|
284
|
-
application_role
|
|
285
|
-
)
|
|
283
|
+
example_to_application_role = snowflake.get_grants(grants_to={
|
|
284
|
+
"application_role": "\\"some_application\\".\\"some_application_role\\"",
|
|
285
|
+
})
|
|
286
286
|
# account role
|
|
287
|
-
example_to_role = snowflake.get_grants(grants_to=
|
|
288
|
-
account_role
|
|
289
|
-
)
|
|
287
|
+
example_to_role = snowflake.get_grants(grants_to={
|
|
288
|
+
"account_role": "some_role",
|
|
289
|
+
})
|
|
290
290
|
# database role
|
|
291
|
-
example_to_database_role = snowflake.get_grants(grants_to=
|
|
292
|
-
database_role
|
|
293
|
-
)
|
|
291
|
+
example_to_database_role = snowflake.get_grants(grants_to={
|
|
292
|
+
"database_role": "\\"some_database\\".\\"some_database_role\\"",
|
|
293
|
+
})
|
|
294
294
|
# share
|
|
295
|
-
example_to_share = snowflake.get_grants(grants_to=
|
|
296
|
-
share
|
|
297
|
-
share_name
|
|
298
|
-
|
|
299
|
-
)
|
|
295
|
+
example_to_share = snowflake.get_grants(grants_to={
|
|
296
|
+
"share": {
|
|
297
|
+
"share_name": "some_share",
|
|
298
|
+
},
|
|
299
|
+
})
|
|
300
300
|
# user
|
|
301
|
-
example_to_user = snowflake.get_grants(grants_to=
|
|
302
|
-
user
|
|
303
|
-
)
|
|
301
|
+
example_to_user = snowflake.get_grants(grants_to={
|
|
302
|
+
"user": "some_user",
|
|
303
|
+
})
|
|
304
304
|
# application role
|
|
305
|
-
example_of_application_role = snowflake.get_grants(grants_of=
|
|
306
|
-
application_role
|
|
307
|
-
)
|
|
305
|
+
example_of_application_role = snowflake.get_grants(grants_of={
|
|
306
|
+
"application_role": "\\"some_application\\".\\"some_application_role\\"",
|
|
307
|
+
})
|
|
308
308
|
# database role
|
|
309
|
-
example_of_database_role = snowflake.get_grants(grants_of=
|
|
310
|
-
database_role
|
|
311
|
-
)
|
|
309
|
+
example_of_database_role = snowflake.get_grants(grants_of={
|
|
310
|
+
"database_role": "\\"some_database\\".\\"some_database_role\\"",
|
|
311
|
+
})
|
|
312
312
|
# account role
|
|
313
|
-
example_of_role = snowflake.get_grants(grants_of=
|
|
314
|
-
account_role
|
|
315
|
-
)
|
|
313
|
+
example_of_role = snowflake.get_grants(grants_of={
|
|
314
|
+
"account_role": "some_role",
|
|
315
|
+
})
|
|
316
316
|
# share
|
|
317
|
-
example_of_share = snowflake.get_grants(grants_of=
|
|
318
|
-
share
|
|
319
|
-
)
|
|
317
|
+
example_of_share = snowflake.get_grants(grants_of={
|
|
318
|
+
"share": "some_share",
|
|
319
|
+
})
|
|
320
320
|
# database
|
|
321
|
-
example_future_in_database = snowflake.get_grants(future_grants_in=
|
|
322
|
-
database
|
|
323
|
-
)
|
|
321
|
+
example_future_in_database = snowflake.get_grants(future_grants_in={
|
|
322
|
+
"database": "some_database",
|
|
323
|
+
})
|
|
324
324
|
# schema
|
|
325
|
-
example_future_in_schema = snowflake.get_grants(future_grants_in=
|
|
326
|
-
schema
|
|
327
|
-
)
|
|
325
|
+
example_future_in_schema = snowflake.get_grants(future_grants_in={
|
|
326
|
+
"schema": "\\"some_database\\".\\"some_schema\\"",
|
|
327
|
+
})
|
|
328
328
|
# account role
|
|
329
|
-
example_future_to_role = snowflake.get_grants(future_grants_to=
|
|
330
|
-
account_role
|
|
331
|
-
)
|
|
329
|
+
example_future_to_role = snowflake.get_grants(future_grants_to={
|
|
330
|
+
"account_role": "some_role",
|
|
331
|
+
})
|
|
332
332
|
# database role
|
|
333
|
-
example_future_to_database_role = snowflake.get_grants(future_grants_to=
|
|
334
|
-
database_role
|
|
335
|
-
)
|
|
333
|
+
example_future_to_database_role = snowflake.get_grants(future_grants_to={
|
|
334
|
+
"database_role": "\\"some_database\\".\\"some_database_role\\"",
|
|
335
|
+
})
|
|
336
336
|
```
|
|
337
337
|
|
|
338
338
|
|
|
339
|
-
:param
|
|
340
|
-
:param
|
|
341
|
-
:param
|
|
342
|
-
:param
|
|
343
|
-
:param
|
|
339
|
+
:param Union['GetGrantsFutureGrantsInArgs', 'GetGrantsFutureGrantsInArgsDict'] future_grants_in: Lists all privileges on new (i.e. future) objects.
|
|
340
|
+
:param Union['GetGrantsFutureGrantsToArgs', 'GetGrantsFutureGrantsToArgsDict'] future_grants_to: Lists all privileges granted to the object on new (i.e. future) objects.
|
|
341
|
+
:param Union['GetGrantsGrantsOfArgs', 'GetGrantsGrantsOfArgsDict'] grants_of: Lists all objects to which the given object has been granted.
|
|
342
|
+
:param Union['GetGrantsGrantsOnArgs', 'GetGrantsGrantsOnArgsDict'] grants_on: Lists all privileges that have been granted on an object or on an account.
|
|
343
|
+
:param Union['GetGrantsGrantsToArgs', 'GetGrantsGrantsToArgsDict'] grants_to: Lists all privileges granted to the object.
|
|
344
344
|
"""
|
|
345
345
|
...
|