pulumi-snowflake 0.57.1__py3-none-any.whl → 0.57.2__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/account_role.py +32 -18
- pulumi_snowflake/alert.py +11 -11
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +4 -4
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +4 -4
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +4 -4
- pulumi_snowflake/cortex_search_service.py +76 -0
- pulumi_snowflake/database.py +15 -133
- pulumi_snowflake/database_old.py +13 -13
- pulumi_snowflake/dynamic_table.py +11 -11
- pulumi_snowflake/external_function.py +26 -26
- pulumi_snowflake/external_oauth_integration.py +6 -6
- pulumi_snowflake/external_table.py +26 -26
- pulumi_snowflake/failover_group.py +32 -32
- pulumi_snowflake/function.py +5 -5
- pulumi_snowflake/get_cortex_search_services.py +16 -16
- 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/grant_ownership.py +5 -5
- pulumi_snowflake/grant_privileges_to_account_role.py +19 -19
- pulumi_snowflake/grant_privileges_to_database_role.py +10 -10
- pulumi_snowflake/grant_privileges_to_share.py +2 -2
- pulumi_snowflake/masking_policy.py +17 -17
- pulumi_snowflake/materialized_view.py +5 -5
- pulumi_snowflake/network_policy.py +12 -34
- pulumi_snowflake/oauth_integration_for_custom_clients.py +4 -4
- pulumi_snowflake/oauth_integration_for_partner_applications.py +4 -4
- pulumi_snowflake/object_parameter.py +37 -37
- pulumi_snowflake/procedure.py +5 -5
- pulumi_snowflake/provider.py +2 -2
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/role.py +32 -18
- pulumi_snowflake/saml2_integration.py +4 -4
- pulumi_snowflake/schema.py +6 -6
- pulumi_snowflake/scim_integration.py +4 -4
- pulumi_snowflake/stage.py +5 -5
- pulumi_snowflake/streamlit.py +4 -4
- pulumi_snowflake/table.py +15 -15
- pulumi_snowflake/table_constraint.py +67 -67
- pulumi_snowflake/tag_association.py +47 -47
- pulumi_snowflake/view.py +5 -5
- pulumi_snowflake/warehouse.py +4 -4
- {pulumi_snowflake-0.57.1.dist-info → pulumi_snowflake-0.57.2.dist-info}/METADATA +1 -1
- {pulumi_snowflake-0.57.1.dist-info → pulumi_snowflake-0.57.2.dist-info}/RECORD +48 -48
- {pulumi_snowflake-0.57.1.dist-info → pulumi_snowflake-0.57.2.dist-info}/WHEEL +1 -1
- {pulumi_snowflake-0.57.1.dist-info → pulumi_snowflake-0.57.2.dist-info}/top_level.txt +0 -0
pulumi_snowflake/function.py
CHANGED
|
@@ -542,7 +542,7 @@ class Function(pulumi.CustomResource):
|
|
|
542
542
|
def __init__(__self__,
|
|
543
543
|
resource_name: str,
|
|
544
544
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
545
|
-
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
545
|
+
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionArgumentArgs', 'FunctionArgumentArgsDict']]]]] = None,
|
|
546
546
|
comment: Optional[pulumi.Input[str]] = None,
|
|
547
547
|
database: Optional[pulumi.Input[str]] = None,
|
|
548
548
|
handler: Optional[pulumi.Input[str]] = None,
|
|
@@ -572,7 +572,7 @@ class Function(pulumi.CustomResource):
|
|
|
572
572
|
|
|
573
573
|
:param str resource_name: The name of the resource.
|
|
574
574
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
575
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
575
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['FunctionArgumentArgs', 'FunctionArgumentArgsDict']]]] arguments: List of the arguments for the function
|
|
576
576
|
:param pulumi.Input[str] comment: Specifies a comment for the function.
|
|
577
577
|
:param pulumi.Input[str] database: The database in which to create the function. Don't use the | character.
|
|
578
578
|
:param pulumi.Input[str] handler: The handler method for Java / Python function.
|
|
@@ -621,7 +621,7 @@ class Function(pulumi.CustomResource):
|
|
|
621
621
|
def _internal_init(__self__,
|
|
622
622
|
resource_name: str,
|
|
623
623
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
624
|
-
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
624
|
+
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionArgumentArgs', 'FunctionArgumentArgsDict']]]]] = None,
|
|
625
625
|
comment: Optional[pulumi.Input[str]] = None,
|
|
626
626
|
database: Optional[pulumi.Input[str]] = None,
|
|
627
627
|
handler: Optional[pulumi.Input[str]] = None,
|
|
@@ -680,7 +680,7 @@ class Function(pulumi.CustomResource):
|
|
|
680
680
|
def get(resource_name: str,
|
|
681
681
|
id: pulumi.Input[str],
|
|
682
682
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
683
|
-
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
683
|
+
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionArgumentArgs', 'FunctionArgumentArgsDict']]]]] = None,
|
|
684
684
|
comment: Optional[pulumi.Input[str]] = None,
|
|
685
685
|
database: Optional[pulumi.Input[str]] = None,
|
|
686
686
|
handler: Optional[pulumi.Input[str]] = None,
|
|
@@ -703,7 +703,7 @@ class Function(pulumi.CustomResource):
|
|
|
703
703
|
:param str resource_name: The unique name of the resulting resource.
|
|
704
704
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
705
705
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
706
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
706
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['FunctionArgumentArgs', 'FunctionArgumentArgsDict']]]] arguments: List of the arguments for the function
|
|
707
707
|
:param pulumi.Input[str] comment: Specifies a comment for the function.
|
|
708
708
|
:param pulumi.Input[str] database: The database in which to create the function. Don't use the | character.
|
|
709
709
|
:param pulumi.Input[str] handler: The handler method for Java / Python function.
|
|
@@ -106,9 +106,9 @@ class AwaitableGetCortexSearchServicesResult(GetCortexSearchServicesResult):
|
|
|
106
106
|
starts_with=self.starts_with)
|
|
107
107
|
|
|
108
108
|
|
|
109
|
-
def get_cortex_search_services(in_: Optional[
|
|
109
|
+
def get_cortex_search_services(in_: Optional[Union['GetCortexSearchServicesInArgs', 'GetCortexSearchServicesInArgsDict']] = None,
|
|
110
110
|
like: Optional[str] = None,
|
|
111
|
-
limit: Optional[
|
|
111
|
+
limit: Optional[Union['GetCortexSearchServicesLimitArgs', 'GetCortexSearchServicesLimitArgsDict']] = None,
|
|
112
112
|
starts_with: Optional[str] = None,
|
|
113
113
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCortexSearchServicesResult:
|
|
114
114
|
"""
|
|
@@ -128,17 +128,17 @@ def get_cortex_search_services(in_: Optional[pulumi.InputType['GetCortexSearchSe
|
|
|
128
128
|
starts_with = snowflake.get_cortex_search_services(starts_with="prefix-")
|
|
129
129
|
pulumi.export("startsWithOutput", starts_with.cortex_search_services)
|
|
130
130
|
# Filtering (limit)
|
|
131
|
-
limit = snowflake.get_cortex_search_services(limit=
|
|
132
|
-
rows
|
|
133
|
-
from_
|
|
134
|
-
)
|
|
131
|
+
limit = snowflake.get_cortex_search_services(limit={
|
|
132
|
+
"rows": 10,
|
|
133
|
+
"from_": "prefix-",
|
|
134
|
+
})
|
|
135
135
|
pulumi.export("limitOutput", limit.cortex_search_services)
|
|
136
136
|
```
|
|
137
137
|
|
|
138
138
|
|
|
139
|
-
:param
|
|
139
|
+
:param Union['GetCortexSearchServicesInArgs', 'GetCortexSearchServicesInArgsDict'] in_: IN clause to filter the list of cortex search services.
|
|
140
140
|
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
141
|
-
:param
|
|
141
|
+
:param Union['GetCortexSearchServicesLimitArgs', 'GetCortexSearchServicesLimitArgsDict'] 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`.
|
|
142
142
|
:param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
143
143
|
"""
|
|
144
144
|
__args__ = dict()
|
|
@@ -159,9 +159,9 @@ def get_cortex_search_services(in_: Optional[pulumi.InputType['GetCortexSearchSe
|
|
|
159
159
|
|
|
160
160
|
|
|
161
161
|
@_utilities.lift_output_func(get_cortex_search_services)
|
|
162
|
-
def get_cortex_search_services_output(in_: Optional[pulumi.Input[Optional[
|
|
162
|
+
def get_cortex_search_services_output(in_: Optional[pulumi.Input[Optional[Union['GetCortexSearchServicesInArgs', 'GetCortexSearchServicesInArgsDict']]]] = None,
|
|
163
163
|
like: Optional[pulumi.Input[Optional[str]]] = None,
|
|
164
|
-
limit: Optional[pulumi.Input[Optional[
|
|
164
|
+
limit: Optional[pulumi.Input[Optional[Union['GetCortexSearchServicesLimitArgs', 'GetCortexSearchServicesLimitArgsDict']]]] = None,
|
|
165
165
|
starts_with: Optional[pulumi.Input[Optional[str]]] = None,
|
|
166
166
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCortexSearchServicesResult]:
|
|
167
167
|
"""
|
|
@@ -181,17 +181,17 @@ def get_cortex_search_services_output(in_: Optional[pulumi.Input[Optional[pulumi
|
|
|
181
181
|
starts_with = snowflake.get_cortex_search_services(starts_with="prefix-")
|
|
182
182
|
pulumi.export("startsWithOutput", starts_with.cortex_search_services)
|
|
183
183
|
# Filtering (limit)
|
|
184
|
-
limit = snowflake.get_cortex_search_services(limit=
|
|
185
|
-
rows
|
|
186
|
-
from_
|
|
187
|
-
)
|
|
184
|
+
limit = snowflake.get_cortex_search_services(limit={
|
|
185
|
+
"rows": 10,
|
|
186
|
+
"from_": "prefix-",
|
|
187
|
+
})
|
|
188
188
|
pulumi.export("limitOutput", limit.cortex_search_services)
|
|
189
189
|
```
|
|
190
190
|
|
|
191
191
|
|
|
192
|
-
:param
|
|
192
|
+
:param Union['GetCortexSearchServicesInArgs', 'GetCortexSearchServicesInArgsDict'] in_: IN clause to filter the list of cortex search services.
|
|
193
193
|
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
194
|
-
:param
|
|
194
|
+
:param Union['GetCortexSearchServicesLimitArgs', 'GetCortexSearchServicesLimitArgsDict'] 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`.
|
|
195
195
|
:param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
196
196
|
"""
|
|
197
197
|
...
|
|
@@ -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
|
...
|
pulumi_snowflake/get_schemas.py
CHANGED
|
@@ -130,9 +130,9 @@ class AwaitableGetSchemasResult(GetSchemasResult):
|
|
|
130
130
|
with_parameters=self.with_parameters)
|
|
131
131
|
|
|
132
132
|
|
|
133
|
-
def get_schemas(in_: Optional[
|
|
133
|
+
def get_schemas(in_: Optional[Union['GetSchemasInArgs', 'GetSchemasInArgsDict']] = None,
|
|
134
134
|
like: Optional[str] = None,
|
|
135
|
-
limit: Optional[
|
|
135
|
+
limit: Optional[Union['GetSchemasLimitArgs', 'GetSchemasLimitArgsDict']] = None,
|
|
136
136
|
starts_with: Optional[str] = None,
|
|
137
137
|
with_describe: Optional[bool] = None,
|
|
138
138
|
with_parameters: Optional[bool] = None,
|
|
@@ -143,9 +143,9 @@ def get_schemas(in_: Optional[pulumi.InputType['GetSchemasInArgs']] = None,
|
|
|
143
143
|
Datasource used to get details of filtered schemas. Filtering is aligned with the current possibilities for [SHOW SCHEMAS](https://docs.snowflake.com/en/sql-reference/sql/show-schemas) query. The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
|
|
144
144
|
|
|
145
145
|
|
|
146
|
-
:param
|
|
146
|
+
:param Union['GetSchemasInArgs', 'GetSchemasInArgsDict'] in_: IN clause to filter the list of streamlits
|
|
147
147
|
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
148
|
-
:param
|
|
148
|
+
:param Union['GetSchemasLimitArgs', 'GetSchemasLimitArgsDict'] 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`.
|
|
149
149
|
:param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
150
150
|
:param bool with_describe: Runs DESC SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the description field. By default this value is set to true.
|
|
151
151
|
:param bool with_parameters: Runs SHOW PARAMETERS FOR SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the parameters field as a map. By default this value is set to true.
|
|
@@ -172,9 +172,9 @@ def get_schemas(in_: Optional[pulumi.InputType['GetSchemasInArgs']] = None,
|
|
|
172
172
|
|
|
173
173
|
|
|
174
174
|
@_utilities.lift_output_func(get_schemas)
|
|
175
|
-
def get_schemas_output(in_: Optional[pulumi.Input[Optional[
|
|
175
|
+
def get_schemas_output(in_: Optional[pulumi.Input[Optional[Union['GetSchemasInArgs', 'GetSchemasInArgsDict']]]] = None,
|
|
176
176
|
like: Optional[pulumi.Input[Optional[str]]] = None,
|
|
177
|
-
limit: Optional[pulumi.Input[Optional[
|
|
177
|
+
limit: Optional[pulumi.Input[Optional[Union['GetSchemasLimitArgs', 'GetSchemasLimitArgsDict']]]] = None,
|
|
178
178
|
starts_with: Optional[pulumi.Input[Optional[str]]] = None,
|
|
179
179
|
with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
180
180
|
with_parameters: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
@@ -185,9 +185,9 @@ def get_schemas_output(in_: Optional[pulumi.Input[Optional[pulumi.InputType['Get
|
|
|
185
185
|
Datasource used to get details of filtered schemas. Filtering is aligned with the current possibilities for [SHOW SCHEMAS](https://docs.snowflake.com/en/sql-reference/sql/show-schemas) query. The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
|
|
186
186
|
|
|
187
187
|
|
|
188
|
-
:param
|
|
188
|
+
:param Union['GetSchemasInArgs', 'GetSchemasInArgsDict'] in_: IN clause to filter the list of streamlits
|
|
189
189
|
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
190
|
-
:param
|
|
190
|
+
:param Union['GetSchemasLimitArgs', 'GetSchemasLimitArgsDict'] 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`.
|
|
191
191
|
:param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
192
192
|
:param bool with_describe: Runs DESC SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the description field. By default this value is set to true.
|
|
193
193
|
:param bool with_parameters: Runs SHOW PARAMETERS FOR SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the parameters field as a map. By default this value is set to true.
|