pulumi-snowflake 0.61.0a1731393894__py3-none-any.whl → 0.61.1__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.

Files changed (39) hide show
  1. pulumi_snowflake/__init__.py +110 -0
  2. pulumi_snowflake/_inputs.py +5182 -1837
  3. pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
  4. pulumi_snowflake/authentication_policy.py +622 -0
  5. pulumi_snowflake/config/__init__.pyi +86 -36
  6. pulumi_snowflake/config/vars.py +104 -40
  7. pulumi_snowflake/external_volume.py +378 -0
  8. pulumi_snowflake/get_connections.py +147 -0
  9. pulumi_snowflake/get_grants.py +4 -0
  10. pulumi_snowflake/get_secrets.py +204 -0
  11. pulumi_snowflake/get_streams.py +105 -56
  12. pulumi_snowflake/grant_account_role.py +2 -2
  13. pulumi_snowflake/grant_application_role.py +2 -2
  14. pulumi_snowflake/grant_database_role.py +2 -2
  15. pulumi_snowflake/grant_ownership.py +14 -14
  16. pulumi_snowflake/grant_privileges_to_account_role.py +8 -8
  17. pulumi_snowflake/grant_privileges_to_database_role.py +8 -8
  18. pulumi_snowflake/grant_privileges_to_share.py +2 -2
  19. pulumi_snowflake/legacy_service_user.py +4 -0
  20. pulumi_snowflake/outputs.py +4390 -1335
  21. pulumi_snowflake/primary_connection.py +330 -0
  22. pulumi_snowflake/provider.py +433 -146
  23. pulumi_snowflake/pulumi-plugin.json +1 -1
  24. pulumi_snowflake/secondary_connection.py +339 -0
  25. pulumi_snowflake/secret_with_authorization_code_grant.py +548 -0
  26. pulumi_snowflake/secret_with_basic_authentication.py +500 -0
  27. pulumi_snowflake/secret_with_client_credentials.py +511 -0
  28. pulumi_snowflake/secret_with_generic_string.py +452 -0
  29. pulumi_snowflake/stream_on_directory_table.py +530 -0
  30. pulumi_snowflake/stream_on_external_table.py +50 -2
  31. pulumi_snowflake/stream_on_table.py +48 -0
  32. pulumi_snowflake/stream_on_view.py +679 -0
  33. pulumi_snowflake/tag_association.py +7 -7
  34. pulumi_snowflake/user.py +4 -0
  35. pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
  36. {pulumi_snowflake-0.61.0a1731393894.dist-info → pulumi_snowflake-0.61.1.dist-info}/METADATA +1 -1
  37. {pulumi_snowflake-0.61.0a1731393894.dist-info → pulumi_snowflake-0.61.1.dist-info}/RECORD +39 -25
  38. {pulumi_snowflake-0.61.0a1731393894.dist-info → pulumi_snowflake-0.61.1.dist-info}/WHEEL +1 -1
  39. {pulumi_snowflake-0.61.0a1731393894.dist-info → pulumi_snowflake-0.61.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,204 @@
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 sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from . import _utilities
16
+ from . import outputs
17
+ from ._inputs import *
18
+
19
+ __all__ = [
20
+ 'GetSecretsResult',
21
+ 'AwaitableGetSecretsResult',
22
+ 'get_secrets',
23
+ 'get_secrets_output',
24
+ ]
25
+
26
+ @pulumi.output_type
27
+ class GetSecretsResult:
28
+ """
29
+ A collection of values returned by getSecrets.
30
+ """
31
+ def __init__(__self__, id=None, in_=None, like=None, secrets=None, with_describe=None):
32
+ if id and not isinstance(id, str):
33
+ raise TypeError("Expected argument 'id' to be a str")
34
+ pulumi.set(__self__, "id", id)
35
+ if in_ and not isinstance(in_, dict):
36
+ raise TypeError("Expected argument 'in_' to be a dict")
37
+ pulumi.set(__self__, "in_", in_)
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 secrets and not isinstance(secrets, list):
42
+ raise TypeError("Expected argument 'secrets' to be a list")
43
+ pulumi.set(__self__, "secrets", secrets)
44
+ if with_describe and not isinstance(with_describe, bool):
45
+ raise TypeError("Expected argument 'with_describe' to be a bool")
46
+ pulumi.set(__self__, "with_describe", with_describe)
47
+
48
+ @property
49
+ @pulumi.getter
50
+ def id(self) -> str:
51
+ """
52
+ The provider-assigned unique ID for this managed resource.
53
+ """
54
+ return pulumi.get(self, "id")
55
+
56
+ @property
57
+ @pulumi.getter(name="in")
58
+ def in_(self) -> Optional['outputs.GetSecretsInResult']:
59
+ """
60
+ IN clause to filter the list of secrets
61
+ """
62
+ return pulumi.get(self, "in_")
63
+
64
+ @property
65
+ @pulumi.getter
66
+ def like(self) -> Optional[str]:
67
+ """
68
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
69
+ """
70
+ return pulumi.get(self, "like")
71
+
72
+ @property
73
+ @pulumi.getter
74
+ def secrets(self) -> Sequence['outputs.GetSecretsSecretResult']:
75
+ """
76
+ Holds the aggregated output of all secrets details queries.
77
+ """
78
+ return pulumi.get(self, "secrets")
79
+
80
+ @property
81
+ @pulumi.getter(name="withDescribe")
82
+ def with_describe(self) -> Optional[bool]:
83
+ """
84
+ Runs DESC SECRET for each secret returned by SHOW SECRETS. The output of describe is saved to the description field. By default this value is set to true.
85
+ """
86
+ return pulumi.get(self, "with_describe")
87
+
88
+
89
+ class AwaitableGetSecretsResult(GetSecretsResult):
90
+ # pylint: disable=using-constant-test
91
+ def __await__(self):
92
+ if False:
93
+ yield self
94
+ return GetSecretsResult(
95
+ id=self.id,
96
+ in_=self.in_,
97
+ like=self.like,
98
+ secrets=self.secrets,
99
+ with_describe=self.with_describe)
100
+
101
+
102
+ def get_secrets(in_: Optional[Union['GetSecretsInArgs', 'GetSecretsInArgsDict']] = None,
103
+ like: Optional[str] = None,
104
+ with_describe: Optional[bool] = None,
105
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSecretsResult:
106
+ """
107
+ !> **V1 release candidate** This data source is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
108
+
109
+ Datasource used to get details of filtered secrets. Filtering is aligned with the current possibilities for [SHOW SECRETS](https://docs.snowflake.com/en/sql-reference/sql/show-secrets) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `secrets`.
110
+
111
+ ## Example Usage
112
+
113
+ ```python
114
+ import pulumi
115
+ import pulumi_snowflake as snowflake
116
+
117
+ # Simple usage
118
+ simple = snowflake.get_secrets()
119
+ pulumi.export("simpleOutput", simple.secrets)
120
+ # Filtering (like)
121
+ like = snowflake.get_secrets(like="secret-name")
122
+ pulumi.export("likeOutput", like.secrets)
123
+ # Filtering by prefix (like)
124
+ like_prefix = snowflake.get_secrets(like="prefix%")
125
+ pulumi.export("likePrefixOutput", like_prefix.secrets)
126
+ # Filtering (in)
127
+ in_ = snowflake.get_secrets(in_={
128
+ "schema": test["fullyQualifiedName"],
129
+ })
130
+ pulumi.export("inOutput", in_.secrets)
131
+ # Without additional data (to limit the number of calls make for every found secret)
132
+ only_show = snowflake.get_secrets(with_describe=False)
133
+ pulumi.export("onlyShowOutput", only_show.secrets)
134
+ ```
135
+
136
+
137
+ :param Union['GetSecretsInArgs', 'GetSecretsInArgsDict'] in_: IN clause to filter the list of secrets
138
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
139
+ :param bool with_describe: Runs DESC SECRET for each secret returned by SHOW SECRETS. The output of describe is saved to the description field. By default this value is set to true.
140
+ """
141
+ __args__ = dict()
142
+ __args__['in'] = in_
143
+ __args__['like'] = like
144
+ __args__['withDescribe'] = with_describe
145
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
146
+ __ret__ = pulumi.runtime.invoke('snowflake:index/getSecrets:getSecrets', __args__, opts=opts, typ=GetSecretsResult).value
147
+
148
+ return AwaitableGetSecretsResult(
149
+ id=pulumi.get(__ret__, 'id'),
150
+ in_=pulumi.get(__ret__, 'in_'),
151
+ like=pulumi.get(__ret__, 'like'),
152
+ secrets=pulumi.get(__ret__, 'secrets'),
153
+ with_describe=pulumi.get(__ret__, 'with_describe'))
154
+ def get_secrets_output(in_: Optional[pulumi.Input[Optional[Union['GetSecretsInArgs', 'GetSecretsInArgsDict']]]] = None,
155
+ like: Optional[pulumi.Input[Optional[str]]] = None,
156
+ with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
157
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSecretsResult]:
158
+ """
159
+ !> **V1 release candidate** This data source is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
160
+
161
+ Datasource used to get details of filtered secrets. Filtering is aligned with the current possibilities for [SHOW SECRETS](https://docs.snowflake.com/en/sql-reference/sql/show-secrets) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `secrets`.
162
+
163
+ ## Example Usage
164
+
165
+ ```python
166
+ import pulumi
167
+ import pulumi_snowflake as snowflake
168
+
169
+ # Simple usage
170
+ simple = snowflake.get_secrets()
171
+ pulumi.export("simpleOutput", simple.secrets)
172
+ # Filtering (like)
173
+ like = snowflake.get_secrets(like="secret-name")
174
+ pulumi.export("likeOutput", like.secrets)
175
+ # Filtering by prefix (like)
176
+ like_prefix = snowflake.get_secrets(like="prefix%")
177
+ pulumi.export("likePrefixOutput", like_prefix.secrets)
178
+ # Filtering (in)
179
+ in_ = snowflake.get_secrets(in_={
180
+ "schema": test["fullyQualifiedName"],
181
+ })
182
+ pulumi.export("inOutput", in_.secrets)
183
+ # Without additional data (to limit the number of calls make for every found secret)
184
+ only_show = snowflake.get_secrets(with_describe=False)
185
+ pulumi.export("onlyShowOutput", only_show.secrets)
186
+ ```
187
+
188
+
189
+ :param Union['GetSecretsInArgs', 'GetSecretsInArgsDict'] in_: IN clause to filter the list of secrets
190
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
191
+ :param bool with_describe: Runs DESC SECRET for each secret returned by SHOW SECRETS. The output of describe is saved to the description field. By default this value is set to true.
192
+ """
193
+ __args__ = dict()
194
+ __args__['in'] = in_
195
+ __args__['like'] = like
196
+ __args__['withDescribe'] = with_describe
197
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
198
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getSecrets:getSecrets', __args__, opts=opts, typ=GetSecretsResult)
199
+ return __ret__.apply(lambda __response__: GetSecretsResult(
200
+ id=pulumi.get(__response__, 'id'),
201
+ in_=pulumi.get(__response__, 'in_'),
202
+ like=pulumi.get(__response__, 'like'),
203
+ secrets=pulumi.get(__response__, 'secrets'),
204
+ with_describe=pulumi.get(__response__, 'with_describe')))
@@ -14,6 +14,7 @@ else:
14
14
  from typing_extensions import NotRequired, TypedDict, TypeAlias
15
15
  from . import _utilities
16
16
  from . import outputs
17
+ from ._inputs import *
17
18
 
18
19
  __all__ = [
19
20
  'GetStreamsResult',
@@ -27,52 +28,85 @@ class GetStreamsResult:
27
28
  """
28
29
  A collection of values returned by getStreams.
29
30
  """
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)
31
+ def __init__(__self__, id=None, in_=None, like=None, limit=None, starts_with=None, streams=None, with_describe=None):
34
32
  if id and not isinstance(id, str):
35
33
  raise TypeError("Expected argument 'id' to be a str")
36
34
  pulumi.set(__self__, "id", id)
37
- if schema and not isinstance(schema, str):
38
- raise TypeError("Expected argument 'schema' to be a str")
39
- pulumi.set(__self__, "schema", schema)
35
+ if in_ and not isinstance(in_, dict):
36
+ raise TypeError("Expected argument 'in_' to be a dict")
37
+ pulumi.set(__self__, "in_", in_)
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)
40
47
  if streams and not isinstance(streams, list):
41
48
  raise TypeError("Expected argument 'streams' to be a list")
42
49
  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)
