pulumi-snowflake 0.61.0__py3-none-any.whl → 0.61.0a1729187291__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 +0 -110
- pulumi_snowflake/_inputs.py +1823 -5168
- pulumi_snowflake/config/__init__.pyi +36 -86
- pulumi_snowflake/config/vars.py +40 -104
- pulumi_snowflake/get_grants.py +0 -4
- pulumi_snowflake/get_streams.py +56 -105
- pulumi_snowflake/grant_account_role.py +2 -2
- pulumi_snowflake/grant_application_role.py +2 -2
- pulumi_snowflake/grant_database_role.py +2 -2
- pulumi_snowflake/grant_ownership.py +14 -14
- pulumi_snowflake/grant_privileges_to_account_role.py +8 -8
- pulumi_snowflake/grant_privileges_to_database_role.py +8 -8
- pulumi_snowflake/grant_privileges_to_share.py +2 -2
- pulumi_snowflake/legacy_service_user.py +0 -4
- pulumi_snowflake/outputs.py +1346 -4401
- pulumi_snowflake/provider.py +146 -433
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/stream_on_external_table.py +2 -50
- pulumi_snowflake/stream_on_table.py +0 -48
- pulumi_snowflake/tag_association.py +7 -7
- pulumi_snowflake/user.py +0 -4
- {pulumi_snowflake-0.61.0.dist-info → pulumi_snowflake-0.61.0a1729187291.dist-info}/METADATA +1 -1
- {pulumi_snowflake-0.61.0.dist-info → pulumi_snowflake-0.61.0a1729187291.dist-info}/RECORD +25 -39
- {pulumi_snowflake-0.61.0.dist-info → pulumi_snowflake-0.61.0a1729187291.dist-info}/WHEEL +1 -1
- pulumi_snowflake/account_authentication_policy_attachment.py +0 -149
- pulumi_snowflake/authentication_policy.py +0 -622
- pulumi_snowflake/external_volume.py +0 -378
- pulumi_snowflake/get_connections.py +0 -147
- pulumi_snowflake/get_secrets.py +0 -204
- pulumi_snowflake/primary_connection.py +0 -330
- pulumi_snowflake/secondary_connection.py +0 -339
- pulumi_snowflake/secret_with_authorization_code_grant.py +0 -548
- pulumi_snowflake/secret_with_basic_authentication.py +0 -500
- pulumi_snowflake/secret_with_client_credentials.py +0 -511
- pulumi_snowflake/secret_with_generic_string.py +0 -452
- pulumi_snowflake/stream_on_directory_table.py +0 -530
- pulumi_snowflake/stream_on_view.py +0 -679
- pulumi_snowflake/user_authentication_policy_attachment.py +0 -197
- {pulumi_snowflake-0.61.0.dist-info → pulumi_snowflake-0.61.0a1729187291.dist-info}/top_level.txt +0 -0
pulumi_snowflake/get_streams.py
CHANGED
|
@@ -14,7 +14,6 @@ else:
|
|
|
14
14
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
15
|
from . import _utilities
|
|
16
16
|
from . import outputs
|
|
17
|
-
from ._inputs import *
|
|
18
17
|
|
|
19
18
|
__all__ = [
|
|
20
19
|
'GetStreamsResult',
|
|
@@ -28,85 +27,52 @@ class GetStreamsResult:
|
|
|
28
27
|
"""
|
|
29
28
|
A collection of values returned by getStreams.
|
|
30
29
|
"""
|
|
31
|
-
def __init__(__self__,
|
|
30
|
+
def __init__(__self__, database=None, id=None, schema=None, streams=None):
|
|
31
|
+
if database and not isinstance(database, str):
|
|
32
|
+
raise TypeError("Expected argument 'database' to be a str")
|
|
33
|
+
pulumi.set(__self__, "database", database)
|
|
32
34
|
if id and not isinstance(id, str):
|
|
33
35
|
raise TypeError("Expected argument 'id' to be a str")
|
|
34
36
|
pulumi.set(__self__, "id", id)
|
|
35
|
-
if
|
|
36
|
-
raise TypeError("Expected argument '
|
|
37
|
-
pulumi.set(__self__, "
|
|
38
|
-
if like and not isinstance(like, str):
|
|
39
|
-
raise TypeError("Expected argument 'like' to be a str")
|
|
40
|
-
pulumi.set(__self__, "like", like)
|
|
41
|
-
if limit and not isinstance(limit, dict):
|
|
42
|
-
raise TypeError("Expected argument 'limit' to be a dict")
|
|
43
|
-
pulumi.set(__self__, "limit", limit)
|
|
44
|
-
if starts_with and not isinstance(starts_with, str):
|
|
45
|
-
raise TypeError("Expected argument 'starts_with' to be a str")
|
|
46
|
-
pulumi.set(__self__, "starts_with", starts_with)
|
|
37
|
+
if schema and not isinstance(schema, str):
|
|
38
|
+
raise TypeError("Expected argument 'schema' to be a str")
|
|
39
|
+
pulumi.set(__self__, "schema", schema)
|
|
47
40
|
if streams and not isinstance(streams, list):
|
|
48
41
|
raise TypeError("Expected argument 'streams' to be a list")
|
|
49
42
|
pulumi.set(__self__, "streams", streams)
|
|
50
|
-
if with_describe and not isinstance(with_describe, bool):
|
|
51
|
-
raise TypeError("Expected argument 'with_describe' to be a bool")
|
|
52
|
-
pulumi.set(__self__, "with_describe", with_describe)
|
|
53
43
|
|
|
54
44
|
@property
|
|
55
45
|
@pulumi.getter
|
|
56
|
-
def
|
|
46
|
+
def database(self) -> str:
|
|
57
47
|
"""
|
|
58
|
-
The
|
|
48
|
+
The database from which to return the streams from.
|
|
59
49
|
"""
|
|
60
|
-
return pulumi.get(self, "
|
|
61
|
-
|
|
62
|
-
@property
|
|
63
|
-
@pulumi.getter(name="in")
|
|
64
|
-
def in_(self) -> Optional['outputs.GetStreamsInResult']:
|
|
65
|
-
"""
|
|
66
|
-
IN clause to filter the list of objects
|
|
67
|
-
"""
|
|
68
|
-
return pulumi.get(self, "in_")
|
|
50
|
+
return pulumi.get(self, "database")
|
|
69
51
|
|
|
70
52
|
@property
|
|
71
53
|
@pulumi.getter
|
|
72
|
-
def
|
|
54
|
+
def id(self) -> str:
|
|
73
55
|
"""
|
|
74
|
-
|
|
56
|
+
The provider-assigned unique ID for this managed resource.
|
|
75
57
|
"""
|
|
76
|
-
return pulumi.get(self, "
|
|
58
|
+
return pulumi.get(self, "id")
|
|
77
59
|
|
|
78
60
|
@property
|
|
79
61
|
@pulumi.getter
|
|
80
|
-
def
|
|
81
|
-
"""
|
|
82
|
-
Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
|
|
62
|
+
def schema(self) -> str:
|
|
83
63
|
"""
|
|
84
|
-
return
|
|
85
|
-
|
|
86
|
-
@property
|
|
87
|
-
@pulumi.getter(name="startsWith")
|
|
88
|
-
def starts_with(self) -> Optional[str]:
|
|
89
|
-
"""
|
|
90
|
-
Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
64
|
+
The schema from which to return the streams from.
|
|
91
65
|
"""
|
|
92
|
-
return pulumi.get(self, "
|
|
66
|
+
return pulumi.get(self, "schema")
|
|
93
67
|
|
|
94
68
|
@property
|
|
95
69
|
@pulumi.getter
|
|
96
70
|
def streams(self) -> Sequence['outputs.GetStreamsStreamResult']:
|
|
97
71
|
"""
|
|
98
|
-
|
|
72
|
+
The streams in the schema
|
|
99
73
|
"""
|
|
100
74
|
return pulumi.get(self, "streams")
|
|
101
75
|
|
|
102
|
-
@property
|
|
103
|
-
@pulumi.getter(name="withDescribe")
|
|
104
|
-
def with_describe(self) -> Optional[bool]:
|
|
105
|
-
"""
|
|
106
|
-
Runs DESC STREAM for each user returned by SHOW STREAMS. The output of describe is saved to the description field. By default this value is set to true.
|
|
107
|
-
"""
|
|
108
|
-
return pulumi.get(self, "with_describe")
|
|
109
|
-
|
|
110
76
|
|
|
111
77
|
class AwaitableGetStreamsResult(GetStreamsResult):
|
|
112
78
|
# pylint: disable=using-constant-test
|
|
@@ -114,81 +80,66 @@ class AwaitableGetStreamsResult(GetStreamsResult):
|
|
|
114
80
|
if False:
|
|
115
81
|
yield self
|
|
116
82
|
return GetStreamsResult(
|
|
83
|
+
database=self.database,
|
|
117
84
|
id=self.id,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
def get_streams(in_: Optional[Union['GetStreamsInArgs', 'GetStreamsInArgsDict']] = None,
|
|
127
|
-
like: Optional[str] = None,
|
|
128
|
-
limit: Optional[Union['GetStreamsLimitArgs', 'GetStreamsLimitArgsDict']] = None,
|
|
129
|
-
starts_with: Optional[str] = None,
|
|
130
|
-
with_describe: Optional[bool] = None,
|
|
85
|
+
schema=self.schema,
|
|
86
|
+
streams=self.streams)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def get_streams(database: Optional[str] = None,
|
|
90
|
+
schema: Optional[str] = None,
|
|
131
91
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetStreamsResult:
|
|
132
92
|
"""
|
|
133
|
-
|
|
93
|
+
## Example Usage
|
|
134
94
|
|
|
135
|
-
|
|
95
|
+
```python
|
|
96
|
+
import pulumi
|
|
97
|
+
import pulumi_snowflake as snowflake
|
|
136
98
|
|
|
99
|
+
current = snowflake.get_streams(database="MYDB",
|
|
100
|
+
schema="MYSCHEMA")
|
|
101
|
+
```
|
|
137
102
|
|
|
138
|
-
|
|
139
|
-
:param str
|
|
140
|
-
:param
|
|
141
|
-
:param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
142
|
-
:param bool with_describe: Runs DESC STREAM for each user returned by SHOW STREAMS. The output of describe is saved to the description field. By default this value is set to true.
|
|
103
|
+
|
|
104
|
+
:param str database: The database from which to return the streams from.
|
|
105
|
+
:param str schema: The schema from which to return the streams from.
|
|
143
106
|
"""
|
|
144
107
|
__args__ = dict()
|
|
145
|
-
__args__['
|
|
146
|
-
__args__['
|
|
147
|
-
__args__['limit'] = limit
|
|
148
|
-
__args__['startsWith'] = starts_with
|
|
149
|
-
__args__['withDescribe'] = with_describe
|
|
108
|
+
__args__['database'] = database
|
|
109
|
+
__args__['schema'] = schema
|
|
150
110
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
151
111
|
__ret__ = pulumi.runtime.invoke('snowflake:index/getStreams:getStreams', __args__, opts=opts, typ=GetStreamsResult).value
|
|
152
112
|
|
|
153
113
|
return AwaitableGetStreamsResult(
|
|
114
|
+
database=pulumi.get(__ret__, 'database'),
|
|
154
115
|
id=pulumi.get(__ret__, 'id'),
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
streams=pulumi.get(__ret__, 'streams'),
|
|
160
|
-
with_describe=pulumi.get(__ret__, 'with_describe'))
|
|
161
|
-
def get_streams_output(in_: Optional[pulumi.Input[Optional[Union['GetStreamsInArgs', 'GetStreamsInArgsDict']]]] = None,
|
|
162
|
-
like: Optional[pulumi.Input[Optional[str]]] = None,
|
|
163
|
-
limit: Optional[pulumi.Input[Optional[Union['GetStreamsLimitArgs', 'GetStreamsLimitArgsDict']]]] = None,
|
|
164
|
-
starts_with: Optional[pulumi.Input[Optional[str]]] = None,
|
|
165
|
-
with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
116
|
+
schema=pulumi.get(__ret__, 'schema'),
|
|
117
|
+
streams=pulumi.get(__ret__, 'streams'))
|
|
118
|
+
def get_streams_output(database: Optional[pulumi.Input[str]] = None,
|
|
119
|
+
schema: Optional[pulumi.Input[str]] = None,
|
|
166
120
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetStreamsResult]:
|
|
167
121
|
"""
|
|
168
|
-
|
|
122
|
+
## Example Usage
|
|
123
|
+
|
|
124
|
+
```python
|
|
125
|
+
import pulumi
|
|
126
|
+
import pulumi_snowflake as snowflake
|
|
169
127
|
|
|
170
|
-
|
|
128
|
+
current = snowflake.get_streams(database="MYDB",
|
|
129
|
+
schema="MYSCHEMA")
|
|
130
|
+
```
|
|
171
131
|
|
|
172
132
|
|
|
173
|
-
:param
|
|
174
|
-
:param str
|
|
175
|
-
:param Union['GetStreamsLimitArgs', 'GetStreamsLimitArgsDict'] 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`.
|
|
176
|
-
:param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
177
|
-
:param bool with_describe: Runs DESC STREAM for each user returned by SHOW STREAMS. The output of describe is saved to the description field. By default this value is set to true.
|
|
133
|
+
:param str database: The database from which to return the streams from.
|
|
134
|
+
:param str schema: The schema from which to return the streams from.
|
|
178
135
|
"""
|
|
179
136
|
__args__ = dict()
|
|
180
|
-
__args__['
|
|
181
|
-
__args__['
|
|
182
|
-
__args__['limit'] = limit
|
|
183
|
-
__args__['startsWith'] = starts_with
|
|
184
|
-
__args__['withDescribe'] = with_describe
|
|
137
|
+
__args__['database'] = database
|
|
138
|
+
__args__['schema'] = schema
|
|
185
139
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
186
140
|
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getStreams:getStreams', __args__, opts=opts, typ=GetStreamsResult)
|
|
187
141
|
return __ret__.apply(lambda __response__: GetStreamsResult(
|
|
142
|
+
database=pulumi.get(__response__, 'database'),
|
|
188
143
|
id=pulumi.get(__response__, 'id'),
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
limit=pulumi.get(__response__, 'limit'),
|
|
192
|
-
starts_with=pulumi.get(__response__, 'starts_with'),
|
|
193
|
-
streams=pulumi.get(__response__, 'streams'),
|
|
194
|
-
with_describe=pulumi.get(__response__, 'with_describe')))
|
|
144
|
+
schema=pulumi.get(__response__, 'schema'),
|
|
145
|
+
streams=pulumi.get(__response__, 'streams')))
|
|
@@ -142,7 +142,7 @@ class GrantAccountRole(pulumi.CustomResource):
|
|
|
142
142
|
format is role_name (string) | grantee_object_type (ROLE|USER) | grantee_name (string)
|
|
143
143
|
|
|
144
144
|
```sh
|
|
145
|
-
$ pulumi import snowflake:index/grantAccountRole:GrantAccountRole
|
|
145
|
+
$ pulumi import snowflake:index/grantAccountRole:GrantAccountRole "\\"test_role\\"|ROLE|\\"test_parent_role\\""
|
|
146
146
|
```
|
|
147
147
|
|
|
148
148
|
:param str resource_name: The name of the resource.
|
|
@@ -163,7 +163,7 @@ class GrantAccountRole(pulumi.CustomResource):
|
|
|
163
163
|
format is role_name (string) | grantee_object_type (ROLE|USER) | grantee_name (string)
|
|
164
164
|
|
|
165
165
|
```sh
|
|
166
|
-
$ pulumi import snowflake:index/grantAccountRole:GrantAccountRole
|
|
166
|
+
$ pulumi import snowflake:index/grantAccountRole:GrantAccountRole "\\"test_role\\"|ROLE|\\"test_parent_role\\""
|
|
167
167
|
```
|
|
168
168
|
|
|
169
169
|
:param str resource_name: The name of the resource.
|
|
@@ -142,7 +142,7 @@ class GrantApplicationRole(pulumi.CustomResource):
|
|
|
142
142
|
format is application_role_name (string) | object_type (ACCOUNT_ROLE|APPLICATION) | grantee_name (string)
|
|
143
143
|
|
|
144
144
|
```sh
|
|
145
|
-
$ pulumi import snowflake:index/grantApplicationRole:GrantApplicationRole
|
|
145
|
+
$ pulumi import snowflake:index/grantApplicationRole:GrantApplicationRole \\"app_role_1\\"|ACCOUNT_ROLE|\\"my_role\\""
|
|
146
146
|
```
|
|
147
147
|
|
|
148
148
|
:param str resource_name: The name of the resource.
|
|
@@ -163,7 +163,7 @@ class GrantApplicationRole(pulumi.CustomResource):
|
|
|
163
163
|
format is application_role_name (string) | object_type (ACCOUNT_ROLE|APPLICATION) | grantee_name (string)
|
|
164
164
|
|
|
165
165
|
```sh
|
|
166
|
-
$ pulumi import snowflake:index/grantApplicationRole:GrantApplicationRole
|
|
166
|
+
$ pulumi import snowflake:index/grantApplicationRole:GrantApplicationRole \\"app_role_1\\"|ACCOUNT_ROLE|\\"my_role\\""
|
|
167
167
|
```
|
|
168
168
|
|
|
169
169
|
:param str resource_name: The name of the resource.
|
|
@@ -175,7 +175,7 @@ class GrantDatabaseRole(pulumi.CustomResource):
|
|
|
175
175
|
format is database_role_name (string) | object_type (ROLE|DATABASE ROLE|SHARE) | grantee_name (string)
|
|
176
176
|
|
|
177
177
|
```sh
|
|
178
|
-
$ pulumi import snowflake:index/grantDatabaseRole:GrantDatabaseRole
|
|
178
|
+
$ pulumi import snowflake:index/grantDatabaseRole:GrantDatabaseRole \\"test_db_role\\"|ROLE|\\"test_parent_role\\""
|
|
179
179
|
```
|
|
180
180
|
|
|
181
181
|
:param str resource_name: The name of the resource.
|
|
@@ -197,7 +197,7 @@ class GrantDatabaseRole(pulumi.CustomResource):
|
|
|
197
197
|
format is database_role_name (string) | object_type (ROLE|DATABASE ROLE|SHARE) | grantee_name (string)
|
|
198
198
|
|
|
199
199
|
```sh
|
|
200
|
-
$ pulumi import snowflake:index/grantDatabaseRole:GrantDatabaseRole
|
|
200
|
+
$ pulumi import snowflake:index/grantDatabaseRole:GrantDatabaseRole \\"test_db_role\\"|ROLE|\\"test_parent_role\\""
|
|
201
201
|
```
|
|
202
202
|
|
|
203
203
|
:param str resource_name: The name of the resource.
|
|
@@ -179,43 +179,43 @@ class GrantOwnership(pulumi.CustomResource):
|
|
|
179
179
|
#### OnObject on Schema ToAccountRole
|
|
180
180
|
|
|
181
181
|
```sh
|
|
182
|
-
$ pulumi import snowflake:index/grantOwnership:GrantOwnership
|
|
182
|
+
$ pulumi import snowflake:index/grantOwnership:GrantOwnership \\"schema_name\\""`
|
|
183
183
|
```
|
|
184
184
|
|
|
185
185
|
#### OnObject on Schema ToDatabaseRole
|
|
186
186
|
|
|
187
187
|
```sh
|
|
188
|
-
$ pulumi import snowflake:index/grantOwnership:GrantOwnership
|
|
188
|
+
$ pulumi import snowflake:index/grantOwnership:GrantOwnership \\"schema_name\\""`
|
|
189
189
|
```
|
|
190
190
|
|
|
191
191
|
#### OnObject on Table
|
|
192
192
|
|
|
193
193
|
```sh
|
|
194
|
-
$ pulumi import snowflake:index/grantOwnership:GrantOwnership
|
|
194
|
+
$ pulumi import snowflake:index/grantOwnership:GrantOwnership \\"table_name\\""`
|
|
195
195
|
```
|
|
196
196
|
|
|
197
197
|
#### OnAll InDatabase
|
|
198
198
|
|
|
199
199
|
```sh
|
|
200
|
-
$ pulumi import snowflake:index/grantOwnership:GrantOwnership
|
|
200
|
+
$ pulumi import snowflake:index/grantOwnership:GrantOwnership `"ToAccountRole|\\"account_role\\"|REVOKE|OnAll|TABLES|InDatabase|\\"database_name\\""`
|
|
201
201
|
```
|
|
202
202
|
|
|
203
203
|
#### OnAll InSchema
|
|
204
204
|
|
|
205
205
|
```sh
|
|
206
|
-
$ pulumi import snowflake:index/grantOwnership:GrantOwnership
|
|
206
|
+
$ pulumi import snowflake:index/grantOwnership:GrantOwnership \\"schema_name\\""`
|
|
207
207
|
```
|
|
208
208
|
|
|
209
209
|
#### OnFuture InDatabase
|
|
210
210
|
|
|
211
211
|
```sh
|
|
212
|
-
$ pulumi import snowflake:index/grantOwnership:GrantOwnership
|
|
212
|
+
$ pulumi import snowflake:index/grantOwnership:GrantOwnership `"ToAccountRole|\\"account_role\\"||OnFuture|TABLES|InDatabase|\\"database_name\\""`
|
|
213
213
|
```
|
|
214
214
|
|
|
215
215
|
#### OnFuture InSchema
|
|
216
216
|
|
|
217
217
|
```sh
|
|
218
|
-
$ pulumi import snowflake:index/grantOwnership:GrantOwnership
|
|
218
|
+
$ pulumi import snowflake:index/grantOwnership:GrantOwnership \\"schema_name\\""`
|
|
219
219
|
```
|
|
220
220
|
|
|
221
221
|
:param str resource_name: The name of the resource.
|
|
@@ -239,43 +239,43 @@ class GrantOwnership(pulumi.CustomResource):
|
|
|
239
239
|
#### OnObject on Schema ToAccountRole
|
|
240
240
|
|
|
241
241
|
```sh
|
|
242
|
-
$ pulumi import snowflake:index/grantOwnership:GrantOwnership
|
|
242
|
+
$ pulumi import snowflake:index/grantOwnership:GrantOwnership \\"schema_name\\""`
|
|
243
243
|
```
|
|
244
244
|
|
|
245
245
|
#### OnObject on Schema ToDatabaseRole
|
|
246
246
|
|
|
247
247
|
```sh
|
|
248
|
-
$ pulumi import snowflake:index/grantOwnership:GrantOwnership
|
|
248
|
+
$ pulumi import snowflake:index/grantOwnership:GrantOwnership \\"schema_name\\""`
|
|
249
249
|
```
|
|
250
250
|
|
|
251
251
|
#### OnObject on Table
|
|
252
252
|
|
|
253
253
|
```sh
|
|
254
|
-
$ pulumi import snowflake:index/grantOwnership:GrantOwnership
|
|
254
|
+
$ pulumi import snowflake:index/grantOwnership:GrantOwnership \\"table_name\\""`
|
|
255
255
|
```
|
|
256
256
|
|
|
257
257
|
#### OnAll InDatabase
|
|
258
258
|
|
|
259
259
|
```sh
|
|
260
|
-
$ pulumi import snowflake:index/grantOwnership:GrantOwnership
|
|
260
|
+
$ pulumi import snowflake:index/grantOwnership:GrantOwnership `"ToAccountRole|\\"account_role\\"|REVOKE|OnAll|TABLES|InDatabase|\\"database_name\\""`
|
|
261
261
|
```
|
|
262
262
|
|
|
263
263
|
#### OnAll InSchema
|
|
264
264
|
|
|
265
265
|
```sh
|
|
266
|
-
$ pulumi import snowflake:index/grantOwnership:GrantOwnership
|
|
266
|
+
$ pulumi import snowflake:index/grantOwnership:GrantOwnership \\"schema_name\\""`
|
|
267
267
|
```
|
|
268
268
|
|
|
269
269
|
#### OnFuture InDatabase
|
|
270
270
|
|
|
271
271
|
```sh
|
|
272
|
-
$ pulumi import snowflake:index/grantOwnership:GrantOwnership
|
|
272
|
+
$ pulumi import snowflake:index/grantOwnership:GrantOwnership `"ToAccountRole|\\"account_role\\"||OnFuture|TABLES|InDatabase|\\"database_name\\""`
|
|
273
273
|
```
|
|
274
274
|
|
|
275
275
|
#### OnFuture InSchema
|
|
276
276
|
|
|
277
277
|
```sh
|
|
278
|
-
$ pulumi import snowflake:index/grantOwnership:GrantOwnership
|
|
278
|
+
$ pulumi import snowflake:index/grantOwnership:GrantOwnership \\"schema_name\\""`
|
|
279
279
|
```
|
|
280
280
|
|
|
281
281
|
:param str resource_name: The name of the resource.
|
|
@@ -369,25 +369,25 @@ class GrantPrivilegesToAccountRole(pulumi.CustomResource):
|
|
|
369
369
|
#### Grant all privileges OnAccountObject (Database)
|
|
370
370
|
|
|
371
371
|
```sh
|
|
372
|
-
$ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole
|
|
372
|
+
$ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole `"\\"test_db_role\\"|false|false|ALL|OnAccountObject|DATABASE|\\"test_db\\""`
|
|
373
373
|
```
|
|
374
374
|
|
|
375
375
|
#### Grant list of privileges OnAllSchemasInDatabase
|
|
376
376
|
|
|
377
377
|
```sh
|
|
378
|
-
$ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole
|
|
378
|
+
$ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole `"\\"test_db_role\\"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|\\"test_db\\""`
|
|
379
379
|
```
|
|
380
380
|
|
|
381
381
|
#### Grant list of privileges on table
|
|
382
382
|
|
|
383
383
|
```sh
|
|
384
|
-
$ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole
|
|
384
|
+
$ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole \\"test_table\\""`
|
|
385
385
|
```
|
|
386
386
|
|
|
387
387
|
#### Grant list of privileges OnAll tables in schema
|
|
388
388
|
|
|
389
389
|
```sh
|
|
390
|
-
$ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole
|
|
390
|
+
$ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole \\"test_schema\\""`
|
|
391
391
|
```
|
|
392
392
|
|
|
393
393
|
:param str resource_name: The name of the resource.
|
|
@@ -416,25 +416,25 @@ class GrantPrivilegesToAccountRole(pulumi.CustomResource):
|
|
|
416
416
|
#### Grant all privileges OnAccountObject (Database)
|
|
417
417
|
|
|
418
418
|
```sh
|
|
419
|
-
$ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole
|
|
419
|
+
$ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole `"\\"test_db_role\\"|false|false|ALL|OnAccountObject|DATABASE|\\"test_db\\""`
|
|
420
420
|
```
|
|
421
421
|
|
|
422
422
|
#### Grant list of privileges OnAllSchemasInDatabase
|
|
423
423
|
|
|
424
424
|
```sh
|
|
425
|
-
$ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole
|
|
425
|
+
$ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole `"\\"test_db_role\\"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|\\"test_db\\""`
|
|
426
426
|
```
|
|
427
427
|
|
|
428
428
|
#### Grant list of privileges on table
|
|
429
429
|
|
|
430
430
|
```sh
|
|
431
|
-
$ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole
|
|
431
|
+
$ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole \\"test_table\\""`
|
|
432
432
|
```
|
|
433
433
|
|
|
434
434
|
#### Grant list of privileges OnAll tables in schema
|
|
435
435
|
|
|
436
436
|
```sh
|
|
437
|
-
$ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole
|
|
437
|
+
$ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole \\"test_schema\\""`
|
|
438
438
|
```
|
|
439
439
|
|
|
440
440
|
:param str resource_name: The name of the resource.
|
|
@@ -336,25 +336,25 @@ class GrantPrivilegesToDatabaseRole(pulumi.CustomResource):
|
|
|
336
336
|
#### Grant all privileges OnDatabase
|
|
337
337
|
|
|
338
338
|
```sh
|
|
339
|
-
$ pulumi import snowflake:index/grantPrivilegesToDatabaseRole:GrantPrivilegesToDatabaseRole
|
|
339
|
+
$ pulumi import snowflake:index/grantPrivilegesToDatabaseRole:GrantPrivilegesToDatabaseRole \\"test_db_role\\"|false|false|ALL|OnDatabase|\\"test_db\\""`
|
|
340
340
|
```
|
|
341
341
|
|
|
342
342
|
#### Grant list of privileges OnAllSchemasInDatabase
|
|
343
343
|
|
|
344
344
|
```sh
|
|
345
|
-
$ pulumi import snowflake:index/grantPrivilegesToDatabaseRole:GrantPrivilegesToDatabaseRole
|
|
345
|
+
$ pulumi import snowflake:index/grantPrivilegesToDatabaseRole:GrantPrivilegesToDatabaseRole \\"test_db_role\\"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|\\"test_db\\""`
|
|
346
346
|
```
|
|
347
347
|
|
|
348
348
|
#### Grant list of privileges on table
|
|
349
349
|
|
|
350
350
|
```sh
|
|
351
|
-
$ pulumi import snowflake:index/grantPrivilegesToDatabaseRole:GrantPrivilegesToDatabaseRole
|
|
351
|
+
$ pulumi import snowflake:index/grantPrivilegesToDatabaseRole:GrantPrivilegesToDatabaseRole \\"test_table\\""`
|
|
352
352
|
```
|
|
353
353
|
|
|
354
354
|
#### Grant list of privileges OnAll tables in schema
|
|
355
355
|
|
|
356
356
|
```sh
|
|
357
|
-
$ pulumi import snowflake:index/grantPrivilegesToDatabaseRole:GrantPrivilegesToDatabaseRole
|
|
357
|
+
$ pulumi import snowflake:index/grantPrivilegesToDatabaseRole:GrantPrivilegesToDatabaseRole \\"test_schema\\""`
|
|
358
358
|
```
|
|
359
359
|
|
|
360
360
|
:param str resource_name: The name of the resource.
|
|
@@ -382,25 +382,25 @@ class GrantPrivilegesToDatabaseRole(pulumi.CustomResource):
|
|
|
382
382
|
#### Grant all privileges OnDatabase
|
|
383
383
|
|
|
384
384
|
```sh
|
|
385
|
-
$ pulumi import snowflake:index/grantPrivilegesToDatabaseRole:GrantPrivilegesToDatabaseRole
|
|
385
|
+
$ pulumi import snowflake:index/grantPrivilegesToDatabaseRole:GrantPrivilegesToDatabaseRole \\"test_db_role\\"|false|false|ALL|OnDatabase|\\"test_db\\""`
|
|
386
386
|
```
|
|
387
387
|
|
|
388
388
|
#### Grant list of privileges OnAllSchemasInDatabase
|
|
389
389
|
|
|
390
390
|
```sh
|
|
391
|
-
$ pulumi import snowflake:index/grantPrivilegesToDatabaseRole:GrantPrivilegesToDatabaseRole
|
|
391
|
+
$ pulumi import snowflake:index/grantPrivilegesToDatabaseRole:GrantPrivilegesToDatabaseRole \\"test_db_role\\"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|\\"test_db\\""`
|
|
392
392
|
```
|
|
393
393
|
|
|
394
394
|
#### Grant list of privileges on table
|
|
395
395
|
|
|
396
396
|
```sh
|
|
397
|
-
$ pulumi import snowflake:index/grantPrivilegesToDatabaseRole:GrantPrivilegesToDatabaseRole
|
|
397
|
+
$ pulumi import snowflake:index/grantPrivilegesToDatabaseRole:GrantPrivilegesToDatabaseRole \\"test_table\\""`
|
|
398
398
|
```
|
|
399
399
|
|
|
400
400
|
#### Grant list of privileges OnAll tables in schema
|
|
401
401
|
|
|
402
402
|
```sh
|
|
403
|
-
$ pulumi import snowflake:index/grantPrivilegesToDatabaseRole:GrantPrivilegesToDatabaseRole
|
|
403
|
+
$ pulumi import snowflake:index/grantPrivilegesToDatabaseRole:GrantPrivilegesToDatabaseRole \\"test_schema\\""`
|
|
404
404
|
```
|
|
405
405
|
|
|
406
406
|
:param str resource_name: The name of the resource.
|
|
@@ -339,7 +339,7 @@ class GrantPrivilegesToShare(pulumi.CustomResource):
|
|
|
339
339
|
### OnView
|
|
340
340
|
|
|
341
341
|
```sh
|
|
342
|
-
$ pulumi import snowflake:index/grantPrivilegesToShare:GrantPrivilegesToShare
|
|
342
|
+
$ pulumi import snowflake:index/grantPrivilegesToShare:GrantPrivilegesToShare <view_name>"`
|
|
343
343
|
```
|
|
344
344
|
|
|
345
345
|
:param str resource_name: The name of the resource.
|
|
@@ -366,7 +366,7 @@ class GrantPrivilegesToShare(pulumi.CustomResource):
|
|
|
366
366
|
### OnView
|
|
367
367
|
|
|
368
368
|
```sh
|
|
369
|
-
$ pulumi import snowflake:index/grantPrivilegesToShare:GrantPrivilegesToShare
|
|
369
|
+
$ pulumi import snowflake:index/grantPrivilegesToShare:GrantPrivilegesToShare <view_name>"`
|
|
370
370
|
```
|
|
371
371
|
|
|
372
372
|
:param str resource_name: The name of the resource.
|
|
@@ -2529,8 +2529,6 @@ class LegacyServiceUser(pulumi.CustomResource):
|
|
|
2529
2529
|
$ pulumi import snowflake:index/legacyServiceUser:LegacyServiceUser example '"<user_name>"'
|
|
2530
2530
|
```
|
|
2531
2531
|
|
|
2532
|
-
Note: pulumi preview+apply may be needed after successful import to fill out all the missing fields (like `password`) in state.
|
|
2533
|
-
|
|
2534
2532
|
:param str resource_name: The name of the resource.
|
|
2535
2533
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
2536
2534
|
:param pulumi.Input[bool] abort_detached_query: Specifies the action that Snowflake performs for in-progress queries if connectivity is lost due to abrupt termination of a session (e.g. network outage, browser termination, service interruption). For more information, check [ABORT*DETACHED*QUERY docs](https://docs.snowflake.com/en/sql-reference/parameters#abort-detached-query).
|
|
@@ -2618,8 +2616,6 @@ class LegacyServiceUser(pulumi.CustomResource):
|
|
|
2618
2616
|
$ pulumi import snowflake:index/legacyServiceUser:LegacyServiceUser example '"<user_name>"'
|
|
2619
2617
|
```
|
|
2620
2618
|
|
|
2621
|
-
Note: pulumi preview+apply may be needed after successful import to fill out all the missing fields (like `password`) in state.
|
|
2622
|
-
|
|
2623
2619
|
:param str resource_name: The name of the resource.
|
|
2624
2620
|
:param LegacyServiceUserArgs args: The arguments to use to populate this resource's properties.
|
|
2625
2621
|
:param pulumi.ResourceOptions opts: Options for the resource.
|