pulumi-snowflake 0.59.0__py3-none-any.whl → 0.59.0a1726294094__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/_inputs.py +30 -863
- pulumi_snowflake/get_database_roles.py +0 -4
- pulumi_snowflake/get_masking_policies.py +48 -73
- pulumi_snowflake/get_resource_monitors.py +16 -28
- pulumi_snowflake/get_row_access_policies.py +48 -73
- pulumi_snowflake/get_views.py +0 -4
- pulumi_snowflake/masking_policy.py +234 -192
- pulumi_snowflake/outputs.py +65 -1092
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/resource_monitor.py +259 -83
- pulumi_snowflake/row_access_policy.py +114 -168
- pulumi_snowflake/view.py +7 -7
- pulumi_snowflake/warehouse.py +4 -4
- {pulumi_snowflake-0.59.0.dist-info → pulumi_snowflake-0.59.0a1726294094.dist-info}/METADATA +1 -1
- {pulumi_snowflake-0.59.0.dist-info → pulumi_snowflake-0.59.0a1726294094.dist-info}/RECORD +17 -17
- {pulumi_snowflake-0.59.0.dist-info → pulumi_snowflake-0.59.0a1726294094.dist-info}/WHEEL +1 -1
- {pulumi_snowflake-0.59.0.dist-info → pulumi_snowflake-0.59.0a1726294094.dist-info}/top_level.txt +0 -0
|
@@ -101,8 +101,6 @@ 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
|
-
|
|
106
104
|
|
|
107
105
|
:param str in_database: The database from which to return the database roles from.
|
|
108
106
|
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
@@ -131,8 +129,6 @@ def get_database_roles_output(in_database: Optional[pulumi.Input[str]] = None,
|
|
|
131
129
|
"""
|
|
132
130
|
!> **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.
|
|
133
131
|
|
|
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
|
-
|
|
136
132
|
|
|
137
133
|
:param str in_database: The database from which to return the database roles from.
|
|
138
134
|
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
@@ -9,7 +9,6 @@ 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 *
|
|
13
12
|
|
|
14
13
|
__all__ = [
|
|
15
14
|
'GetMaskingPoliciesResult',
|
|
@@ -23,73 +22,51 @@ class GetMaskingPoliciesResult:
|
|
|
23
22
|
"""
|
|
24
23
|
A collection of values returned by getMaskingPolicies.
|
|
25
24
|
"""
|
|
26
|
-
def __init__(__self__,
|
|
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)
|
|
27
29
|
if id and not isinstance(id, str):
|
|
28
30
|
raise TypeError("Expected argument 'id' to be a str")
|
|
29
31
|
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)
|
|
39
32
|
if masking_policies and not isinstance(masking_policies, list):
|
|
40
33
|
raise TypeError("Expected argument 'masking_policies' to be a list")
|
|
41
34
|
pulumi.set(__self__, "masking_policies", masking_policies)
|
|
42
|
-
if
|
|
43
|
-
raise TypeError("Expected argument '
|
|
44
|
-
pulumi.set(__self__, "
|
|
35
|
+
if schema and not isinstance(schema, str):
|
|
36
|
+
raise TypeError("Expected argument 'schema' to be a str")
|
|
37
|
+
pulumi.set(__self__, "schema", schema)
|
|
45
38
|
|
|
46
39
|
@property
|
|
47
40
|
@pulumi.getter
|
|
48
|
-
def
|
|
49
|
-
"""
|
|
50
|
-
The provider-assigned unique ID for this managed resource.
|
|
51
|
-
"""
|
|
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_")
|
|
61
|
-
|
|
62
|
-
@property
|
|
63
|
-
@pulumi.getter
|
|
64
|
-
def like(self) -> Optional[str]:
|
|
41
|
+
def database(self) -> str:
|
|
65
42
|
"""
|
|
66
|
-
|
|
43
|
+
The database from which to return the schemas from.
|
|
67
44
|
"""
|
|
68
|
-
return pulumi.get(self, "
|
|
45
|
+
return pulumi.get(self, "database")
|
|
69
46
|
|
|
70
47
|
@property
|
|
71
48
|
@pulumi.getter
|
|
72
|
-
def
|
|
49
|
+
def id(self) -> str:
|
|
73
50
|
"""
|
|
74
|
-
|
|
51
|
+
The provider-assigned unique ID for this managed resource.
|
|
75
52
|
"""
|
|
76
|
-
return pulumi.get(self, "
|
|
53
|
+
return pulumi.get(self, "id")
|
|
77
54
|
|
|
78
55
|
@property
|
|
79
56
|
@pulumi.getter(name="maskingPolicies")
|
|
80
57
|
def masking_policies(self) -> Sequence['outputs.GetMaskingPoliciesMaskingPolicyResult']:
|
|
81
58
|
"""
|
|
82
|
-
|
|
59
|
+
The maskingPolicies in the schema
|
|
83
60
|
"""
|
|
84
61
|
return pulumi.get(self, "masking_policies")
|
|
85
62
|
|
|
86
63
|
@property
|
|
87
|
-
@pulumi.getter
|
|
88
|
-
def
|
|
64
|
+
@pulumi.getter
|
|
65
|
+
def schema(self) -> str:
|
|
89
66
|
"""
|
|
90
|
-
|
|
67
|
+
The schema from which to return the maskingPolicies from.
|
|
91
68
|
"""
|
|
92
|
-
return pulumi.get(self, "
|
|
69
|
+
return pulumi.get(self, "schema")
|
|
93
70
|
|
|
94
71
|
|
|
95
72
|
class AwaitableGetMaskingPoliciesResult(GetMaskingPoliciesResult):
|
|
@@ -98,62 +75,60 @@ class AwaitableGetMaskingPoliciesResult(GetMaskingPoliciesResult):
|
|
|
98
75
|
if False:
|
|
99
76
|
yield self
|
|
100
77
|
return GetMaskingPoliciesResult(
|
|
78
|
+
database=self.database,
|
|
101
79
|
id=self.id,
|
|
102
|
-
in_=self.in_,
|
|
103
|
-
like=self.like,
|
|
104
|
-
limit=self.limit,
|
|
105
80
|
masking_policies=self.masking_policies,
|
|
106
|
-
|
|
81
|
+
schema=self.schema)
|
|
107
82
|
|
|
108
83
|
|
|
109
|
-
def get_masking_policies(
|
|
110
|
-
|
|
111
|
-
limit: Optional[Union['GetMaskingPoliciesLimitArgs', 'GetMaskingPoliciesLimitArgsDict']] = None,
|
|
112
|
-
with_describe: Optional[bool] = None,
|
|
84
|
+
def get_masking_policies(database: Optional[str] = None,
|
|
85
|
+
schema: Optional[str] = None,
|
|
113
86
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetMaskingPoliciesResult:
|
|
114
87
|
"""
|
|
115
|
-
|
|
88
|
+
## Example Usage
|
|
116
89
|
|
|
117
|
-
|
|
90
|
+
```python
|
|
91
|
+
import pulumi
|
|
92
|
+
import pulumi_snowflake as snowflake
|
|
118
93
|
|
|
94
|
+
current = snowflake.get_masking_policies(database="MYDB",
|
|
95
|
+
schema="MYSCHEMA")
|
|
96
|
+
```
|
|
119
97
|
|
|
120
|
-
|
|
121
|
-
:param str
|
|
122
|
-
:param
|
|
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.
|
|
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.
|
|
124
101
|
"""
|
|
125
102
|
__args__ = dict()
|
|
126
|
-
__args__['
|
|
127
|
-
__args__['
|
|
128
|
-
__args__['limit'] = limit
|
|
129
|
-
__args__['withDescribe'] = with_describe
|
|
103
|
+
__args__['database'] = database
|
|
104
|
+
__args__['schema'] = schema
|
|
130
105
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
131
106
|
__ret__ = pulumi.runtime.invoke('snowflake:index/getMaskingPolicies:getMaskingPolicies', __args__, opts=opts, typ=GetMaskingPoliciesResult).value
|
|
132
107
|
|
|
133
108
|
return AwaitableGetMaskingPoliciesResult(
|
|
109
|
+
database=pulumi.get(__ret__, 'database'),
|
|
134
110
|
id=pulumi.get(__ret__, 'id'),
|
|
135
|
-
in_=pulumi.get(__ret__, 'in_'),
|
|
136
|
-
like=pulumi.get(__ret__, 'like'),
|
|
137
|
-
limit=pulumi.get(__ret__, 'limit'),
|
|
138
111
|
masking_policies=pulumi.get(__ret__, 'masking_policies'),
|
|
139
|
-
|
|
112
|
+
schema=pulumi.get(__ret__, 'schema'))
|
|
140
113
|
|
|
141
114
|
|
|
142
115
|
@_utilities.lift_output_func(get_masking_policies)
|
|
143
|
-
def get_masking_policies_output(
|
|
144
|
-
|
|
145
|
-
limit: Optional[pulumi.Input[Optional[Union['GetMaskingPoliciesLimitArgs', 'GetMaskingPoliciesLimitArgsDict']]]] = None,
|
|
146
|
-
with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
116
|
+
def get_masking_policies_output(database: Optional[pulumi.Input[str]] = None,
|
|
117
|
+
schema: Optional[pulumi.Input[str]] = None,
|
|
147
118
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetMaskingPoliciesResult]:
|
|
148
119
|
"""
|
|
149
|
-
|
|
120
|
+
## Example Usage
|
|
121
|
+
|
|
122
|
+
```python
|
|
123
|
+
import pulumi
|
|
124
|
+
import pulumi_snowflake as snowflake
|
|
150
125
|
|
|
151
|
-
|
|
126
|
+
current = snowflake.get_masking_policies(database="MYDB",
|
|
127
|
+
schema="MYSCHEMA")
|
|
128
|
+
```
|
|
152
129
|
|
|
153
130
|
|
|
154
|
-
:param
|
|
155
|
-
:param str
|
|
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.
|
|
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.
|
|
158
133
|
"""
|
|
159
134
|
...
|
|
@@ -22,13 +22,10 @@ class GetResourceMonitorsResult:
|
|
|
22
22
|
"""
|
|
23
23
|
A collection of values returned by getResourceMonitors.
|
|
24
24
|
"""
|
|
25
|
-
def __init__(__self__, id=None,
|
|
25
|
+
def __init__(__self__, id=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)
|
|
32
29
|
if resource_monitors and not isinstance(resource_monitors, list):
|
|
33
30
|
raise TypeError("Expected argument 'resource_monitors' to be a list")
|
|
34
31
|
pulumi.set(__self__, "resource_monitors", resource_monitors)
|
|
@@ -41,19 +38,11 @@ class GetResourceMonitorsResult:
|
|
|
41
38
|
"""
|
|
42
39
|
return pulumi.get(self, "id")
|
|
43
40
|
|
|
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
|
-
|
|
52
41
|
@property
|
|
53
42
|
@pulumi.getter(name="resourceMonitors")
|
|
54
43
|
def resource_monitors(self) -> Sequence['outputs.GetResourceMonitorsResourceMonitorResult']:
|
|
55
44
|
"""
|
|
56
|
-
|
|
45
|
+
The resource monitors in the database
|
|
57
46
|
"""
|
|
58
47
|
return pulumi.get(self, "resource_monitors")
|
|
59
48
|
|
|
@@ -65,40 +54,39 @@ class AwaitableGetResourceMonitorsResult(GetResourceMonitorsResult):
|
|
|
65
54
|
yield self
|
|
66
55
|
return GetResourceMonitorsResult(
|
|
67
56
|
id=self.id,
|
|
68
|
-
like=self.like,
|
|
69
57
|
resource_monitors=self.resource_monitors)
|
|
70
58
|
|
|
71
59
|
|
|
72
|
-
def get_resource_monitors(
|
|
73
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetResourceMonitorsResult:
|
|
60
|
+
def get_resource_monitors(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetResourceMonitorsResult:
|
|
74
61
|
"""
|
|
75
|
-
|
|
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.
|
|
62
|
+
## Example Usage
|
|
78
63
|
|
|
64
|
+
```python
|
|
65
|
+
import pulumi
|
|
66
|
+
import pulumi_snowflake as snowflake
|
|
79
67
|
|
|
80
|
-
|
|
68
|
+
current = snowflake.get_resource_monitors()
|
|
69
|
+
```
|
|
81
70
|
"""
|
|
82
71
|
__args__ = dict()
|
|
83
|
-
__args__['like'] = like
|
|
84
72
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
85
73
|
__ret__ = pulumi.runtime.invoke('snowflake:index/getResourceMonitors:getResourceMonitors', __args__, opts=opts, typ=GetResourceMonitorsResult).value
|
|
86
74
|
|
|
87
75
|
return AwaitableGetResourceMonitorsResult(
|
|
88
76
|
id=pulumi.get(__ret__, 'id'),
|
|
89
|
-
like=pulumi.get(__ret__, 'like'),
|
|
90
77
|
resource_monitors=pulumi.get(__ret__, 'resource_monitors'))
|
|
91
78
|
|
|
92
79
|
|
|
93
80
|
@_utilities.lift_output_func(get_resource_monitors)
|
|
94
|
-
def get_resource_monitors_output(
|
|
95
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetResourceMonitorsResult]:
|
|
81
|
+
def get_resource_monitors_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetResourceMonitorsResult]:
|
|
96
82
|
"""
|
|
97
|
-
|
|
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.
|
|
83
|
+
## Example Usage
|
|
100
84
|
|
|
85
|
+
```python
|
|
86
|
+
import pulumi
|
|
87
|
+
import pulumi_snowflake as snowflake
|
|
101
88
|
|
|
102
|
-
|
|
89
|
+
current = snowflake.get_resource_monitors()
|
|
90
|
+
```
|
|
103
91
|
"""
|
|
104
92
|
...
|
|
@@ -9,7 +9,6 @@ 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 *
|
|
13
12
|
|
|
14
13
|
__all__ = [
|
|
15
14
|
'GetRowAccessPoliciesResult',
|
|
@@ -23,73 +22,51 @@ class GetRowAccessPoliciesResult:
|
|
|
23
22
|
"""
|
|
24
23
|
A collection of values returned by getRowAccessPolicies.
|
|
25
24
|
"""
|
|
26
|
-
def __init__(__self__,
|
|
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)
|
|
27
29
|
if id and not isinstance(id, str):
|
|
28
30
|
raise TypeError("Expected argument 'id' to be a str")
|
|
29
31
|
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)
|
|
39
32
|
if row_access_policies and not isinstance(row_access_policies, list):
|
|
40
33
|
raise TypeError("Expected argument 'row_access_policies' to be a list")
|
|
41
34
|
pulumi.set(__self__, "row_access_policies", row_access_policies)
|
|
42
|
-
if
|
|
43
|
-
raise TypeError("Expected argument '
|
|
44
|
-
pulumi.set(__self__, "
|
|
35
|
+
if schema and not isinstance(schema, str):
|
|
36
|
+
raise TypeError("Expected argument 'schema' to be a str")
|
|
37
|
+
pulumi.set(__self__, "schema", schema)
|
|
45
38
|
|
|
46
39
|
@property
|
|
47
40
|
@pulumi.getter
|
|
48
|
-
def
|
|
49
|
-
"""
|
|
50
|
-
The provider-assigned unique ID for this managed resource.
|
|
51
|
-
"""
|
|
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_")
|
|
61
|
-
|
|
62
|
-
@property
|
|
63
|
-
@pulumi.getter
|
|
64
|
-
def like(self) -> Optional[str]:
|
|
41
|
+
def database(self) -> str:
|
|
65
42
|
"""
|
|
66
|
-
|
|
43
|
+
The database from which to return the schemas from.
|
|
67
44
|
"""
|
|
68
|
-
return pulumi.get(self, "
|
|
45
|
+
return pulumi.get(self, "database")
|
|
69
46
|
|
|
70
47
|
@property
|
|
71
48
|
@pulumi.getter
|
|
72
|
-
def
|
|
49
|
+
def id(self) -> str:
|
|
73
50
|
"""
|
|
74
|
-
|
|
51
|
+
The provider-assigned unique ID for this managed resource.
|
|
75
52
|
"""
|
|
76
|
-
return pulumi.get(self, "
|
|
53
|
+
return pulumi.get(self, "id")
|
|
77
54
|
|
|
78
55
|
@property
|
|
79
56
|
@pulumi.getter(name="rowAccessPolicies")
|
|
80
57
|
def row_access_policies(self) -> Sequence['outputs.GetRowAccessPoliciesRowAccessPolicyResult']:
|
|
81
58
|
"""
|
|
82
|
-
|
|
59
|
+
The row access policy in the schema
|
|
83
60
|
"""
|
|
84
61
|
return pulumi.get(self, "row_access_policies")
|
|
85
62
|
|
|
86
63
|
@property
|
|
87
|
-
@pulumi.getter
|
|
88
|
-
def
|
|
64
|
+
@pulumi.getter
|
|
65
|
+
def schema(self) -> str:
|
|
89
66
|
"""
|
|
90
|
-
|
|
67
|
+
The schema from which to return the row access policy from.
|
|
91
68
|
"""
|
|
92
|
-
return pulumi.get(self, "
|
|
69
|
+
return pulumi.get(self, "schema")
|
|
93
70
|
|
|
94
71
|
|
|
95
72
|
class AwaitableGetRowAccessPoliciesResult(GetRowAccessPoliciesResult):
|
|
@@ -98,62 +75,60 @@ class AwaitableGetRowAccessPoliciesResult(GetRowAccessPoliciesResult):
|
|
|
98
75
|
if False:
|
|
99
76
|
yield self
|
|
100
77
|
return GetRowAccessPoliciesResult(
|
|
78
|
+
database=self.database,
|
|
101
79
|
id=self.id,
|
|
102
|
-
in_=self.in_,
|
|
103
|
-
like=self.like,
|
|
104
|
-
limit=self.limit,
|
|
105
80
|
row_access_policies=self.row_access_policies,
|
|
106
|
-
|
|
81
|
+
schema=self.schema)
|
|
107
82
|
|
|
108
83
|
|
|
109
|
-
def get_row_access_policies(
|
|
110
|
-
|
|
111
|
-
limit: Optional[Union['GetRowAccessPoliciesLimitArgs', 'GetRowAccessPoliciesLimitArgsDict']] = None,
|
|
112
|
-
with_describe: Optional[bool] = None,
|
|
84
|
+
def get_row_access_policies(database: Optional[str] = None,
|
|
85
|
+
schema: Optional[str] = None,
|
|
113
86
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRowAccessPoliciesResult:
|
|
114
87
|
"""
|
|
115
|
-
|
|
88
|
+
## Example Usage
|
|
116
89
|
|
|
117
|
-
|
|
90
|
+
```python
|
|
91
|
+
import pulumi
|
|
92
|
+
import pulumi_snowflake as snowflake
|
|
118
93
|
|
|
94
|
+
current = snowflake.get_row_access_policies(database="MYDB",
|
|
95
|
+
schema="MYSCHEMA")
|
|
96
|
+
```
|
|
119
97
|
|
|
120
|
-
|
|
121
|
-
:param str
|
|
122
|
-
:param
|
|
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.
|
|
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.
|
|
124
101
|
"""
|
|
125
102
|
__args__ = dict()
|
|
126
|
-
__args__['
|
|
127
|
-
__args__['
|
|
128
|
-
__args__['limit'] = limit
|
|
129
|
-
__args__['withDescribe'] = with_describe
|
|
103
|
+
__args__['database'] = database
|
|
104
|
+
__args__['schema'] = schema
|
|
130
105
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
131
106
|
__ret__ = pulumi.runtime.invoke('snowflake:index/getRowAccessPolicies:getRowAccessPolicies', __args__, opts=opts, typ=GetRowAccessPoliciesResult).value
|
|
132
107
|
|
|
133
108
|
return AwaitableGetRowAccessPoliciesResult(
|
|
109
|
+
database=pulumi.get(__ret__, 'database'),
|
|
134
110
|
id=pulumi.get(__ret__, 'id'),
|
|
135
|
-
in_=pulumi.get(__ret__, 'in_'),
|
|
136
|
-
like=pulumi.get(__ret__, 'like'),
|
|
137
|
-
limit=pulumi.get(__ret__, 'limit'),
|
|
138
111
|
row_access_policies=pulumi.get(__ret__, 'row_access_policies'),
|
|
139
|
-
|
|
112
|
+
schema=pulumi.get(__ret__, 'schema'))
|
|
140
113
|
|
|
141
114
|
|
|
142
115
|
@_utilities.lift_output_func(get_row_access_policies)
|
|
143
|
-
def get_row_access_policies_output(
|
|
144
|
-
|
|
145
|
-
limit: Optional[pulumi.Input[Optional[Union['GetRowAccessPoliciesLimitArgs', 'GetRowAccessPoliciesLimitArgsDict']]]] = None,
|
|
146
|
-
with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
116
|
+
def get_row_access_policies_output(database: Optional[pulumi.Input[str]] = None,
|
|
117
|
+
schema: Optional[pulumi.Input[str]] = None,
|
|
147
118
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRowAccessPoliciesResult]:
|
|
148
119
|
"""
|
|
149
|
-
|
|
120
|
+
## Example Usage
|
|
121
|
+
|
|
122
|
+
```python
|
|
123
|
+
import pulumi
|
|
124
|
+
import pulumi_snowflake as snowflake
|
|
150
125
|
|
|
151
|
-
|
|
126
|
+
current = snowflake.get_row_access_policies(database="MYDB",
|
|
127
|
+
schema="MYSCHEMA")
|
|
128
|
+
```
|
|
152
129
|
|
|
153
130
|
|
|
154
|
-
:param
|
|
155
|
-
:param str
|
|
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.
|
|
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.
|
|
158
133
|
"""
|
|
159
134
|
...
|
pulumi_snowflake/get_views.py
CHANGED
|
@@ -125,8 +125,6 @@ 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
|
-
|
|
130
128
|
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`.
|
|
131
129
|
|
|
132
130
|
|
|
@@ -163,8 +161,6 @@ def get_views_output(in_: Optional[pulumi.Input[Optional[Union['GetViewsInArgs',
|
|
|
163
161
|
with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
164
162
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetViewsResult]:
|
|
165
163
|
"""
|
|
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
|
-
|
|
168
164
|
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`.
|
|
169
165
|
|
|
170
166
|
|