43
53
 
44
54
  @property
45
55
  @pulumi.getter
46
- def database(self) -> str:
56
+ def id(self) -> str:
47
57
  """
48
- The database from which to return the streams from.
58
+ The provider-assigned unique ID for this managed resource.
49
59
  """
50
- return pulumi.get(self, "database")
60
+ return pulumi.get(self, "id")
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_")
51
69
 
52
70
  @property
53
71
  @pulumi.getter
54
- def id(self) -> str:
72
+ def like(self) -> Optional[str]:
55
73
  """
56
- The provider-assigned unique ID for this managed resource.
74
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
57
75
  """
58
- return pulumi.get(self, "id")
76
+ return pulumi.get(self, "like")
59
77
 
60
78
  @property
61
79
  @pulumi.getter
62
- def schema(self) -> str:
80
+ def limit(self) -> Optional['outputs.GetStreamsLimitResult']:
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`.
63
83
  """
64
- The schema from which to return the streams from.
84
+ return pulumi.get(self, "limit")
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.
65
91
  """
66
- return pulumi.get(self, "schema")
92
+ return pulumi.get(self, "starts_with")
67
93
 
68
94
  @property
69
95
  @pulumi.getter
70
96
  def streams(self) -> Sequence['outputs.GetStreamsStreamResult']:
71
97
  """
72
- The streams in the schema
98
+ Holds the aggregated output of all streams details queries.
73
99
  """
74
100
  return pulumi.get(self, "streams")
75
101
 
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
+
76
110
 
77
111
  class AwaitableGetStreamsResult(GetStreamsResult):
78
112
  # pylint: disable=using-constant-test
@@ -80,66 +114,81 @@ class AwaitableGetStreamsResult(GetStreamsResult):
80
114
  if False:
81
115
  yield self
82
116
  return GetStreamsResult(
83
- database=self.database,
84
117
  id=self.id,
85
- schema=self.schema,
86
- streams=self.streams)
87
-
88
-
89
- def get_streams(database: Optional[str] = None,
90
- schema: Optional[str] = None,
118
+ in_=self.in_,
119
+ like=self.like,
120
+ limit=self.limit,
121
+ starts_with=self.starts_with,
122
+ streams=self.streams,
123
+ with_describe=self.with_describe)
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,
91
131
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetStreamsResult:
92
132
  """
93
- ## Example Usage
133
+ !> **V1 release candidate** This data source was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
94
134
 
95
- ```python
96
- import pulumi
97
- import pulumi_snowflake as snowflake
135
+ Datasource used to get details of filtered streams. Filtering is aligned with the current possibilities for [SHOW STREAMS](https://docs.snowflake.com/en/sql-reference/sql/show-streams) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `streams`.
98
136
 
99
- current = snowflake.get_streams(database="MYDB",
100
- schema="MYSCHEMA")
101
- ```
102
137
 
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.
138
+ :param Union['GetStreamsInArgs', 'GetStreamsInArgsDict'] in_: IN clause to filter the list of objects
139
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
140
+ :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`.
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.
106
143
  """
107
144
  __args__ = dict()
108
- __args__['database'] = database
109
- __args__['schema'] = schema
145
+ __args__['in'] = in_
146
+ __args__['like'] = like
147
+ __args__['limit'] = limit
148
+ __args__['startsWith'] = starts_with
149
+ __args__['withDescribe'] = with_describe
110
150
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
111
151
  __ret__ = pulumi.runtime.invoke('snowflake:index/getStreams:getStreams', __args__, opts=opts, typ=GetStreamsResult).value
112
152
 
113
153
  return AwaitableGetStreamsResult(
114
- database=pulumi.get(__ret__, 'database'),
115
154
  id=pulumi.get(__ret__, 'id'),
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,
155
+ in_=pulumi.get(__ret__, 'in_'),
156
+ like=pulumi.get(__ret__, 'like'),
157
+ limit=pulumi.get(__ret__, 'limit'),
158
+ starts_with=pulumi.get(__ret__, 'starts_with'),
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,
120
166
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetStreamsResult]:
121
167
  """
122
- ## Example Usage
123
-
124
- ```python
125
- import pulumi
126
- import pulumi_snowflake as snowflake
168
+ !> **V1 release candidate** This data source was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
127
169
 
128
- current = snowflake.get_streams(database="MYDB",
129
- schema="MYSCHEMA")
130
- ```
170
+ Datasource used to get details of filtered streams. Filtering is aligned with the current possibilities for [SHOW STREAMS](https://docs.snowflake.com/en/sql-reference/sql/show-streams) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `streams`.
131
171
 
132
172
 
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.
173
+ :param Union['GetStreamsInArgs', 'GetStreamsInArgsDict'] in_: IN clause to filter the list of objects
174
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
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.
135
178
  """
136
179
  __args__ = dict()
137
- __args__['database'] = database
138
- __args__['schema'] = schema
180
+ __args__['in'] = in_
181
+ __args__['like'] = like
182
+ __args__['limit'] = limit
183
+ __args__['startsWith'] = starts_with
184
+ __args__['withDescribe'] = with_describe
139
185
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
140
186
  __ret__ = pulumi.runtime.invoke_output('snowflake:index/getStreams:getStreams', __args__, opts=opts, typ=GetStreamsResult)
141
187
  return __ret__.apply(lambda __response__: GetStreamsResult(
142
- database=pulumi.get(__response__, 'database'),
143
188
  id=pulumi.get(__response__, 'id'),
144
- schema=pulumi.get(__response__, 'schema'),
145
- streams=pulumi.get(__response__, 'streams')))
189
+ in_=pulumi.get(__response__, 'in_'),
190
+ like=pulumi.get(__response__, 'like'),
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')))
@@ -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 "\\"test_role\\"|ROLE|\\"test_parent_role\\""
145
+ $ pulumi import snowflake:index/grantAccountRole:GrantAccountRole example '"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 "\\"test_role\\"|ROLE|\\"test_parent_role\\""
166
+ $ pulumi import snowflake:index/grantAccountRole:GrantAccountRole example '"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 \\"app_role_1\\"|ACCOUNT_ROLE|\\"my_role\\""
145
+ $ pulumi import snowflake:index/grantApplicationRole:GrantApplicationRole example '"my_application"."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 \\"app_role_1\\"|ACCOUNT_ROLE|\\"my_role\\""
166
+ $ pulumi import snowflake:index/grantApplicationRole:GrantApplicationRole example '"my_application"."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 \\"test_db_role\\"|ROLE|\\"test_parent_role\\""
178
+ $ pulumi import snowflake:index/grantDatabaseRole:GrantDatabaseRole example '"ABC"."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 \\"test_db_role\\"|ROLE|\\"test_parent_role\\""
200
+ $ pulumi import snowflake:index/grantDatabaseRole:GrantDatabaseRole example '"ABC"."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 \\"schema_name\\""`
182
+ $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"|COPY|OnObject|SCHEMA|"database_name"."schema_name"'`
183
183
  ```
184
184
 
185
185
  #### OnObject on Schema ToDatabaseRole
186
186
 
187
187
  ```sh
188
- $ pulumi import snowflake:index/grantOwnership:GrantOwnership \\"schema_name\\""`
188
+ $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToDatabaseRole|"database_name"."database_role_name"|COPY|OnObject|SCHEMA|"database_name"."schema_name"'`
189
189
  ```
190
190
 
191
191
  #### OnObject on Table
192
192
 
193
193
  ```sh
194
- $ pulumi import snowflake:index/grantOwnership:GrantOwnership \\"table_name\\""`
194
+ $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"|COPY|OnObject|TABLE|"database_name"."schema_name"."table_name"'`
195
195
  ```
196
196
 
197
197
  #### OnAll InDatabase
198
198
 
199
199
  ```sh
200
- $ pulumi import snowflake:index/grantOwnership:GrantOwnership `"ToAccountRole|\\"account_role\\"|REVOKE|OnAll|TABLES|InDatabase|\\"database_name\\""`
200
+ $ pulumi import snowflake:index/grantOwnership:GrantOwnership example '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 \\"schema_name\\""`
206
+ $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"||OnAll|TABLES|InSchema|"database_name"."schema_name"'`
207
207
  ```
208
208
 
209
209
  #### OnFuture InDatabase
210
210
 
211
211
  ```sh
212
- $ pulumi import snowflake:index/grantOwnership:GrantOwnership `"ToAccountRole|\\"account_role\\"||OnFuture|TABLES|InDatabase|\\"database_name\\""`
212
+ $ pulumi import snowflake:index/grantOwnership:GrantOwnership example '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 \\"schema_name\\""`
218
+ $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"|COPY|OnFuture|TABLES|InSchema|"database_name"."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 \\"schema_name\\""`
242
+ $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"|COPY|OnObject|SCHEMA|"database_name"."schema_name"'`
243
243
  ```
244
244
 
245
245
  #### OnObject on Schema ToDatabaseRole
246
246
 
247
247
  ```sh
248
- $ pulumi import snowflake:index/grantOwnership:GrantOwnership \\"schema_name\\""`
248
+ $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToDatabaseRole|"database_name"."database_role_name"|COPY|OnObject|SCHEMA|"database_name"."schema_name"'`
249
249
  ```
250
250
 
251
251
  #### OnObject on Table
252
252
 
253
253
  ```sh
254
- $ pulumi import snowflake:index/grantOwnership:GrantOwnership \\"table_name\\""`
254
+ $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"|COPY|OnObject|TABLE|"database_name"."schema_name"."table_name"'`
255
255
  ```
256
256
 
257
257
  #### OnAll InDatabase
258
258
 
259
259
  ```sh
260
- $ pulumi import snowflake:index/grantOwnership:GrantOwnership `"ToAccountRole|\\"account_role\\"|REVOKE|OnAll|TABLES|InDatabase|\\"database_name\\""`
260
+ $ pulumi import snowflake:index/grantOwnership:GrantOwnership example '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 \\"schema_name\\""`
266
+ $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"||OnAll|TABLES|InSchema|"database_name"."schema_name"'`
267
267
  ```
268
268
 
269
269
  #### OnFuture InDatabase
270
270
 
271
271
  ```sh
272
- $ pulumi import snowflake:index/grantOwnership:GrantOwnership `"ToAccountRole|\\"account_role\\"||OnFuture|TABLES|InDatabase|\\"database_name\\""`
272
+ $ pulumi import snowflake:index/grantOwnership:GrantOwnership example '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 \\"schema_name\\""`
278
+ $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"|COPY|OnFuture|TABLES|InSchema|"database_name"."schema_name"'`
279
279
  ```
280
280
 
281
281
  :param str resource_name: The name of the resource.