pulumi-snowflake 0.63.0a1734439451__py3-none-any.whl → 1.0.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.
- pulumi_snowflake/__init__.py +82 -74
- pulumi_snowflake/_inputs.py +12705 -4876
- pulumi_snowflake/account.py +156 -163
- pulumi_snowflake/account_parameter.py +16 -16
- pulumi_snowflake/account_role.py +9 -9
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +9 -22
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +9 -22
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +9 -22
- pulumi_snowflake/authentication_policy.py +21 -21
- pulumi_snowflake/config/__init__.pyi +8 -86
- pulumi_snowflake/config/vars.py +10 -110
- pulumi_snowflake/database.py +9 -9
- pulumi_snowflake/database_role.py +14 -14
- pulumi_snowflake/{unsafe_execute.py → execute.py} +35 -25
- pulumi_snowflake/external_oauth_integration.py +27 -27
- pulumi_snowflake/external_volume.py +11 -7
- pulumi_snowflake/function_java.py +1211 -0
- pulumi_snowflake/function_javascript.py +882 -0
- pulumi_snowflake/function_python.py +1212 -0
- pulumi_snowflake/function_scala.py +1212 -0
- pulumi_snowflake/function_sql.py +835 -0
- pulumi_snowflake/get_account_roles.py +129 -0
- pulumi_snowflake/get_accounts.py +41 -19
- pulumi_snowflake/get_alerts.py +4 -0
- pulumi_snowflake/get_connections.py +2 -40
- pulumi_snowflake/get_cortex_search_services.py +4 -0
- pulumi_snowflake/get_current_account.py +4 -0
- pulumi_snowflake/get_current_role.py +2 -2
- pulumi_snowflake/get_database.py +4 -0
- pulumi_snowflake/get_database_role.py +4 -0
- pulumi_snowflake/get_database_roles.py +2 -6
- pulumi_snowflake/get_databases.py +2 -6
- pulumi_snowflake/get_dynamic_tables.py +4 -2
- pulumi_snowflake/get_external_functions.py +4 -0
- pulumi_snowflake/get_external_tables.py +4 -0
- pulumi_snowflake/get_failover_groups.py +4 -2
- pulumi_snowflake/get_file_formats.py +4 -0
- pulumi_snowflake/get_functions.py +4 -0
- pulumi_snowflake/get_grants.py +0 -4
- pulumi_snowflake/get_masking_policies.py +2 -6
- pulumi_snowflake/get_materialized_views.py +4 -0
- pulumi_snowflake/get_network_policies.py +2 -6
- pulumi_snowflake/get_parameters.py +4 -0
- pulumi_snowflake/get_pipes.py +4 -0
- pulumi_snowflake/get_procedures.py +4 -0
- pulumi_snowflake/get_resource_monitors.py +2 -6
- pulumi_snowflake/get_row_access_policies.py +2 -6
- pulumi_snowflake/get_schemas.py +6 -4
- pulumi_snowflake/get_secrets.py +2 -6
- pulumi_snowflake/get_security_integrations.py +2 -6
- pulumi_snowflake/get_sequences.py +4 -0
- pulumi_snowflake/get_shares.py +4 -0
- pulumi_snowflake/get_stages.py +4 -0
- pulumi_snowflake/get_storage_integrations.py +4 -0
- pulumi_snowflake/get_streamlits.py +2 -6
- pulumi_snowflake/get_streams.py +2 -6
- pulumi_snowflake/get_system_generate_scim_access_token.py +4 -0
- pulumi_snowflake/get_system_get_private_link_config.py +4 -0
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +2 -2
- pulumi_snowflake/get_tables.py +4 -0
- pulumi_snowflake/get_tags.py +2 -6
- pulumi_snowflake/get_tasks.py +0 -4
- pulumi_snowflake/get_users.py +2 -6
- pulumi_snowflake/get_views.py +2 -6
- pulumi_snowflake/get_warehouses.py +2 -6
- pulumi_snowflake/grant_account_role.py +21 -21
- pulumi_snowflake/grant_application_role.py +7 -7
- pulumi_snowflake/grant_database_role.py +28 -28
- pulumi_snowflake/grant_ownership.py +14 -14
- pulumi_snowflake/grant_privileges_to_account_role.py +14 -14
- pulumi_snowflake/grant_privileges_to_database_role.py +14 -14
- pulumi_snowflake/grant_privileges_to_share.py +42 -42
- pulumi_snowflake/legacy_service_user.py +21 -21
- pulumi_snowflake/masking_policy.py +21 -21
- pulumi_snowflake/network_policy.py +23 -23
- pulumi_snowflake/oauth_integration_for_custom_clients.py +73 -46
- pulumi_snowflake/oauth_integration_for_partner_applications.py +57 -30
- pulumi_snowflake/outputs.py +10029 -4056
- pulumi_snowflake/password_policy.py +12 -2
- pulumi_snowflake/primary_connection.py +16 -16
- pulumi_snowflake/procedure_java.py +1273 -0
- pulumi_snowflake/procedure_javascript.py +895 -0
- pulumi_snowflake/procedure_python.py +1226 -0
- pulumi_snowflake/procedure_scala.py +1273 -0
- pulumi_snowflake/procedure_sql.py +895 -0
- pulumi_snowflake/provider.py +40 -527
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/resource_monitor.py +16 -20
- pulumi_snowflake/row_access_policy.py +21 -21
- pulumi_snowflake/saml2_integration.py +9 -9
- pulumi_snowflake/schema.py +14 -18
- pulumi_snowflake/scim_integration.py +16 -16
- pulumi_snowflake/secondary_connection.py +16 -16
- pulumi_snowflake/secondary_database.py +16 -16
- pulumi_snowflake/secret_with_authorization_code_grant.py +28 -28
- pulumi_snowflake/secret_with_basic_authentication.py +21 -21
- pulumi_snowflake/secret_with_client_credentials.py +28 -28
- pulumi_snowflake/secret_with_generic_string.py +21 -21
- pulumi_snowflake/service_user.py +21 -21
- pulumi_snowflake/shared_database.py +16 -16
- pulumi_snowflake/stream_on_directory_table.py +28 -41
- pulumi_snowflake/stream_on_external_table.py +28 -41
- pulumi_snowflake/stream_on_table.py +28 -41
- pulumi_snowflake/stream_on_view.py +28 -41
- pulumi_snowflake/streamlit.py +42 -46
- pulumi_snowflake/tag.py +28 -28
- pulumi_snowflake/tag_association.py +28 -86
- pulumi_snowflake/task.py +58 -62
- pulumi_snowflake/user.py +21 -21
- pulumi_snowflake/view.py +28 -41
- pulumi_snowflake/warehouse.py +16 -16
- {pulumi_snowflake-0.63.0a1734439451.dist-info → pulumi_snowflake-1.0.0.dist-info}/METADATA +1 -1
- pulumi_snowflake-1.0.0.dist-info/RECORD +148 -0
- pulumi_snowflake/database_old.py +0 -489
- pulumi_snowflake/function.py +0 -901
- pulumi_snowflake/get_role.py +0 -126
- pulumi_snowflake/get_roles.py +0 -133
- pulumi_snowflake/oauth_integration.py +0 -610
- pulumi_snowflake/procedure.py +0 -910
- pulumi_snowflake/role.py +0 -250
- pulumi_snowflake/saml_integration.py +0 -916
- pulumi_snowflake/session_parameter.py +0 -301
- pulumi_snowflake/stream.py +0 -643
- pulumi_snowflake/tag_masking_policy_association.py +0 -211
- pulumi_snowflake-0.63.0a1734439451.dist-info/RECORD +0 -148
- {pulumi_snowflake-0.63.0a1734439451.dist-info → pulumi_snowflake-1.0.0.dist-info}/WHEEL +0 -0
- {pulumi_snowflake-0.63.0a1734439451.dist-info → pulumi_snowflake-1.0.0.dist-info}/top_level.txt +0 -0
pulumi_snowflake/get_role.py
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
-
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
|
|
5
|
-
import copy
|
|
6
|
-
import warnings
|
|
7
|
-
import 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
|
-
|
|
17
|
-
__all__ = [
|
|
18
|
-
'GetRoleResult',
|
|
19
|
-
'AwaitableGetRoleResult',
|
|
20
|
-
'get_role',
|
|
21
|
-
'get_role_output',
|
|
22
|
-
]
|
|
23
|
-
|
|
24
|
-
@pulumi.output_type
|
|
25
|
-
class GetRoleResult:
|
|
26
|
-
"""
|
|
27
|
-
A collection of values returned by getRole.
|
|
28
|
-
"""
|
|
29
|
-
def __init__(__self__, comment=None, id=None, name=None):
|
|
30
|
-
if comment and not isinstance(comment, str):
|
|
31
|
-
raise TypeError("Expected argument 'comment' to be a str")
|
|
32
|
-
pulumi.set(__self__, "comment", comment)
|
|
33
|
-
if id and not isinstance(id, str):
|
|
34
|
-
raise TypeError("Expected argument 'id' to be a str")
|
|
35
|
-
pulumi.set(__self__, "id", id)
|
|
36
|
-
if name and not isinstance(name, str):
|
|
37
|
-
raise TypeError("Expected argument 'name' to be a str")
|
|
38
|
-
pulumi.set(__self__, "name", name)
|
|
39
|
-
|
|
40
|
-
@property
|
|
41
|
-
@pulumi.getter
|
|
42
|
-
def comment(self) -> str:
|
|
43
|
-
"""
|
|
44
|
-
The comment on the role
|
|
45
|
-
"""
|
|
46
|
-
return pulumi.get(self, "comment")
|
|
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
|
|
58
|
-
def name(self) -> str:
|
|
59
|
-
"""
|
|
60
|
-
The role for which to return metadata.
|
|
61
|
-
"""
|
|
62
|
-
return pulumi.get(self, "name")
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
class AwaitableGetRoleResult(GetRoleResult):
|
|
66
|
-
# pylint: disable=using-constant-test
|
|
67
|
-
def __await__(self):
|
|
68
|
-
if False:
|
|
69
|
-
yield self
|
|
70
|
-
return GetRoleResult(
|
|
71
|
-
comment=self.comment,
|
|
72
|
-
id=self.id,
|
|
73
|
-
name=self.name)
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
def get_role(name: Optional[str] = None,
|
|
77
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRoleResult:
|
|
78
|
-
"""
|
|
79
|
-
> **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use get_roles instead. <deprecation>
|
|
80
|
-
|
|
81
|
-
## Example Usage
|
|
82
|
-
|
|
83
|
-
```python
|
|
84
|
-
import pulumi
|
|
85
|
-
import pulumi_snowflake as snowflake
|
|
86
|
-
|
|
87
|
-
this = snowflake.get_role(name="role1")
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
:param str name: The role for which to return metadata.
|
|
92
|
-
"""
|
|
93
|
-
__args__ = dict()
|
|
94
|
-
__args__['name'] = name
|
|
95
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
96
|
-
__ret__ = pulumi.runtime.invoke('snowflake:index/getRole:getRole', __args__, opts=opts, typ=GetRoleResult).value
|
|
97
|
-
|
|
98
|
-
return AwaitableGetRoleResult(
|
|
99
|
-
comment=pulumi.get(__ret__, 'comment'),
|
|
100
|
-
id=pulumi.get(__ret__, 'id'),
|
|
101
|
-
name=pulumi.get(__ret__, 'name'))
|
|
102
|
-
def get_role_output(name: Optional[pulumi.Input[str]] = None,
|
|
103
|
-
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetRoleResult]:
|
|
104
|
-
"""
|
|
105
|
-
> **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use get_roles instead. <deprecation>
|
|
106
|
-
|
|
107
|
-
## Example Usage
|
|
108
|
-
|
|
109
|
-
```python
|
|
110
|
-
import pulumi
|
|
111
|
-
import pulumi_snowflake as snowflake
|
|
112
|
-
|
|
113
|
-
this = snowflake.get_role(name="role1")
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
:param str name: The role for which to return metadata.
|
|
118
|
-
"""
|
|
119
|
-
__args__ = dict()
|
|
120
|
-
__args__['name'] = name
|
|
121
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
122
|
-
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getRole:getRole', __args__, opts=opts, typ=GetRoleResult)
|
|
123
|
-
return __ret__.apply(lambda __response__: GetRoleResult(
|
|
124
|
-
comment=pulumi.get(__response__, 'comment'),
|
|
125
|
-
id=pulumi.get(__response__, 'id'),
|
|
126
|
-
name=pulumi.get(__response__, 'name')))
|
pulumi_snowflake/get_roles.py
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
-
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
|
|
5
|
-
import copy
|
|
6
|
-
import warnings
|
|
7
|
-
import 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
|
-
|
|
18
|
-
__all__ = [
|
|
19
|
-
'GetRolesResult',
|
|
20
|
-
'AwaitableGetRolesResult',
|
|
21
|
-
'get_roles',
|
|
22
|
-
'get_roles_output',
|
|
23
|
-
]
|
|
24
|
-
|
|
25
|
-
@pulumi.output_type
|
|
26
|
-
class GetRolesResult:
|
|
27
|
-
"""
|
|
28
|
-
A collection of values returned by getRoles.
|
|
29
|
-
"""
|
|
30
|
-
def __init__(__self__, id=None, in_class=None, like=None, roles=None):
|
|
31
|
-
if id and not isinstance(id, str):
|
|
32
|
-
raise TypeError("Expected argument 'id' to be a str")
|
|
33
|
-
pulumi.set(__self__, "id", id)
|
|
34
|
-
if in_class and not isinstance(in_class, str):
|
|
35
|
-
raise TypeError("Expected argument 'in_class' to be a str")
|
|
36
|
-
pulumi.set(__self__, "in_class", in_class)
|
|
37
|
-
if like and not isinstance(like, str):
|
|
38
|
-
raise TypeError("Expected argument 'like' to be a str")
|
|
39
|
-
pulumi.set(__self__, "like", like)
|
|
40
|
-
if roles and not isinstance(roles, list):
|
|
41
|
-
raise TypeError("Expected argument 'roles' to be a list")
|
|
42
|
-
pulumi.set(__self__, "roles", roles)
|
|
43
|
-
|
|
44
|
-
@property
|
|
45
|
-
@pulumi.getter
|
|
46
|
-
def id(self) -> str:
|
|
47
|
-
"""
|
|
48
|
-
The provider-assigned unique ID for this managed resource.
|
|
49
|
-
"""
|
|
50
|
-
return pulumi.get(self, "id")
|
|
51
|
-
|
|
52
|
-
@property
|
|
53
|
-
@pulumi.getter(name="inClass")
|
|
54
|
-
def in_class(self) -> Optional[str]:
|
|
55
|
-
"""
|
|
56
|
-
Filters the SHOW GRANTS output by class name.
|
|
57
|
-
"""
|
|
58
|
-
return pulumi.get(self, "in_class")
|
|
59
|
-
|
|
60
|
-
@property
|
|
61
|
-
@pulumi.getter
|
|
62
|
-
def like(self) -> Optional[str]:
|
|
63
|
-
"""
|
|
64
|
-
Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
65
|
-
"""
|
|
66
|
-
return pulumi.get(self, "like")
|
|
67
|
-
|
|
68
|
-
@property
|
|
69
|
-
@pulumi.getter
|
|
70
|
-
def roles(self) -> Sequence['outputs.GetRolesRoleResult']:
|
|
71
|
-
"""
|
|
72
|
-
Holds the aggregated output of all role details queries.
|
|
73
|
-
"""
|
|
74
|
-
return pulumi.get(self, "roles")
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
class AwaitableGetRolesResult(GetRolesResult):
|
|
78
|
-
# pylint: disable=using-constant-test
|
|
79
|
-
def __await__(self):
|
|
80
|
-
if False:
|
|
81
|
-
yield self
|
|
82
|
-
return GetRolesResult(
|
|
83
|
-
id=self.id,
|
|
84
|
-
in_class=self.in_class,
|
|
85
|
-
like=self.like,
|
|
86
|
-
roles=self.roles)
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
def get_roles(in_class: Optional[str] = None,
|
|
90
|
-
like: Optional[str] = None,
|
|
91
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRolesResult:
|
|
92
|
-
"""
|
|
93
|
-
!> **V1 release candidate** This datasource 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
|
-
|
|
95
|
-
Datasource used to get details of filtered roles. Filtering is aligned with the current possibilities for [SHOW ROLES](https://docs.snowflake.com/en/sql-reference/sql/show-roles) query (`like` and `in_class` are all supported). The results of SHOW are encapsulated in one output collection.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
:param str in_class: Filters the SHOW GRANTS output by class name.
|
|
99
|
-
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
100
|
-
"""
|
|
101
|
-
__args__ = dict()
|
|
102
|
-
__args__['inClass'] = in_class
|
|
103
|
-
__args__['like'] = like
|
|
104
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
105
|
-
__ret__ = pulumi.runtime.invoke('snowflake:index/getRoles:getRoles', __args__, opts=opts, typ=GetRolesResult).value
|
|
106
|
-
|
|
107
|
-
return AwaitableGetRolesResult(
|
|
108
|
-
id=pulumi.get(__ret__, 'id'),
|
|
109
|
-
in_class=pulumi.get(__ret__, 'in_class'),
|
|
110
|
-
like=pulumi.get(__ret__, 'like'),
|
|
111
|
-
roles=pulumi.get(__ret__, 'roles'))
|
|
112
|
-
def get_roles_output(in_class: Optional[pulumi.Input[Optional[str]]] = None,
|
|
113
|
-
like: Optional[pulumi.Input[Optional[str]]] = None,
|
|
114
|
-
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetRolesResult]:
|
|
115
|
-
"""
|
|
116
|
-
!> **V1 release candidate** This datasource 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.
|
|
117
|
-
|
|
118
|
-
Datasource used to get details of filtered roles. Filtering is aligned with the current possibilities for [SHOW ROLES](https://docs.snowflake.com/en/sql-reference/sql/show-roles) query (`like` and `in_class` are all supported). The results of SHOW are encapsulated in one output collection.
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
:param str in_class: Filters the SHOW GRANTS output by class name.
|
|
122
|
-
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
123
|
-
"""
|
|
124
|
-
__args__ = dict()
|
|
125
|
-
__args__['inClass'] = in_class
|
|
126
|
-
__args__['like'] = like
|
|
127
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
128
|
-
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getRoles:getRoles', __args__, opts=opts, typ=GetRolesResult)
|
|
129
|
-
return __ret__.apply(lambda __response__: GetRolesResult(
|
|
130
|
-
id=pulumi.get(__response__, 'id'),
|
|
131
|
-
in_class=pulumi.get(__response__, 'in_class'),
|
|
132
|
-
like=pulumi.get(__response__, 'like'),
|
|
133
|
-
roles=pulumi.get(__response__, 'roles')))
|