pulumi-snowflake 0.58.0a1726066221__py3-none-any.whl → 0.59.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-snowflake might be problematic. Click here for more details.

@@ -101,6 +101,8 @@ def get_database_roles(in_database: Optional[str] = None,
101
101
  """
102
102
  !> **V1 release candidate** This data source was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
103
103
 
104
+ Datasource used to get details of filtered database roles. Filtering is aligned with the current possibilities for [SHOW DATABASE ROLES](https://docs.snowflake.com/en/sql-reference/sql/show-database-roles) query (`like` and `limit` are supported). The results of SHOW is encapsulated in show_output collection.
105
+
104
106
 
105
107
  :param str in_database: The database from which to return the database roles from.
106
108
  :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
@@ -129,6 +131,8 @@ def get_database_roles_output(in_database: Optional[pulumi.Input[str]] = None,
129
131
  """
130
132
  !> **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.
131
133
 
134
+ Datasource used to get details of filtered database roles. Filtering is aligned with the current possibilities for [SHOW DATABASE ROLES](https://docs.snowflake.com/en/sql-reference/sql/show-database-roles) query (`like` and `limit` are supported). The results of SHOW is encapsulated in show_output collection.
135
+
132
136
 
133
137
  :param str in_database: The database from which to return the database roles from.
134
138
  :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
@@ -9,6 +9,7 @@ import pulumi.runtime
9
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
10
10
  from . import _utilities
11
11
  from . import outputs
12
+ from ._inputs import *
12
13
 
13
14
  __all__ = [
14
15
  'GetMaskingPoliciesResult',
@@ -22,51 +23,73 @@ class GetMaskingPoliciesResult:
22
23
  """
23
24
  A collection of values returned by getMaskingPolicies.
24
25
  """
25
- def __init__(__self__, database=None, id=None, masking_policies=None, schema=None):
26
- if database and not isinstance(database, str):
27
- raise TypeError("Expected argument 'database' to be a str")
28
- pulumi.set(__self__, "database", database)
26
+ def __init__(__self__, id=None, in_=None, like=None, limit=None, masking_policies=None, with_describe=None):
29
27
  if id and not isinstance(id, str):
30
28
  raise TypeError("Expected argument 'id' to be a str")
31
29
  pulumi.set(__self__, "id", id)
30
+ if in_ and not isinstance(in_, dict):
31
+ raise TypeError("Expected argument 'in_' to be a dict")
32
+ pulumi.set(__self__, "in_", in_)
33
+ if like and not isinstance(like, str):
34
+ raise TypeError("Expected argument 'like' to be a str")
35
+ pulumi.set(__self__, "like", like)
36
+ if limit and not isinstance(limit, dict):
37
+ raise TypeError("Expected argument 'limit' to be a dict")
38
+ pulumi.set(__self__, "limit", limit)
32
39
  if masking_policies and not isinstance(masking_policies, list):
33
40
  raise TypeError("Expected argument 'masking_policies' to be a list")
34
41
  pulumi.set(__self__, "masking_policies", masking_policies)
35
- if schema and not isinstance(schema, str):
36
- raise TypeError("Expected argument 'schema' to be a str")
37
- pulumi.set(__self__, "schema", schema)
42
+ if with_describe and not isinstance(with_describe, bool):
43
+ raise TypeError("Expected argument 'with_describe' to be a bool")
44
+ pulumi.set(__self__, "with_describe", with_describe)
38
45
 
39
46
  @property
40
47
  @pulumi.getter
41
- def database(self) -> str:
48
+ def id(self) -> str:
42
49
  """
43
- The database from which to return the schemas from.
50
+ The provider-assigned unique ID for this managed resource.
44
51
  """
45
- return pulumi.get(self, "database")
52
+ return pulumi.get(self, "id")
53
+
54
+ @property
55
+ @pulumi.getter(name="in")
56
+ def in_(self) -> Optional['outputs.GetMaskingPoliciesInResult']:
57
+ """
58
+ IN clause to filter the list of masking policies
59
+ """
60
+ return pulumi.get(self, "in_")
46
61
 
47
62
  @property
48
63
  @pulumi.getter
49
- def id(self) -> str:
64
+ def like(self) -> Optional[str]:
50
65
  """
51
- The provider-assigned unique ID for this managed resource.
66
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
52
67
  """
53
- return pulumi.get(self, "id")
68
+ return pulumi.get(self, "like")
69
+
70
+ @property
71
+ @pulumi.getter
72
+ def limit(self) -> Optional['outputs.GetMaskingPoliciesLimitResult']:
73
+ """
74
+ 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`.
75
+ """
76
+ return pulumi.get(self, "limit")
54
77
 
55
78
  @property
56
79
  @pulumi.getter(name="maskingPolicies")
57
80
  def masking_policies(self) -> Sequence['outputs.GetMaskingPoliciesMaskingPolicyResult']:
58
81
  """
59
- The maskingPolicies in the schema
82
+ Holds the aggregated output of all views details queries.
60
83
  """
61
84
  return pulumi.get(self, "masking_policies")
62
85
 
63
86
  @property
64
- @pulumi.getter
65
- def schema(self) -> str:
87
+ @pulumi.getter(name="withDescribe")
88
+ def with_describe(self) -> Optional[bool]:
66
89
  """
67
- The schema from which to return the maskingPolicies from.
90
+ Runs DESC MASKING POLICY for each masking policy returned by SHOW MASKING POLICIES. The output of describe is saved to the description field. By default this value is set to true.
68
91
  """
69
- return pulumi.get(self, "schema")
92
+ return pulumi.get(self, "with_describe")
70
93
 
71
94
 
72
95
  class AwaitableGetMaskingPoliciesResult(GetMaskingPoliciesResult):
@@ -75,60 +98,62 @@ class AwaitableGetMaskingPoliciesResult(GetMaskingPoliciesResult):
75
98
  if False:
76
99
  yield self
77
100
  return GetMaskingPoliciesResult(
78
- database=self.database,
79
101
  id=self.id,
102
+ in_=self.in_,
103
+ like=self.like,
104
+ limit=self.limit,
80
105
  masking_policies=self.masking_policies,
81
- schema=self.schema)
106
+ with_describe=self.with_describe)
82
107
 
83
108
 
84
- def get_masking_policies(database: Optional[str] = None,
85
- schema: Optional[str] = None,
109
+ def get_masking_policies(in_: Optional[Union['GetMaskingPoliciesInArgs', 'GetMaskingPoliciesInArgsDict']] = None,
110
+ like: Optional[str] = None,
111
+ limit: Optional[Union['GetMaskingPoliciesLimitArgs', 'GetMaskingPoliciesLimitArgsDict']] = None,
112
+ with_describe: Optional[bool] = None,
86
113
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetMaskingPoliciesResult:
87
114
  """
88
- ## Example Usage
115
+ !> **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.
89
116
 
90
- ```python
91
- import pulumi
92
- import pulumi_snowflake as snowflake
117
+ Datasource used to get details of filtered masking policies. Filtering is aligned with the current possibilities for [SHOW MASKING POLICIES](https://docs.snowflake.com/en/sql-reference/sql/show-masking-policies) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `masking_policies`.
93
118
 
94
- current = snowflake.get_masking_policies(database="MYDB",
95
- schema="MYSCHEMA")
96
- ```
97
119
 
98
-
99
- :param str database: The database from which to return the schemas from.
100
- :param str schema: The schema from which to return the maskingPolicies from.
120
+ :param Union['GetMaskingPoliciesInArgs', 'GetMaskingPoliciesInArgsDict'] in_: IN clause to filter the list of masking policies
121
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
122
+ :param Union['GetMaskingPoliciesLimitArgs', 'GetMaskingPoliciesLimitArgsDict'] 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`.
123
+ :param bool with_describe: Runs DESC MASKING POLICY for each masking policy returned by SHOW MASKING POLICIES. The output of describe is saved to the description field. By default this value is set to true.
101
124
  """
102
125
  __args__ = dict()
103
- __args__['database'] = database
104
- __args__['schema'] = schema
126
+ __args__['in'] = in_
127
+ __args__['like'] = like
128
+ __args__['limit'] = limit
129
+ __args__['withDescribe'] = with_describe
105
130
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
106
131
  __ret__ = pulumi.runtime.invoke('snowflake:index/getMaskingPolicies:getMaskingPolicies', __args__, opts=opts, typ=GetMaskingPoliciesResult).value
107
132
 
108
133
  return AwaitableGetMaskingPoliciesResult(
109
- database=pulumi.get(__ret__, 'database'),
110
134
  id=pulumi.get(__ret__, 'id'),
135
+ in_=pulumi.get(__ret__, 'in_'),
136
+ like=pulumi.get(__ret__, 'like'),
137
+ limit=pulumi.get(__ret__, 'limit'),
111
138
  masking_policies=pulumi.get(__ret__, 'masking_policies'),
112
- schema=pulumi.get(__ret__, 'schema'))
139
+ with_describe=pulumi.get(__ret__, 'with_describe'))
113
140
 
114
141
 
115
142
  @_utilities.lift_output_func(get_masking_policies)
116
- def get_masking_policies_output(database: Optional[pulumi.Input[str]] = None,
117
- schema: Optional[pulumi.Input[str]] = None,
143
+ def get_masking_policies_output(in_: Optional[pulumi.Input[Optional[Union['GetMaskingPoliciesInArgs', 'GetMaskingPoliciesInArgsDict']]]] = None,
144
+ like: Optional[pulumi.Input[Optional[str]]] = None,
145
+ limit: Optional[pulumi.Input[Optional[Union['GetMaskingPoliciesLimitArgs', 'GetMaskingPoliciesLimitArgsDict']]]] = None,
146
+ with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
118
147
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetMaskingPoliciesResult]:
119
148
  """
120
- ## Example Usage
121
-
122
- ```python
123
- import pulumi
124
- import pulumi_snowflake as snowflake
149
+ !> **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.
125
150
 
126
- current = snowflake.get_masking_policies(database="MYDB",
127
- schema="MYSCHEMA")
128
- ```
151
+ Datasource used to get details of filtered masking policies. Filtering is aligned with the current possibilities for [SHOW MASKING POLICIES](https://docs.snowflake.com/en/sql-reference/sql/show-masking-policies) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `masking_policies`.
129
152
 
130
153
 
131
- :param str database: The database from which to return the schemas from.
132
- :param str schema: The schema from which to return the maskingPolicies from.
154
+ :param Union['GetMaskingPoliciesInArgs', 'GetMaskingPoliciesInArgsDict'] in_: IN clause to filter the list of masking policies
155
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
156
+ :param Union['GetMaskingPoliciesLimitArgs', 'GetMaskingPoliciesLimitArgsDict'] 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`.
157
+ :param bool with_describe: Runs DESC MASKING POLICY for each masking policy returned by SHOW MASKING POLICIES. The output of describe is saved to the description field. By default this value is set to true.
133
158
  """
134
159
  ...
@@ -22,10 +22,13 @@ class GetResourceMonitorsResult:
22
22
  """
23
23
  A collection of values returned by getResourceMonitors.
24
24
  """
25
- def __init__(__self__, id=None, resource_monitors=None):
25
+ def __init__(__self__, id=None, like=None, resource_monitors=None):
26
26
  if id and not isinstance(id, str):
27
27
  raise TypeError("Expected argument 'id' to be a str")
28
28
  pulumi.set(__self__, "id", id)
29
+ if like and not isinstance(like, str):
30
+ raise TypeError("Expected argument 'like' to be a str")
31
+ pulumi.set(__self__, "like", like)
29
32
  if resource_monitors and not isinstance(resource_monitors, list):
30
33
  raise TypeError("Expected argument 'resource_monitors' to be a list")
31
34
  pulumi.set(__self__, "resource_monitors", resource_monitors)
@@ -38,11 +41,19 @@ class GetResourceMonitorsResult:
38
41
  """
39
42
  return pulumi.get(self, "id")
40
43
 
44
+ @property
45
+ @pulumi.getter
46
+ def like(self) -> Optional[str]:
47
+ """
48
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
49
+ """
50
+ return pulumi.get(self, "like")
51
+
41
52
  @property
42
53
  @pulumi.getter(name="resourceMonitors")
43
54
  def resource_monitors(self) -> Sequence['outputs.GetResourceMonitorsResourceMonitorResult']:
44
55
  """
45
- The resource monitors in the database
56
+ Holds the aggregated output of all resource monitor details queries.
46
57
  """
47
58
  return pulumi.get(self, "resource_monitors")
48
59
 
@@ -54,39 +65,40 @@ class AwaitableGetResourceMonitorsResult(GetResourceMonitorsResult):
54
65
  yield self
55
66
  return GetResourceMonitorsResult(
56
67
  id=self.id,
68
+ like=self.like,
57
69
  resource_monitors=self.resource_monitors)
58
70
 
59
71
 
60
- def get_resource_monitors(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetResourceMonitorsResult:
72
+ def get_resource_monitors(like: Optional[str] = None,
73
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetResourceMonitorsResult:
61
74
  """
62
- ## Example Usage
75
+ !> **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.
76
+
77
+ Datasource used to get details of filtered resource monitors. Filtering is aligned with the current possibilities for [SHOW RESOURCE MONITORS](https://docs.snowflake.com/en/sql-reference/sql/show-resource-monitors) query (`like` is supported). The results of SHOW is encapsulated in show_output collection.
63
78
 
64
- ```python
65
- import pulumi
66
- import pulumi_snowflake as snowflake
67
79
 
68
- current = snowflake.get_resource_monitors()
69
- ```
80
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
70
81
  """
71
82
  __args__ = dict()
83
+ __args__['like'] = like
72
84
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
73
85
  __ret__ = pulumi.runtime.invoke('snowflake:index/getResourceMonitors:getResourceMonitors', __args__, opts=opts, typ=GetResourceMonitorsResult).value
74
86
 
75
87
  return AwaitableGetResourceMonitorsResult(
76
88
  id=pulumi.get(__ret__, 'id'),
89
+ like=pulumi.get(__ret__, 'like'),
77
90
  resource_monitors=pulumi.get(__ret__, 'resource_monitors'))
78
91
 
79
92
 
80
93
  @_utilities.lift_output_func(get_resource_monitors)
81
- def get_resource_monitors_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetResourceMonitorsResult]:
94
+ def get_resource_monitors_output(like: Optional[pulumi.Input[Optional[str]]] = None,
95
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetResourceMonitorsResult]:
82
96
  """
83
- ## Example Usage
97
+ !> **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.
98
+
99
+ Datasource used to get details of filtered resource monitors. Filtering is aligned with the current possibilities for [SHOW RESOURCE MONITORS](https://docs.snowflake.com/en/sql-reference/sql/show-resource-monitors) query (`like` is supported). The results of SHOW is encapsulated in show_output collection.
84
100
 
85
- ```python
86
- import pulumi
87
- import pulumi_snowflake as snowflake
88
101
 
89
- current = snowflake.get_resource_monitors()
90
- ```
102
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
91
103
  """
92
104
  ...
@@ -9,6 +9,7 @@ import pulumi.runtime
9
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
10
10
  from . import _utilities
11
11
  from . import outputs
12
+ from ._inputs import *
12
13
 
13
14
  __all__ = [
14
15
  'GetRowAccessPoliciesResult',
@@ -22,51 +23,73 @@ class GetRowAccessPoliciesResult:
22
23
  """
23
24
  A collection of values returned by getRowAccessPolicies.
24
25
  """
25
- def __init__(__self__, database=None, id=None, row_access_policies=None, schema=None):
26
- if database and not isinstance(database, str):
27
- raise TypeError("Expected argument 'database' to be a str")
28
- pulumi.set(__self__, "database", database)
26
+ def __init__(__self__, id=None, in_=None, like=None, limit=None, row_access_policies=None, with_describe=None):
29
27
  if id and not isinstance(id, str):
30
28
  raise TypeError("Expected argument 'id' to be a str")
31
29
  pulumi.set(__self__, "id", id)
30
+ if in_ and not isinstance(in_, dict):
31
+ raise TypeError("Expected argument 'in_' to be a dict")
32
+ pulumi.set(__self__, "in_", in_)
33
+ if like and not isinstance(like, str):
34
+ raise TypeError("Expected argument 'like' to be a str")
35
+ pulumi.set(__self__, "like", like)
36
+ if limit and not isinstance(limit, dict):
37
+ raise TypeError("Expected argument 'limit' to be a dict")
38
+ pulumi.set(__self__, "limit", limit)
32
39
  if row_access_policies and not isinstance(row_access_policies, list):
33
40
  raise TypeError("Expected argument 'row_access_policies' to be a list")
34
41
  pulumi.set(__self__, "row_access_policies", row_access_policies)
35
- if schema and not isinstance(schema, str):
36
- raise TypeError("Expected argument 'schema' to be a str")
37
- pulumi.set(__self__, "schema", schema)
42
+ if with_describe and not isinstance(with_describe, bool):
43
+ raise TypeError("Expected argument 'with_describe' to be a bool")
44
+ pulumi.set(__self__, "with_describe", with_describe)
38
45
 
39
46
  @property
40
47
  @pulumi.getter
41
- def database(self) -> str:
48
+ def id(self) -> str:
42
49
  """
43
- The database from which to return the schemas from.
50
+ The provider-assigned unique ID for this managed resource.
44
51
  """
45
- return pulumi.get(self, "database")
52
+ return pulumi.get(self, "id")
53
+
54
+ @property
55
+ @pulumi.getter(name="in")
56
+ def in_(self) -> Optional['outputs.GetRowAccessPoliciesInResult']:
57
+ """
58
+ IN clause to filter the list of row access policies
59
+ """
60
+ return pulumi.get(self, "in_")
46
61
 
47
62
  @property
48
63
  @pulumi.getter
49
- def id(self) -> str:
64
+ def like(self) -> Optional[str]:
50
65
  """
51
- The provider-assigned unique ID for this managed resource.
66
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
52
67
  """
53
- return pulumi.get(self, "id")
68
+ return pulumi.get(self, "like")
69
+
70
+ @property
71
+ @pulumi.getter
72
+ def limit(self) -> Optional['outputs.GetRowAccessPoliciesLimitResult']:
73
+ """
74
+ 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`.
75
+ """
76
+ return pulumi.get(self, "limit")
54
77
 
55
78
  @property
56
79
  @pulumi.getter(name="rowAccessPolicies")
57
80
  def row_access_policies(self) -> Sequence['outputs.GetRowAccessPoliciesRowAccessPolicyResult']:
58
81
  """
59
- The row access policy in the schema
82
+ Holds the aggregated output of all views details queries.
60
83
  """
61
84
  return pulumi.get(self, "row_access_policies")
62
85
 
63
86
  @property
64
- @pulumi.getter
65
- def schema(self) -> str:
87
+ @pulumi.getter(name="withDescribe")
88
+ def with_describe(self) -> Optional[bool]:
66
89
  """
67
- The schema from which to return the row access policy from.
90
+ Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
68
91
  """
69
- return pulumi.get(self, "schema")
92
+ return pulumi.get(self, "with_describe")
70
93
 
71
94
 
72
95
  class AwaitableGetRowAccessPoliciesResult(GetRowAccessPoliciesResult):
@@ -75,60 +98,62 @@ class AwaitableGetRowAccessPoliciesResult(GetRowAccessPoliciesResult):
75
98
  if False:
76
99
  yield self
77
100
  return GetRowAccessPoliciesResult(
78
- database=self.database,
79
101
  id=self.id,
102
+ in_=self.in_,
103
+ like=self.like,
104
+ limit=self.limit,
80
105
  row_access_policies=self.row_access_policies,
81
- schema=self.schema)
106
+ with_describe=self.with_describe)
82
107
 
83
108
 
84
- def get_row_access_policies(database: Optional[str] = None,
85
- schema: Optional[str] = None,
109
+ def get_row_access_policies(in_: Optional[Union['GetRowAccessPoliciesInArgs', 'GetRowAccessPoliciesInArgsDict']] = None,
110
+ like: Optional[str] = None,
111
+ limit: Optional[Union['GetRowAccessPoliciesLimitArgs', 'GetRowAccessPoliciesLimitArgsDict']] = None,
112
+ with_describe: Optional[bool] = None,
86
113
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRowAccessPoliciesResult:
87
114
  """
88
- ## Example Usage
115
+ !> **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.
89
116
 
90
- ```python
91
- import pulumi
92
- import pulumi_snowflake as snowflake
117
+ Datasource used to get details of filtered row access policies. Filtering is aligned with the current possibilities for [SHOW ROW ACCESS POLICIES](https://docs.snowflake.com/en/sql-reference/sql/show-row-access-policies) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `row_access_policies`.
93
118
 
94
- current = snowflake.get_row_access_policies(database="MYDB",
95
- schema="MYSCHEMA")
96
- ```
97
119
 
98
-
99
- :param str database: The database from which to return the schemas from.
100
- :param str schema: The schema from which to return the row access policy from.
120
+ :param Union['GetRowAccessPoliciesInArgs', 'GetRowAccessPoliciesInArgsDict'] in_: IN clause to filter the list of row access policies
121
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
122
+ :param Union['GetRowAccessPoliciesLimitArgs', 'GetRowAccessPoliciesLimitArgsDict'] 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`.
123
+ :param bool with_describe: Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
101
124
  """
102
125
  __args__ = dict()
103
- __args__['database'] = database
104
- __args__['schema'] = schema
126
+ __args__['in'] = in_
127
+ __args__['like'] = like
128
+ __args__['limit'] = limit
129
+ __args__['withDescribe'] = with_describe
105
130
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
106
131
  __ret__ = pulumi.runtime.invoke('snowflake:index/getRowAccessPolicies:getRowAccessPolicies', __args__, opts=opts, typ=GetRowAccessPoliciesResult).value
107
132
 
108
133
  return AwaitableGetRowAccessPoliciesResult(
109
- database=pulumi.get(__ret__, 'database'),
110
134
  id=pulumi.get(__ret__, 'id'),
135
+ in_=pulumi.get(__ret__, 'in_'),
136
+ like=pulumi.get(__ret__, 'like'),
137
+ limit=pulumi.get(__ret__, 'limit'),
111
138
  row_access_policies=pulumi.get(__ret__, 'row_access_policies'),
112
- schema=pulumi.get(__ret__, 'schema'))
139
+ with_describe=pulumi.get(__ret__, 'with_describe'))
113
140
 
114
141
 
115
142
  @_utilities.lift_output_func(get_row_access_policies)
116
- def get_row_access_policies_output(database: Optional[pulumi.Input[str]] = None,
117
- schema: Optional[pulumi.Input[str]] = None,
143
+ def get_row_access_policies_output(in_: Optional[pulumi.Input[Optional[Union['GetRowAccessPoliciesInArgs', 'GetRowAccessPoliciesInArgsDict']]]] = None,
144
+ like: Optional[pulumi.Input[Optional[str]]] = None,
145
+ limit: Optional[pulumi.Input[Optional[Union['GetRowAccessPoliciesLimitArgs', 'GetRowAccessPoliciesLimitArgsDict']]]] = None,
146
+ with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
118
147
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRowAccessPoliciesResult]:
119
148
  """
120
- ## Example Usage
121
-
122
- ```python
123
- import pulumi
124
- import pulumi_snowflake as snowflake
149
+ !> **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.
125
150
 
126
- current = snowflake.get_row_access_policies(database="MYDB",
127
- schema="MYSCHEMA")
128
- ```
151
+ Datasource used to get details of filtered row access policies. Filtering is aligned with the current possibilities for [SHOW ROW ACCESS POLICIES](https://docs.snowflake.com/en/sql-reference/sql/show-row-access-policies) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `row_access_policies`.
129
152
 
130
153
 
131
- :param str database: The database from which to return the schemas from.
132
- :param str schema: The schema from which to return the row access policy from.
154
+ :param Union['GetRowAccessPoliciesInArgs', 'GetRowAccessPoliciesInArgsDict'] in_: IN clause to filter the list of row access policies
155
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
156
+ :param Union['GetRowAccessPoliciesLimitArgs', 'GetRowAccessPoliciesLimitArgsDict'] 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`.
157
+ :param bool with_describe: Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
133
158
  """
134
159
  ...
@@ -125,6 +125,8 @@ def get_views(in_: Optional[Union['GetViewsInArgs', 'GetViewsInArgsDict']] = Non
125
125
  with_describe: Optional[bool] = None,
126
126
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetViewsResult:
127
127
  """
128
+ !> **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.
129
+
128
130
  Datasource used to get details of filtered views. Filtering is aligned with the current possibilities for [SHOW VIEWS](https://docs.snowflake.com/en/sql-reference/sql/show-views) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `views`.
129
131
 
130
132
 
@@ -161,6 +163,8 @@ def get_views_output(in_: Optional[pulumi.Input[Optional[Union['GetViewsInArgs',
161
163
  with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
162
164
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetViewsResult]:
163
165
  """
166
+ !> **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.
167
+
164
168
  Datasource used to get details of filtered views. Filtering is aligned with the current possibilities for [SHOW VIEWS](https://docs.snowflake.com/en/sql-reference/sql/show-views) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `views`.
165
169
 
166
170