pulumi-snowflake 0.50.3a1710160126__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 +52857 -1665
- pulumi_snowflake/_utilities.py +41 -5
- pulumi_snowflake/account.py +188 -218
- pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
- pulumi_snowflake/account_parameter.py +21 -48
- pulumi_snowflake/account_password_policy_attachment.py +7 -32
- pulumi_snowflake/account_role.py +250 -0
- pulumi_snowflake/alert.py +38 -47
- 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 +33 -52
- 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 -213
- pulumi_snowflake/database_role.py +81 -44
- pulumi_snowflake/dynamic_table.py +42 -49
- pulumi_snowflake/email_notification_integration.py +33 -28
- pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -39
- pulumi_snowflake/external_function.py +54 -75
- pulumi_snowflake/external_oauth_integration.py +593 -542
- pulumi_snowflake/external_table.py +67 -90
- pulumi_snowflake/external_volume.py +382 -0
- pulumi_snowflake/failover_group.py +57 -98
- pulumi_snowflake/file_format.py +33 -28
- 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 -9
- pulumi_snowflake/get_connections.py +109 -0
- pulumi_snowflake/get_cortex_search_services.py +216 -0
- pulumi_snowflake/get_current_account.py +24 -13
- pulumi_snowflake/get_current_role.py +14 -7
- pulumi_snowflake/get_database.py +25 -9
- pulumi_snowflake/get_database_role.py +162 -0
- pulumi_snowflake/get_database_roles.py +79 -47
- pulumi_snowflake/get_databases.py +91 -73
- pulumi_snowflake/get_dynamic_tables.py +36 -19
- pulumi_snowflake/get_external_functions.py +28 -9
- pulumi_snowflake/get_external_tables.py +28 -9
- pulumi_snowflake/get_failover_groups.py +18 -7
- pulumi_snowflake/get_file_formats.py +28 -9
- pulumi_snowflake/get_functions.py +28 -9
- pulumi_snowflake/get_grants.py +207 -84
- pulumi_snowflake/get_masking_policies.py +91 -51
- pulumi_snowflake/get_materialized_views.py +28 -9
- pulumi_snowflake/get_network_policies.py +129 -0
- pulumi_snowflake/get_parameters.py +38 -15
- pulumi_snowflake/get_pipes.py +28 -9
- pulumi_snowflake/get_procedures.py +28 -9
- pulumi_snowflake/get_resource_monitors.py +37 -24
- pulumi_snowflake/get_row_access_policies.py +91 -51
- pulumi_snowflake/get_schemas.py +145 -41
- pulumi_snowflake/get_secrets.py +200 -0
- pulumi_snowflake/get_security_integrations.py +129 -0
- pulumi_snowflake/get_sequences.py +28 -9
- pulumi_snowflake/get_shares.py +18 -9
- pulumi_snowflake/get_stages.py +28 -9
- pulumi_snowflake/get_storage_integrations.py +16 -9
- pulumi_snowflake/get_streamlits.py +170 -0
- pulumi_snowflake/get_streams.py +114 -54
- pulumi_snowflake/get_system_generate_scim_access_token.py +18 -9
- pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
- pulumi_snowflake/get_system_get_private_link_config.py +120 -5
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
- pulumi_snowflake/get_tables.py +28 -9
- pulumi_snowflake/get_tags.py +130 -0
- pulumi_snowflake/get_tasks.py +134 -54
- pulumi_snowflake/get_users.py +116 -44
- pulumi_snowflake/get_views.py +114 -54
- pulumi_snowflake/get_warehouses.py +79 -26
- pulumi_snowflake/grant_account_role.py +28 -75
- pulumi_snowflake/grant_application_role.py +257 -0
- pulumi_snowflake/grant_database_role.py +35 -94
- 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 -383
- pulumi_snowflake/grant_privileges_to_share.py +96 -44
- pulumi_snowflake/legacy_service_user.py +3670 -0
- pulumi_snowflake/managed_account.py +40 -11
- pulumi_snowflake/masking_policy.py +213 -310
- pulumi_snowflake/materialized_view.py +62 -71
- pulumi_snowflake/network_policy.py +217 -61
- pulumi_snowflake/network_policy_attachment.py +5 -34
- pulumi_snowflake/network_rule.py +473 -0
- pulumi_snowflake/notification_integration.py +49 -84
- pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
- pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -192
- pulumi_snowflake/object_parameter.py +10 -101
- pulumi_snowflake/outputs.py +49200 -2928
- pulumi_snowflake/password_policy.py +41 -28
- pulumi_snowflake/pipe.py +33 -4
- 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 -327
- pulumi_snowflake/row_access_policy.py +200 -149
- pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -299
- pulumi_snowflake/schema.py +949 -178
- pulumi_snowflake/scim_integration.py +286 -109
- 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 -34
- pulumi_snowflake/service_user.py +3585 -0
- pulumi_snowflake/share.py +33 -28
- pulumi_snowflake/shared_database.py +939 -0
- pulumi_snowflake/stage.py +95 -84
- pulumi_snowflake/storage_integration.py +46 -4
- 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 -97
- pulumi_snowflake/table_column_masking_policy_application.py +7 -14
- pulumi_snowflake/table_constraint.py +29 -172
- pulumi_snowflake/tag.py +142 -74
- pulumi_snowflake/tag_association.py +40 -215
- pulumi_snowflake/task.py +3048 -418
- pulumi_snowflake/user.py +3351 -384
- pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
- pulumi_snowflake/user_password_policy_attachment.py +5 -4
- pulumi_snowflake/user_public_keys.py +5 -0
- pulumi_snowflake/view.py +466 -215
- pulumi_snowflake/warehouse.py +184 -168
- {pulumi_snowflake-0.50.3a1710160126.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.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/WHEEL +1 -1
- pulumi_snowflake/account_grant.py +0 -343
- pulumi_snowflake/database_grant.py +0 -495
- pulumi_snowflake/external_table_grant.py +0 -690
- pulumi_snowflake/failover_group_grant.py +0 -388
- pulumi_snowflake/file_format_grant.py +0 -635
- pulumi_snowflake/function.py +0 -872
- pulumi_snowflake/function_grant.py +0 -745
- pulumi_snowflake/get_role.py +0 -121
- pulumi_snowflake/get_roles.py +0 -120
- pulumi_snowflake/grant_privileges_to_role.py +0 -825
- pulumi_snowflake/integration_grant.py +0 -440
- pulumi_snowflake/masking_policy_grant.py +0 -542
- pulumi_snowflake/materialized_view_grant.py +0 -689
- pulumi_snowflake/pipe_grant.py +0 -587
- pulumi_snowflake/procedure.py +0 -887
- pulumi_snowflake/procedure_grant.py +0 -745
- pulumi_snowflake/resource_monitor_grant.py +0 -387
- pulumi_snowflake/role.py +0 -273
- pulumi_snowflake/role_grants.py +0 -352
- pulumi_snowflake/role_ownership_grant.py +0 -338
- pulumi_snowflake/row_access_policy_grant.py +0 -540
- pulumi_snowflake/schema_grant.py +0 -647
- pulumi_snowflake/sequence_grant.py +0 -635
- pulumi_snowflake/session_parameter.py +0 -332
- pulumi_snowflake/stage_grant.py +0 -635
- pulumi_snowflake/stream.py +0 -614
- pulumi_snowflake/stream_grant.py +0 -635
- pulumi_snowflake/table_grant.py +0 -677
- pulumi_snowflake/tag_grant.py +0 -532
- pulumi_snowflake/tag_masking_policy_association.py +0 -210
- pulumi_snowflake/task_grant.py +0 -635
- pulumi_snowflake/user_grant.py +0 -394
- pulumi_snowflake/user_ownership_grant.py +0 -286
- pulumi_snowflake/view_grant.py +0 -705
- pulumi_snowflake/warehouse_grant.py +0 -440
- pulumi_snowflake-0.50.3a1710160126.dist-info/RECORD +0 -136
- {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/top_level.txt +0 -0
pulumi_snowflake/schema_grant.py
DELETED
|
@@ -1,647 +0,0 @@
|
|
|
1
|
-
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
-
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
|
|
5
|
-
import copy
|
|
6
|
-
import warnings
|
|
7
|
-
import pulumi
|
|
8
|
-
import pulumi.runtime
|
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
-
from . import _utilities
|
|
11
|
-
|
|
12
|
-
__all__ = ['SchemaGrantArgs', 'SchemaGrant']
|
|
13
|
-
|
|
14
|
-
@pulumi.input_type
|
|
15
|
-
class SchemaGrantArgs:
|
|
16
|
-
def __init__(__self__, *,
|
|
17
|
-
database_name: pulumi.Input[str],
|
|
18
|
-
enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
|
|
19
|
-
on_all: Optional[pulumi.Input[bool]] = None,
|
|
20
|
-
on_future: Optional[pulumi.Input[bool]] = None,
|
|
21
|
-
privilege: Optional[pulumi.Input[str]] = None,
|
|
22
|
-
revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
|
|
23
|
-
roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
24
|
-
schema_name: Optional[pulumi.Input[str]] = None,
|
|
25
|
-
shares: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
26
|
-
with_grant_option: Optional[pulumi.Input[bool]] = None):
|
|
27
|
-
"""
|
|
28
|
-
The set of arguments for constructing a SchemaGrant resource.
|
|
29
|
-
:param pulumi.Input[str] database_name: The name of the database containing the schema on which to grant privileges.
|
|
30
|
-
:param pulumi.Input[bool] enable_multiple_grants: When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
|
|
31
|
-
grants applied to roles and objects outside Terraform.
|
|
32
|
-
:param pulumi.Input[bool] on_all: When this is set to true, apply this grant on all schemas in the given database. The schema*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
|
|
33
|
-
:param pulumi.Input[bool] on_future: When this is set to true, apply this grant on all future schemas in the given database. The schema*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
|
|
34
|
-
:param pulumi.Input[str] privilege: The privilege to grant on the current or future schema. Note that if "OWNERSHIP" is specified, ensure that the role that
|
|
35
|
-
terraform is using is granted access. To grant all privileges, use the value `ALL PRIVILEGES`
|
|
36
|
-
:param pulumi.Input[str] revert_ownership_to_role_name: The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
|
|
37
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] roles: Grants privilege to these roles.
|
|
38
|
-
:param pulumi.Input[str] schema_name: The name of the schema on which to grant privileges.
|
|
39
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] shares: Grants privilege to these shares (only valid if on*future and on*all are unset).
|
|
40
|
-
:param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
41
|
-
"""
|
|
42
|
-
pulumi.set(__self__, "database_name", database_name)
|
|
43
|
-
if enable_multiple_grants is not None:
|
|
44
|
-
pulumi.set(__self__, "enable_multiple_grants", enable_multiple_grants)
|
|
45
|
-
if on_all is not None:
|
|
46
|
-
pulumi.set(__self__, "on_all", on_all)
|
|
47
|
-
if on_future is not None:
|
|
48
|
-
pulumi.set(__self__, "on_future", on_future)
|
|
49
|
-
if privilege is not None:
|
|
50
|
-
pulumi.set(__self__, "privilege", privilege)
|
|
51
|
-
if revert_ownership_to_role_name is not None:
|
|
52
|
-
pulumi.set(__self__, "revert_ownership_to_role_name", revert_ownership_to_role_name)
|
|
53
|
-
if roles is not None:
|
|
54
|
-
pulumi.set(__self__, "roles", roles)
|
|
55
|
-
if schema_name is not None:
|
|
56
|
-
pulumi.set(__self__, "schema_name", schema_name)
|
|
57
|
-
if shares is not None:
|
|
58
|
-
pulumi.set(__self__, "shares", shares)
|
|
59
|
-
if with_grant_option is not None:
|
|
60
|
-
pulumi.set(__self__, "with_grant_option", with_grant_option)
|
|
61
|
-
|
|
62
|
-
@property
|
|
63
|
-
@pulumi.getter(name="databaseName")
|
|
64
|
-
def database_name(self) -> pulumi.Input[str]:
|
|
65
|
-
"""
|
|
66
|
-
The name of the database containing the schema on which to grant privileges.
|
|
67
|
-
"""
|
|
68
|
-
return pulumi.get(self, "database_name")
|
|
69
|
-
|
|
70
|
-
@database_name.setter
|
|
71
|
-
def database_name(self, value: pulumi.Input[str]):
|
|
72
|
-
pulumi.set(self, "database_name", value)
|
|
73
|
-
|
|
74
|
-
@property
|
|
75
|
-
@pulumi.getter(name="enableMultipleGrants")
|
|
76
|
-
def enable_multiple_grants(self) -> Optional[pulumi.Input[bool]]:
|
|
77
|
-
"""
|
|
78
|
-
When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
|
|
79
|
-
grants applied to roles and objects outside Terraform.
|
|
80
|
-
"""
|
|
81
|
-
return pulumi.get(self, "enable_multiple_grants")
|
|
82
|
-
|
|
83
|
-
@enable_multiple_grants.setter
|
|
84
|
-
def enable_multiple_grants(self, value: Optional[pulumi.Input[bool]]):
|
|
85
|
-
pulumi.set(self, "enable_multiple_grants", value)
|
|
86
|
-
|
|
87
|
-
@property
|
|
88
|
-
@pulumi.getter(name="onAll")
|
|
89
|
-
def on_all(self) -> Optional[pulumi.Input[bool]]:
|
|
90
|
-
"""
|
|
91
|
-
When this is set to true, apply this grant on all schemas in the given database. The schema*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
|
|
92
|
-
"""
|
|
93
|
-
return pulumi.get(self, "on_all")
|
|
94
|
-
|
|
95
|
-
@on_all.setter
|
|
96
|
-
def on_all(self, value: Optional[pulumi.Input[bool]]):
|
|
97
|
-
pulumi.set(self, "on_all", value)
|
|
98
|
-
|
|
99
|
-
@property
|
|
100
|
-
@pulumi.getter(name="onFuture")
|
|
101
|
-
def on_future(self) -> Optional[pulumi.Input[bool]]:
|
|
102
|
-
"""
|
|
103
|
-
When this is set to true, apply this grant on all future schemas in the given database. The schema*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
|
|
104
|
-
"""
|
|
105
|
-
return pulumi.get(self, "on_future")
|
|
106
|
-
|
|
107
|
-
@on_future.setter
|
|
108
|
-
def on_future(self, value: Optional[pulumi.Input[bool]]):
|
|
109
|
-
pulumi.set(self, "on_future", value)
|
|
110
|
-
|
|
111
|
-
@property
|
|
112
|
-
@pulumi.getter
|
|
113
|
-
def privilege(self) -> Optional[pulumi.Input[str]]:
|
|
114
|
-
"""
|
|
115
|
-
The privilege to grant on the current or future schema. Note that if "OWNERSHIP" is specified, ensure that the role that
|
|
116
|
-
terraform is using is granted access. To grant all privileges, use the value `ALL PRIVILEGES`
|
|
117
|
-
"""
|
|
118
|
-
return pulumi.get(self, "privilege")
|
|
119
|
-
|
|
120
|
-
@privilege.setter
|
|
121
|
-
def privilege(self, value: Optional[pulumi.Input[str]]):
|
|
122
|
-
pulumi.set(self, "privilege", value)
|
|
123
|
-
|
|
124
|
-
@property
|
|
125
|
-
@pulumi.getter(name="revertOwnershipToRoleName")
|
|
126
|
-
def revert_ownership_to_role_name(self) -> Optional[pulumi.Input[str]]:
|
|
127
|
-
"""
|
|
128
|
-
The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
|
|
129
|
-
"""
|
|
130
|
-
return pulumi.get(self, "revert_ownership_to_role_name")
|
|
131
|
-
|
|
132
|
-
@revert_ownership_to_role_name.setter
|
|
133
|
-
def revert_ownership_to_role_name(self, value: Optional[pulumi.Input[str]]):
|
|
134
|
-
pulumi.set(self, "revert_ownership_to_role_name", value)
|
|
135
|
-
|
|
136
|
-
@property
|
|
137
|
-
@pulumi.getter
|
|
138
|
-
def roles(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
139
|
-
"""
|
|
140
|
-
Grants privilege to these roles.
|
|
141
|
-
"""
|
|
142
|
-
return pulumi.get(self, "roles")
|
|
143
|
-
|
|
144
|
-
@roles.setter
|
|
145
|
-
def roles(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
146
|
-
pulumi.set(self, "roles", value)
|
|
147
|
-
|
|
148
|
-
@property
|
|
149
|
-
@pulumi.getter(name="schemaName")
|
|
150
|
-
def schema_name(self) -> Optional[pulumi.Input[str]]:
|
|
151
|
-
"""
|
|
152
|
-
The name of the schema on which to grant privileges.
|
|
153
|
-
"""
|
|
154
|
-
return pulumi.get(self, "schema_name")
|
|
155
|
-
|
|
156
|
-
@schema_name.setter
|
|
157
|
-
def schema_name(self, value: Optional[pulumi.Input[str]]):
|
|
158
|
-
pulumi.set(self, "schema_name", value)
|
|
159
|
-
|
|
160
|
-
@property
|
|
161
|
-
@pulumi.getter
|
|
162
|
-
def shares(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
163
|
-
"""
|
|
164
|
-
Grants privilege to these shares (only valid if on*future and on*all are unset).
|
|
165
|
-
"""
|
|
166
|
-
return pulumi.get(self, "shares")
|
|
167
|
-
|
|
168
|
-
@shares.setter
|
|
169
|
-
def shares(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
170
|
-
pulumi.set(self, "shares", value)
|
|
171
|
-
|
|
172
|
-
@property
|
|
173
|
-
@pulumi.getter(name="withGrantOption")
|
|
174
|
-
def with_grant_option(self) -> Optional[pulumi.Input[bool]]:
|
|
175
|
-
"""
|
|
176
|
-
When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
177
|
-
"""
|
|
178
|
-
return pulumi.get(self, "with_grant_option")
|
|
179
|
-
|
|
180
|
-
@with_grant_option.setter
|
|
181
|
-
def with_grant_option(self, value: Optional[pulumi.Input[bool]]):
|
|
182
|
-
pulumi.set(self, "with_grant_option", value)
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
@pulumi.input_type
|
|
186
|
-
class _SchemaGrantState:
|
|
187
|
-
def __init__(__self__, *,
|
|
188
|
-
database_name: Optional[pulumi.Input[str]] = None,
|
|
189
|
-
enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
|
|
190
|
-
on_all: Optional[pulumi.Input[bool]] = None,
|
|
191
|
-
on_future: Optional[pulumi.Input[bool]] = None,
|
|
192
|
-
privilege: Optional[pulumi.Input[str]] = None,
|
|
193
|
-
revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
|
|
194
|
-
roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
195
|
-
schema_name: Optional[pulumi.Input[str]] = None,
|
|
196
|
-
shares: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
197
|
-
with_grant_option: Optional[pulumi.Input[bool]] = None):
|
|
198
|
-
"""
|
|
199
|
-
Input properties used for looking up and filtering SchemaGrant resources.
|
|
200
|
-
:param pulumi.Input[str] database_name: The name of the database containing the schema on which to grant privileges.
|
|
201
|
-
:param pulumi.Input[bool] enable_multiple_grants: When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
|
|
202
|
-
grants applied to roles and objects outside Terraform.
|
|
203
|
-
:param pulumi.Input[bool] on_all: When this is set to true, apply this grant on all schemas in the given database. The schema*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
|
|
204
|
-
:param pulumi.Input[bool] on_future: When this is set to true, apply this grant on all future schemas in the given database. The schema*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
|
|
205
|
-
:param pulumi.Input[str] privilege: The privilege to grant on the current or future schema. Note that if "OWNERSHIP" is specified, ensure that the role that
|
|
206
|
-
terraform is using is granted access. To grant all privileges, use the value `ALL PRIVILEGES`
|
|
207
|
-
:param pulumi.Input[str] revert_ownership_to_role_name: The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
|
|
208
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] roles: Grants privilege to these roles.
|
|
209
|
-
:param pulumi.Input[str] schema_name: The name of the schema on which to grant privileges.
|
|
210
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] shares: Grants privilege to these shares (only valid if on*future and on*all are unset).
|
|
211
|
-
:param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
212
|
-
"""
|
|
213
|
-
if database_name is not None:
|
|
214
|
-
pulumi.set(__self__, "database_name", database_name)
|
|
215
|
-
if enable_multiple_grants is not None:
|
|
216
|
-
pulumi.set(__self__, "enable_multiple_grants", enable_multiple_grants)
|
|
217
|
-
if on_all is not None:
|
|
218
|
-
pulumi.set(__self__, "on_all", on_all)
|
|
219
|
-
if on_future is not None:
|
|
220
|
-
pulumi.set(__self__, "on_future", on_future)
|
|
221
|
-
if privilege is not None:
|
|
222
|
-
pulumi.set(__self__, "privilege", privilege)
|
|
223
|
-
if revert_ownership_to_role_name is not None:
|
|
224
|
-
pulumi.set(__self__, "revert_ownership_to_role_name", revert_ownership_to_role_name)
|
|
225
|
-
if roles is not None:
|
|
226
|
-
pulumi.set(__self__, "roles", roles)
|
|
227
|
-
if schema_name is not None:
|
|
228
|
-
pulumi.set(__self__, "schema_name", schema_name)
|
|
229
|
-
if shares is not None:
|
|
230
|
-
pulumi.set(__self__, "shares", shares)
|
|
231
|
-
if with_grant_option is not None:
|
|
232
|
-
pulumi.set(__self__, "with_grant_option", with_grant_option)
|
|
233
|
-
|
|
234
|
-
@property
|
|
235
|
-
@pulumi.getter(name="databaseName")
|
|
236
|
-
def database_name(self) -> Optional[pulumi.Input[str]]:
|
|
237
|
-
"""
|
|
238
|
-
The name of the database containing the schema on which to grant privileges.
|
|
239
|
-
"""
|
|
240
|
-
return pulumi.get(self, "database_name")
|
|
241
|
-
|
|
242
|
-
@database_name.setter
|
|
243
|
-
def database_name(self, value: Optional[pulumi.Input[str]]):
|
|
244
|
-
pulumi.set(self, "database_name", value)
|
|
245
|
-
|
|
246
|
-
@property
|
|
247
|
-
@pulumi.getter(name="enableMultipleGrants")
|
|
248
|
-
def enable_multiple_grants(self) -> Optional[pulumi.Input[bool]]:
|
|
249
|
-
"""
|
|
250
|
-
When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
|
|
251
|
-
grants applied to roles and objects outside Terraform.
|
|
252
|
-
"""
|
|
253
|
-
return pulumi.get(self, "enable_multiple_grants")
|
|
254
|
-
|
|
255
|
-
@enable_multiple_grants.setter
|
|
256
|
-
def enable_multiple_grants(self, value: Optional[pulumi.Input[bool]]):
|
|
257
|
-
pulumi.set(self, "enable_multiple_grants", value)
|
|
258
|
-
|
|
259
|
-
@property
|
|
260
|
-
@pulumi.getter(name="onAll")
|
|
261
|
-
def on_all(self) -> Optional[pulumi.Input[bool]]:
|
|
262
|
-
"""
|
|
263
|
-
When this is set to true, apply this grant on all schemas in the given database. The schema*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
|
|
264
|
-
"""
|
|
265
|
-
return pulumi.get(self, "on_all")
|
|
266
|
-
|
|
267
|
-
@on_all.setter
|
|
268
|
-
def on_all(self, value: Optional[pulumi.Input[bool]]):
|
|
269
|
-
pulumi.set(self, "on_all", value)
|
|
270
|
-
|
|
271
|
-
@property
|
|
272
|
-
@pulumi.getter(name="onFuture")
|
|
273
|
-
def on_future(self) -> Optional[pulumi.Input[bool]]:
|
|
274
|
-
"""
|
|
275
|
-
When this is set to true, apply this grant on all future schemas in the given database. The schema*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
|
|
276
|
-
"""
|
|
277
|
-
return pulumi.get(self, "on_future")
|
|
278
|
-
|
|
279
|
-
@on_future.setter
|
|
280
|
-
def on_future(self, value: Optional[pulumi.Input[bool]]):
|
|
281
|
-
pulumi.set(self, "on_future", value)
|
|
282
|
-
|
|
283
|
-
@property
|
|
284
|
-
@pulumi.getter
|
|
285
|
-
def privilege(self) -> Optional[pulumi.Input[str]]:
|
|
286
|
-
"""
|
|
287
|
-
The privilege to grant on the current or future schema. Note that if "OWNERSHIP" is specified, ensure that the role that
|
|
288
|
-
terraform is using is granted access. To grant all privileges, use the value `ALL PRIVILEGES`
|
|
289
|
-
"""
|
|
290
|
-
return pulumi.get(self, "privilege")
|
|
291
|
-
|
|
292
|
-
@privilege.setter
|
|
293
|
-
def privilege(self, value: Optional[pulumi.Input[str]]):
|
|
294
|
-
pulumi.set(self, "privilege", value)
|
|
295
|
-
|
|
296
|
-
@property
|
|
297
|
-
@pulumi.getter(name="revertOwnershipToRoleName")
|
|
298
|
-
def revert_ownership_to_role_name(self) -> Optional[pulumi.Input[str]]:
|
|
299
|
-
"""
|
|
300
|
-
The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
|
|
301
|
-
"""
|
|
302
|
-
return pulumi.get(self, "revert_ownership_to_role_name")
|
|
303
|
-
|
|
304
|
-
@revert_ownership_to_role_name.setter
|
|
305
|
-
def revert_ownership_to_role_name(self, value: Optional[pulumi.Input[str]]):
|
|
306
|
-
pulumi.set(self, "revert_ownership_to_role_name", value)
|
|
307
|
-
|
|
308
|
-
@property
|
|
309
|
-
@pulumi.getter
|
|
310
|
-
def roles(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
311
|
-
"""
|
|
312
|
-
Grants privilege to these roles.
|
|
313
|
-
"""
|
|
314
|
-
return pulumi.get(self, "roles")
|
|
315
|
-
|
|
316
|
-
@roles.setter
|
|
317
|
-
def roles(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
318
|
-
pulumi.set(self, "roles", value)
|
|
319
|
-
|
|
320
|
-
@property
|
|
321
|
-
@pulumi.getter(name="schemaName")
|
|
322
|
-
def schema_name(self) -> Optional[pulumi.Input[str]]:
|
|
323
|
-
"""
|
|
324
|
-
The name of the schema on which to grant privileges.
|
|
325
|
-
"""
|
|
326
|
-
return pulumi.get(self, "schema_name")
|
|
327
|
-
|
|
328
|
-
@schema_name.setter
|
|
329
|
-
def schema_name(self, value: Optional[pulumi.Input[str]]):
|
|
330
|
-
pulumi.set(self, "schema_name", value)
|
|
331
|
-
|
|
332
|
-
@property
|
|
333
|
-
@pulumi.getter
|
|
334
|
-
def shares(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
335
|
-
"""
|
|
336
|
-
Grants privilege to these shares (only valid if on*future and on*all are unset).
|
|
337
|
-
"""
|
|
338
|
-
return pulumi.get(self, "shares")
|
|
339
|
-
|
|
340
|
-
@shares.setter
|
|
341
|
-
def shares(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
342
|
-
pulumi.set(self, "shares", value)
|
|
343
|
-
|
|
344
|
-
@property
|
|
345
|
-
@pulumi.getter(name="withGrantOption")
|
|
346
|
-
def with_grant_option(self) -> Optional[pulumi.Input[bool]]:
|
|
347
|
-
"""
|
|
348
|
-
When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
349
|
-
"""
|
|
350
|
-
return pulumi.get(self, "with_grant_option")
|
|
351
|
-
|
|
352
|
-
@with_grant_option.setter
|
|
353
|
-
def with_grant_option(self, value: Optional[pulumi.Input[bool]]):
|
|
354
|
-
pulumi.set(self, "with_grant_option", value)
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
class SchemaGrant(pulumi.CustomResource):
|
|
358
|
-
@overload
|
|
359
|
-
def __init__(__self__,
|
|
360
|
-
resource_name: str,
|
|
361
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
362
|
-
database_name: Optional[pulumi.Input[str]] = None,
|
|
363
|
-
enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
|
|
364
|
-
on_all: Optional[pulumi.Input[bool]] = None,
|
|
365
|
-
on_future: Optional[pulumi.Input[bool]] = None,
|
|
366
|
-
privilege: Optional[pulumi.Input[str]] = None,
|
|
367
|
-
revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
|
|
368
|
-
roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
369
|
-
schema_name: Optional[pulumi.Input[str]] = None,
|
|
370
|
-
shares: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
371
|
-
with_grant_option: Optional[pulumi.Input[bool]] = None,
|
|
372
|
-
__props__=None):
|
|
373
|
-
"""
|
|
374
|
-
> **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use GrantPrivilegesToAccountRole instead. <deprecation>
|
|
375
|
-
|
|
376
|
-
## Example Usage
|
|
377
|
-
|
|
378
|
-
<!--Start PulumiCodeChooser -->
|
|
379
|
-
```python
|
|
380
|
-
import pulumi
|
|
381
|
-
import pulumi_snowflake as snowflake
|
|
382
|
-
|
|
383
|
-
grant = snowflake.SchemaGrant("grant",
|
|
384
|
-
database_name="database",
|
|
385
|
-
on_future=False,
|
|
386
|
-
privilege="USAGE",
|
|
387
|
-
roles=[
|
|
388
|
-
"role1",
|
|
389
|
-
"role2",
|
|
390
|
-
],
|
|
391
|
-
schema_name="schema",
|
|
392
|
-
shares=[
|
|
393
|
-
"share1",
|
|
394
|
-
"share2",
|
|
395
|
-
],
|
|
396
|
-
with_grant_option=False)
|
|
397
|
-
```
|
|
398
|
-
<!--End PulumiCodeChooser -->
|
|
399
|
-
|
|
400
|
-
## Import
|
|
401
|
-
|
|
402
|
-
format is database_name|schema_name|privilege|with_grant_option|on_future|on_all|roles|shares
|
|
403
|
-
|
|
404
|
-
```sh
|
|
405
|
-
$ pulumi import snowflake:index/schemaGrant:SchemaGrant example "MY_DATABASE|MY_SCHEMA|USAGE|false|false|false|role1,role2|share1,share2"
|
|
406
|
-
```
|
|
407
|
-
|
|
408
|
-
:param str resource_name: The name of the resource.
|
|
409
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
410
|
-
:param pulumi.Input[str] database_name: The name of the database containing the schema on which to grant privileges.
|
|
411
|
-
:param pulumi.Input[bool] enable_multiple_grants: When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
|
|
412
|
-
grants applied to roles and objects outside Terraform.
|
|
413
|
-
:param pulumi.Input[bool] on_all: When this is set to true, apply this grant on all schemas in the given database. The schema*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
|
|
414
|
-
:param pulumi.Input[bool] on_future: When this is set to true, apply this grant on all future schemas in the given database. The schema*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
|
|
415
|
-
:param pulumi.Input[str] privilege: The privilege to grant on the current or future schema. Note that if "OWNERSHIP" is specified, ensure that the role that
|
|
416
|
-
terraform is using is granted access. To grant all privileges, use the value `ALL PRIVILEGES`
|
|
417
|
-
:param pulumi.Input[str] revert_ownership_to_role_name: The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
|
|
418
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] roles: Grants privilege to these roles.
|
|
419
|
-
:param pulumi.Input[str] schema_name: The name of the schema on which to grant privileges.
|
|
420
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] shares: Grants privilege to these shares (only valid if on*future and on*all are unset).
|
|
421
|
-
:param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
422
|
-
"""
|
|
423
|
-
...
|
|
424
|
-
@overload
|
|
425
|
-
def __init__(__self__,
|
|
426
|
-
resource_name: str,
|
|
427
|
-
args: SchemaGrantArgs,
|
|
428
|
-
opts: Optional[pulumi.ResourceOptions] = None):
|
|
429
|
-
"""
|
|
430
|
-
> **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use GrantPrivilegesToAccountRole instead. <deprecation>
|
|
431
|
-
|
|
432
|
-
## Example Usage
|
|
433
|
-
|
|
434
|
-
<!--Start PulumiCodeChooser -->
|
|
435
|
-
```python
|
|
436
|
-
import pulumi
|
|
437
|
-
import pulumi_snowflake as snowflake
|
|
438
|
-
|
|
439
|
-
grant = snowflake.SchemaGrant("grant",
|
|
440
|
-
database_name="database",
|
|
441
|
-
on_future=False,
|
|
442
|
-
privilege="USAGE",
|
|
443
|
-
roles=[
|
|
444
|
-
"role1",
|
|
445
|
-
"role2",
|
|
446
|
-
],
|
|
447
|
-
schema_name="schema",
|
|
448
|
-
shares=[
|
|
449
|
-
"share1",
|
|
450
|
-
"share2",
|
|
451
|
-
],
|
|
452
|
-
with_grant_option=False)
|
|
453
|
-
```
|
|
454
|
-
<!--End PulumiCodeChooser -->
|
|
455
|
-
|
|
456
|
-
## Import
|
|
457
|
-
|
|
458
|
-
format is database_name|schema_name|privilege|with_grant_option|on_future|on_all|roles|shares
|
|
459
|
-
|
|
460
|
-
```sh
|
|
461
|
-
$ pulumi import snowflake:index/schemaGrant:SchemaGrant example "MY_DATABASE|MY_SCHEMA|USAGE|false|false|false|role1,role2|share1,share2"
|
|
462
|
-
```
|
|
463
|
-
|
|
464
|
-
:param str resource_name: The name of the resource.
|
|
465
|
-
:param SchemaGrantArgs args: The arguments to use to populate this resource's properties.
|
|
466
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
467
|
-
"""
|
|
468
|
-
...
|
|
469
|
-
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
470
|
-
resource_args, opts = _utilities.get_resource_args_opts(SchemaGrantArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
471
|
-
if resource_args is not None:
|
|
472
|
-
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
473
|
-
else:
|
|
474
|
-
__self__._internal_init(resource_name, *args, **kwargs)
|
|
475
|
-
|
|
476
|
-
def _internal_init(__self__,
|
|
477
|
-
resource_name: str,
|
|
478
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
479
|
-
database_name: Optional[pulumi.Input[str]] = None,
|
|
480
|
-
enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
|
|
481
|
-
on_all: Optional[pulumi.Input[bool]] = None,
|
|
482
|
-
on_future: Optional[pulumi.Input[bool]] = None,
|
|
483
|
-
privilege: Optional[pulumi.Input[str]] = None,
|
|
484
|
-
revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
|
|
485
|
-
roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
486
|
-
schema_name: Optional[pulumi.Input[str]] = None,
|
|
487
|
-
shares: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
488
|
-
with_grant_option: Optional[pulumi.Input[bool]] = None,
|
|
489
|
-
__props__=None):
|
|
490
|
-
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
491
|
-
if not isinstance(opts, pulumi.ResourceOptions):
|
|
492
|
-
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
493
|
-
if opts.id is None:
|
|
494
|
-
if __props__ is not None:
|
|
495
|
-
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
496
|
-
__props__ = SchemaGrantArgs.__new__(SchemaGrantArgs)
|
|
497
|
-
|
|
498
|
-
if database_name is None and not opts.urn:
|
|
499
|
-
raise TypeError("Missing required property 'database_name'")
|
|
500
|
-
__props__.__dict__["database_name"] = database_name
|
|
501
|
-
__props__.__dict__["enable_multiple_grants"] = enable_multiple_grants
|
|
502
|
-
__props__.__dict__["on_all"] = on_all
|
|
503
|
-
__props__.__dict__["on_future"] = on_future
|
|
504
|
-
__props__.__dict__["privilege"] = privilege
|
|
505
|
-
__props__.__dict__["revert_ownership_to_role_name"] = revert_ownership_to_role_name
|
|
506
|
-
__props__.__dict__["roles"] = roles
|
|
507
|
-
__props__.__dict__["schema_name"] = schema_name
|
|
508
|
-
__props__.__dict__["shares"] = shares
|
|
509
|
-
__props__.__dict__["with_grant_option"] = with_grant_option
|
|
510
|
-
super(SchemaGrant, __self__).__init__(
|
|
511
|
-
'snowflake:index/schemaGrant:SchemaGrant',
|
|
512
|
-
resource_name,
|
|
513
|
-
__props__,
|
|
514
|
-
opts)
|
|
515
|
-
|
|
516
|
-
@staticmethod
|
|
517
|
-
def get(resource_name: str,
|
|
518
|
-
id: pulumi.Input[str],
|
|
519
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
520
|
-
database_name: Optional[pulumi.Input[str]] = None,
|
|
521
|
-
enable_multiple_grants: Optional[pulumi.Input[bool]] = None,
|
|
522
|
-
on_all: Optional[pulumi.Input[bool]] = None,
|
|
523
|
-
on_future: Optional[pulumi.Input[bool]] = None,
|
|
524
|
-
privilege: Optional[pulumi.Input[str]] = None,
|
|
525
|
-
revert_ownership_to_role_name: Optional[pulumi.Input[str]] = None,
|
|
526
|
-
roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
527
|
-
schema_name: Optional[pulumi.Input[str]] = None,
|
|
528
|
-
shares: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
529
|
-
with_grant_option: Optional[pulumi.Input[bool]] = None) -> 'SchemaGrant':
|
|
530
|
-
"""
|
|
531
|
-
Get an existing SchemaGrant resource's state with the given name, id, and optional extra
|
|
532
|
-
properties used to qualify the lookup.
|
|
533
|
-
|
|
534
|
-
:param str resource_name: The unique name of the resulting resource.
|
|
535
|
-
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
536
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
537
|
-
:param pulumi.Input[str] database_name: The name of the database containing the schema on which to grant privileges.
|
|
538
|
-
:param pulumi.Input[bool] enable_multiple_grants: When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
|
|
539
|
-
grants applied to roles and objects outside Terraform.
|
|
540
|
-
:param pulumi.Input[bool] on_all: When this is set to true, apply this grant on all schemas in the given database. The schema*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
|
|
541
|
-
:param pulumi.Input[bool] on_future: When this is set to true, apply this grant on all future schemas in the given database. The schema*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
|
|
542
|
-
:param pulumi.Input[str] privilege: The privilege to grant on the current or future schema. Note that if "OWNERSHIP" is specified, ensure that the role that
|
|
543
|
-
terraform is using is granted access. To grant all privileges, use the value `ALL PRIVILEGES`
|
|
544
|
-
:param pulumi.Input[str] revert_ownership_to_role_name: The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
|
|
545
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] roles: Grants privilege to these roles.
|
|
546
|
-
:param pulumi.Input[str] schema_name: The name of the schema on which to grant privileges.
|
|
547
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] shares: Grants privilege to these shares (only valid if on*future and on*all are unset).
|
|
548
|
-
:param pulumi.Input[bool] with_grant_option: When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
549
|
-
"""
|
|
550
|
-
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
551
|
-
|
|
552
|
-
__props__ = _SchemaGrantState.__new__(_SchemaGrantState)
|
|
553
|
-
|
|
554
|
-
__props__.__dict__["database_name"] = database_name
|
|
555
|
-
__props__.__dict__["enable_multiple_grants"] = enable_multiple_grants
|
|
556
|
-
__props__.__dict__["on_all"] = on_all
|
|
557
|
-
__props__.__dict__["on_future"] = on_future
|
|
558
|
-
__props__.__dict__["privilege"] = privilege
|
|
559
|
-
__props__.__dict__["revert_ownership_to_role_name"] = revert_ownership_to_role_name
|
|
560
|
-
__props__.__dict__["roles"] = roles
|
|
561
|
-
__props__.__dict__["schema_name"] = schema_name
|
|
562
|
-
__props__.__dict__["shares"] = shares
|
|
563
|
-
__props__.__dict__["with_grant_option"] = with_grant_option
|
|
564
|
-
return SchemaGrant(resource_name, opts=opts, __props__=__props__)
|
|
565
|
-
|
|
566
|
-
@property
|
|
567
|
-
@pulumi.getter(name="databaseName")
|
|
568
|
-
def database_name(self) -> pulumi.Output[str]:
|
|
569
|
-
"""
|
|
570
|
-
The name of the database containing the schema on which to grant privileges.
|
|
571
|
-
"""
|
|
572
|
-
return pulumi.get(self, "database_name")
|
|
573
|
-
|
|
574
|
-
@property
|
|
575
|
-
@pulumi.getter(name="enableMultipleGrants")
|
|
576
|
-
def enable_multiple_grants(self) -> pulumi.Output[Optional[bool]]:
|
|
577
|
-
"""
|
|
578
|
-
When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
|
|
579
|
-
grants applied to roles and objects outside Terraform.
|
|
580
|
-
"""
|
|
581
|
-
return pulumi.get(self, "enable_multiple_grants")
|
|
582
|
-
|
|
583
|
-
@property
|
|
584
|
-
@pulumi.getter(name="onAll")
|
|
585
|
-
def on_all(self) -> pulumi.Output[Optional[bool]]:
|
|
586
|
-
"""
|
|
587
|
-
When this is set to true, apply this grant on all schemas in the given database. The schema*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
|
|
588
|
-
"""
|
|
589
|
-
return pulumi.get(self, "on_all")
|
|
590
|
-
|
|
591
|
-
@property
|
|
592
|
-
@pulumi.getter(name="onFuture")
|
|
593
|
-
def on_future(self) -> pulumi.Output[Optional[bool]]:
|
|
594
|
-
"""
|
|
595
|
-
When this is set to true, apply this grant on all future schemas in the given database. The schema*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
|
|
596
|
-
"""
|
|
597
|
-
return pulumi.get(self, "on_future")
|
|
598
|
-
|
|
599
|
-
@property
|
|
600
|
-
@pulumi.getter
|
|
601
|
-
def privilege(self) -> pulumi.Output[Optional[str]]:
|
|
602
|
-
"""
|
|
603
|
-
The privilege to grant on the current or future schema. Note that if "OWNERSHIP" is specified, ensure that the role that
|
|
604
|
-
terraform is using is granted access. To grant all privileges, use the value `ALL PRIVILEGES`
|
|
605
|
-
"""
|
|
606
|
-
return pulumi.get(self, "privilege")
|
|
607
|
-
|
|
608
|
-
@property
|
|
609
|
-
@pulumi.getter(name="revertOwnershipToRoleName")
|
|
610
|
-
def revert_ownership_to_role_name(self) -> pulumi.Output[Optional[str]]:
|
|
611
|
-
"""
|
|
612
|
-
The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
|
|
613
|
-
"""
|
|
614
|
-
return pulumi.get(self, "revert_ownership_to_role_name")
|
|
615
|
-
|
|
616
|
-
@property
|
|
617
|
-
@pulumi.getter
|
|
618
|
-
def roles(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
619
|
-
"""
|
|
620
|
-
Grants privilege to these roles.
|
|
621
|
-
"""
|
|
622
|
-
return pulumi.get(self, "roles")
|
|
623
|
-
|
|
624
|
-
@property
|
|
625
|
-
@pulumi.getter(name="schemaName")
|
|
626
|
-
def schema_name(self) -> pulumi.Output[Optional[str]]:
|
|
627
|
-
"""
|
|
628
|
-
The name of the schema on which to grant privileges.
|
|
629
|
-
"""
|
|
630
|
-
return pulumi.get(self, "schema_name")
|
|
631
|
-
|
|
632
|
-
@property
|
|
633
|
-
@pulumi.getter
|
|
634
|
-
def shares(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
635
|
-
"""
|
|
636
|
-
Grants privilege to these shares (only valid if on*future and on*all are unset).
|
|
637
|
-
"""
|
|
638
|
-
return pulumi.get(self, "shares")
|
|
639
|
-
|
|
640
|
-
@property
|
|
641
|
-
@pulumi.getter(name="withGrantOption")
|
|
642
|
-
def with_grant_option(self) -> pulumi.Output[Optional[bool]]:
|
|
643
|
-
"""
|
|
644
|
-
When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
645
|
-
"""
|
|
646
|
-
return pulumi.get(self, "with_grant_option")
|
|
647
|
-
|