pulumi-snowflake 0.50.2a1709892015__py3-none-any.whl → 1.2.0a1736835738__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 +224 -172
- pulumi_snowflake/_inputs.py +52854 -1662
- pulumi_snowflake/_utilities.py +41 -5
- pulumi_snowflake/account.py +188 -214
- pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
- pulumi_snowflake/account_parameter.py +21 -44
- pulumi_snowflake/account_password_policy_attachment.py +7 -28
- pulumi_snowflake/account_role.py +250 -0
- pulumi_snowflake/alert.py +38 -43
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +704 -0
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +657 -0
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +692 -0
- pulumi_snowflake/api_integration.py +35 -50
- pulumi_snowflake/authentication_policy.py +622 -0
- pulumi_snowflake/config/__init__.pyi +76 -99
- pulumi_snowflake/config/outputs.py +5 -0
- pulumi_snowflake/config/vars.py +93 -124
- pulumi_snowflake/cortex_search_service.py +596 -0
- pulumi_snowflake/database.py +819 -209
- pulumi_snowflake/database_role.py +81 -40
- pulumi_snowflake/dynamic_table.py +44 -47
- pulumi_snowflake/email_notification_integration.py +35 -26
- pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -139
- pulumi_snowflake/external_function.py +54 -71
- pulumi_snowflake/external_oauth_integration.py +593 -538
- pulumi_snowflake/external_table.py +67 -86
- pulumi_snowflake/external_volume.py +382 -0
- pulumi_snowflake/failover_group.py +59 -96
- pulumi_snowflake/file_format.py +33 -24
- 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 +53 -22
- pulumi_snowflake/get_alerts.py +22 -5
- pulumi_snowflake/get_connections.py +109 -0
- pulumi_snowflake/get_cortex_search_services.py +216 -0
- pulumi_snowflake/get_current_account.py +24 -9
- pulumi_snowflake/get_current_role.py +14 -7
- pulumi_snowflake/get_database.py +25 -5
- pulumi_snowflake/get_database_role.py +162 -0
- pulumi_snowflake/get_database_roles.py +79 -43
- pulumi_snowflake/get_databases.py +91 -69
- pulumi_snowflake/get_dynamic_tables.py +36 -19
- pulumi_snowflake/get_external_functions.py +28 -5
- pulumi_snowflake/get_external_tables.py +28 -5
- pulumi_snowflake/get_failover_groups.py +18 -7
- pulumi_snowflake/get_file_formats.py +28 -5
- pulumi_snowflake/get_functions.py +28 -5
- pulumi_snowflake/get_grants.py +207 -80
- pulumi_snowflake/get_masking_policies.py +91 -47
- pulumi_snowflake/get_materialized_views.py +28 -5
- pulumi_snowflake/get_network_policies.py +129 -0
- pulumi_snowflake/get_parameters.py +38 -11
- pulumi_snowflake/get_pipes.py +28 -5
- pulumi_snowflake/get_procedures.py +28 -5
- pulumi_snowflake/get_resource_monitors.py +37 -20
- pulumi_snowflake/get_row_access_policies.py +91 -47
- pulumi_snowflake/get_schemas.py +145 -37
- pulumi_snowflake/get_secrets.py +200 -0
- pulumi_snowflake/get_security_integrations.py +129 -0
- pulumi_snowflake/get_sequences.py +28 -5
- pulumi_snowflake/get_shares.py +18 -5
- pulumi_snowflake/get_stages.py +28 -5
- pulumi_snowflake/get_storage_integrations.py +16 -5
- pulumi_snowflake/get_streamlits.py +170 -0
- pulumi_snowflake/get_streams.py +114 -50
- pulumi_snowflake/get_system_generate_scim_access_token.py +18 -5
- pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
- pulumi_snowflake/get_system_get_private_link_config.py +121 -6
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
- pulumi_snowflake/get_tables.py +28 -5
- pulumi_snowflake/get_tags.py +130 -0
- pulumi_snowflake/get_tasks.py +134 -50
- pulumi_snowflake/get_users.py +116 -40
- pulumi_snowflake/get_views.py +114 -50
- pulumi_snowflake/get_warehouses.py +79 -22
- pulumi_snowflake/grant_account_role.py +28 -61
- pulumi_snowflake/grant_application_role.py +257 -0
- pulumi_snowflake/grant_database_role.py +35 -108
- pulumi_snowflake/grant_ownership.py +382 -0
- pulumi_snowflake/grant_privileges_to_account_role.py +42 -78
- pulumi_snowflake/grant_privileges_to_database_role.py +37 -223
- pulumi_snowflake/grant_privileges_to_share.py +96 -44
- pulumi_snowflake/legacy_service_user.py +3670 -0
- pulumi_snowflake/managed_account.py +42 -9
- pulumi_snowflake/masking_policy.py +213 -306
- pulumi_snowflake/materialized_view.py +62 -67
- pulumi_snowflake/network_policy.py +217 -57
- pulumi_snowflake/network_policy_attachment.py +7 -32
- pulumi_snowflake/network_rule.py +473 -0
- pulumi_snowflake/notification_integration.py +51 -82
- pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
- pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -188
- pulumi_snowflake/object_parameter.py +12 -99
- pulumi_snowflake/outputs.py +49200 -2928
- pulumi_snowflake/password_policy.py +41 -28
- pulumi_snowflake/pipe.py +33 -0
- pulumi_snowflake/primary_connection.py +330 -0
- 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 +378 -613
- pulumi_snowflake/pulumi-plugin.json +2 -1
- pulumi_snowflake/resource_monitor.py +118 -323
- pulumi_snowflake/row_access_policy.py +200 -145
- pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -295
- pulumi_snowflake/schema.py +949 -174
- pulumi_snowflake/scim_integration.py +286 -105
- pulumi_snowflake/secondary_connection.py +339 -0
- pulumi_snowflake/secondary_database.py +1080 -0
- pulumi_snowflake/secret_with_authorization_code_grant.py +548 -0
- pulumi_snowflake/secret_with_basic_authentication.py +500 -0
- pulumi_snowflake/secret_with_client_credentials.py +511 -0
- pulumi_snowflake/secret_with_generic_string.py +452 -0
- pulumi_snowflake/sequence.py +9 -30
- pulumi_snowflake/service_user.py +3585 -0
- pulumi_snowflake/share.py +35 -26
- pulumi_snowflake/shared_database.py +939 -0
- pulumi_snowflake/stage.py +95 -80
- pulumi_snowflake/storage_integration.py +48 -2
- pulumi_snowflake/stream_on_directory_table.py +517 -0
- pulumi_snowflake/stream_on_external_table.py +632 -0
- pulumi_snowflake/stream_on_table.py +666 -0
- pulumi_snowflake/stream_on_view.py +666 -0
- pulumi_snowflake/streamlit.py +671 -0
- pulumi_snowflake/table.py +86 -93
- pulumi_snowflake/table_column_masking_policy_application.py +7 -14
- pulumi_snowflake/table_constraint.py +29 -168
- pulumi_snowflake/tag.py +142 -70
- pulumi_snowflake/tag_association.py +40 -211
- pulumi_snowflake/task.py +3048 -414
- pulumi_snowflake/user.py +3351 -380
- pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
- pulumi_snowflake/user_password_policy_attachment.py +7 -6
- pulumi_snowflake/user_public_keys.py +5 -0
- pulumi_snowflake/view.py +466 -211
- pulumi_snowflake/warehouse.py +184 -164
- {pulumi_snowflake-0.50.2a1709892015.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/METADATA +7 -6
- pulumi_snowflake-1.2.0a1736835738.dist-info/RECORD +148 -0
- {pulumi_snowflake-0.50.2a1709892015.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/WHEEL +1 -1
- pulumi_snowflake/account_grant.py +0 -339
- pulumi_snowflake/database_grant.py +0 -491
- pulumi_snowflake/external_table_grant.py +0 -686
- pulumi_snowflake/failover_group_grant.py +0 -388
- pulumi_snowflake/file_format_grant.py +0 -631
- pulumi_snowflake/function.py +0 -868
- pulumi_snowflake/function_grant.py +0 -741
- pulumi_snowflake/get_role.py +0 -117
- pulumi_snowflake/get_roles.py +0 -116
- pulumi_snowflake/grant_privileges_to_role.py +0 -667
- pulumi_snowflake/integration_grant.py +0 -436
- pulumi_snowflake/masking_policy_grant.py +0 -538
- pulumi_snowflake/materialized_view_grant.py +0 -685
- pulumi_snowflake/pipe_grant.py +0 -583
- pulumi_snowflake/procedure.py +0 -883
- pulumi_snowflake/procedure_grant.py +0 -741
- pulumi_snowflake/resource_monitor_grant.py +0 -383
- pulumi_snowflake/role.py +0 -269
- pulumi_snowflake/role_grants.py +0 -348
- pulumi_snowflake/role_ownership_grant.py +0 -334
- pulumi_snowflake/row_access_policy_grant.py +0 -536
- pulumi_snowflake/schema_grant.py +0 -643
- pulumi_snowflake/sequence_grant.py +0 -631
- pulumi_snowflake/session_parameter.py +0 -328
- pulumi_snowflake/stage_grant.py +0 -631
- pulumi_snowflake/stream.py +0 -610
- pulumi_snowflake/stream_grant.py +0 -631
- pulumi_snowflake/table_grant.py +0 -673
- pulumi_snowflake/tag_grant.py +0 -528
- pulumi_snowflake/tag_masking_policy_association.py +0 -210
- pulumi_snowflake/task_grant.py +0 -631
- pulumi_snowflake/user_grant.py +0 -390
- pulumi_snowflake/user_ownership_grant.py +0 -286
- pulumi_snowflake/view_grant.py +0 -701
- pulumi_snowflake/warehouse_grant.py +0 -436
- pulumi_snowflake-0.50.2a1709892015.dist-info/RECORD +0 -136
- {pulumi_snowflake-0.50.2a1709892015.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,452 @@
|
|
|
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__ = ['SecretWithGenericStringArgs', 'SecretWithGenericString']
|
|
20
|
+
|
|
21
|
+
@pulumi.input_type
|
|
22
|
+
class SecretWithGenericStringArgs:
|
|
23
|
+
def __init__(__self__, *,
|
|
24
|
+
database: pulumi.Input[str],
|
|
25
|
+
schema: pulumi.Input[str],
|
|
26
|
+
secret_string: pulumi.Input[str],
|
|
27
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
28
|
+
name: Optional[pulumi.Input[str]] = None):
|
|
29
|
+
"""
|
|
30
|
+
The set of arguments for constructing a SecretWithGenericString resource.
|
|
31
|
+
:param pulumi.Input[str] database: The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
32
|
+
:param pulumi.Input[str] schema: The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
33
|
+
:param pulumi.Input[str] comment: Specifies a comment for the secret.
|
|
34
|
+
:param pulumi.Input[str] name: String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
35
|
+
"""
|
|
36
|
+
pulumi.set(__self__, "database", database)
|
|
37
|
+
pulumi.set(__self__, "schema", schema)
|
|
38
|
+
pulumi.set(__self__, "secret_string", secret_string)
|
|
39
|
+
if comment is not None:
|
|
40
|
+
pulumi.set(__self__, "comment", comment)
|
|
41
|
+
if name is not None:
|
|
42
|
+
pulumi.set(__self__, "name", name)
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
@pulumi.getter
|
|
46
|
+
def database(self) -> pulumi.Input[str]:
|
|
47
|
+
"""
|
|
48
|
+
The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
49
|
+
"""
|
|
50
|
+
return pulumi.get(self, "database")
|
|
51
|
+
|
|
52
|
+
@database.setter
|
|
53
|
+
def database(self, value: pulumi.Input[str]):
|
|
54
|
+
pulumi.set(self, "database", value)
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
@pulumi.getter
|
|
58
|
+
def schema(self) -> pulumi.Input[str]:
|
|
59
|
+
"""
|
|
60
|
+
The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
61
|
+
"""
|
|
62
|
+
return pulumi.get(self, "schema")
|
|
63
|
+
|
|
64
|
+
@schema.setter
|
|
65
|
+
def schema(self, value: pulumi.Input[str]):
|
|
66
|
+
pulumi.set(self, "schema", value)
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
@pulumi.getter(name="secretString")
|
|
70
|
+
def secret_string(self) -> pulumi.Input[str]:
|
|
71
|
+
return pulumi.get(self, "secret_string")
|
|
72
|
+
|
|
73
|
+
@secret_string.setter
|
|
74
|
+
def secret_string(self, value: pulumi.Input[str]):
|
|
75
|
+
pulumi.set(self, "secret_string", value)
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
@pulumi.getter
|
|
79
|
+
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
80
|
+
"""
|
|
81
|
+
Specifies a comment for the secret.
|
|
82
|
+
"""
|
|
83
|
+
return pulumi.get(self, "comment")
|
|
84
|
+
|
|
85
|
+
@comment.setter
|
|
86
|
+
def comment(self, value: Optional[pulumi.Input[str]]):
|
|
87
|
+
pulumi.set(self, "comment", value)
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
@pulumi.getter
|
|
91
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
92
|
+
"""
|
|
93
|
+
String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
94
|
+
"""
|
|
95
|
+
return pulumi.get(self, "name")
|
|
96
|
+
|
|
97
|
+
@name.setter
|
|
98
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
99
|
+
pulumi.set(self, "name", value)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
@pulumi.input_type
|
|
103
|
+
class _SecretWithGenericStringState:
|
|
104
|
+
def __init__(__self__, *,
|
|
105
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
106
|
+
database: Optional[pulumi.Input[str]] = None,
|
|
107
|
+
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['SecretWithGenericStringDescribeOutputArgs']]]] = None,
|
|
108
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
109
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
110
|
+
schema: Optional[pulumi.Input[str]] = None,
|
|
111
|
+
secret_string: Optional[pulumi.Input[str]] = None,
|
|
112
|
+
secret_type: Optional[pulumi.Input[str]] = None,
|
|
113
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['SecretWithGenericStringShowOutputArgs']]]] = None):
|
|
114
|
+
"""
|
|
115
|
+
Input properties used for looking up and filtering SecretWithGenericString resources.
|
|
116
|
+
:param pulumi.Input[str] comment: Specifies a comment for the secret.
|
|
117
|
+
:param pulumi.Input[str] database: The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
118
|
+
:param pulumi.Input[Sequence[pulumi.Input['SecretWithGenericStringDescribeOutputArgs']]] describe_outputs: Outputs the result of `DESCRIBE SECRET` for the given secret.
|
|
119
|
+
:param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
120
|
+
:param pulumi.Input[str] name: String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
121
|
+
:param pulumi.Input[str] schema: The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
122
|
+
:param pulumi.Input[str] secret_type: Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
|
|
123
|
+
:param pulumi.Input[Sequence[pulumi.Input['SecretWithGenericStringShowOutputArgs']]] show_outputs: Outputs the result of `SHOW SECRETS` for the given secret.
|
|
124
|
+
"""
|
|
125
|
+
if comment is not None:
|
|
126
|
+
pulumi.set(__self__, "comment", comment)
|
|
127
|
+
if database is not None:
|
|
128
|
+
pulumi.set(__self__, "database", database)
|
|
129
|
+
if describe_outputs is not None:
|
|
130
|
+
pulumi.set(__self__, "describe_outputs", describe_outputs)
|
|
131
|
+
if fully_qualified_name is not None:
|
|
132
|
+
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
133
|
+
if name is not None:
|
|
134
|
+
pulumi.set(__self__, "name", name)
|
|
135
|
+
if schema is not None:
|
|
136
|
+
pulumi.set(__self__, "schema", schema)
|
|
137
|
+
if secret_string is not None:
|
|
138
|
+
pulumi.set(__self__, "secret_string", secret_string)
|
|
139
|
+
if secret_type is not None:
|
|
140
|
+
pulumi.set(__self__, "secret_type", secret_type)
|
|
141
|
+
if show_outputs is not None:
|
|
142
|
+
pulumi.set(__self__, "show_outputs", show_outputs)
|
|
143
|
+
|
|
144
|
+
@property
|
|
145
|
+
@pulumi.getter
|
|
146
|
+
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
147
|
+
"""
|
|
148
|
+
Specifies a comment for the secret.
|
|
149
|
+
"""
|
|
150
|
+
return pulumi.get(self, "comment")
|
|
151
|
+
|
|
152
|
+
@comment.setter
|
|
153
|
+
def comment(self, value: Optional[pulumi.Input[str]]):
|
|
154
|
+
pulumi.set(self, "comment", value)
|
|
155
|
+
|
|
156
|
+
@property
|
|
157
|
+
@pulumi.getter
|
|
158
|
+
def database(self) -> Optional[pulumi.Input[str]]:
|
|
159
|
+
"""
|
|
160
|
+
The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
161
|
+
"""
|
|
162
|
+
return pulumi.get(self, "database")
|
|
163
|
+
|
|
164
|
+
@database.setter
|
|
165
|
+
def database(self, value: Optional[pulumi.Input[str]]):
|
|
166
|
+
pulumi.set(self, "database", value)
|
|
167
|
+
|
|
168
|
+
@property
|
|
169
|
+
@pulumi.getter(name="describeOutputs")
|
|
170
|
+
def describe_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SecretWithGenericStringDescribeOutputArgs']]]]:
|
|
171
|
+
"""
|
|
172
|
+
Outputs the result of `DESCRIBE SECRET` for the given secret.
|
|
173
|
+
"""
|
|
174
|
+
return pulumi.get(self, "describe_outputs")
|
|
175
|
+
|
|
176
|
+
@describe_outputs.setter
|
|
177
|
+
def describe_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SecretWithGenericStringDescribeOutputArgs']]]]):
|
|
178
|
+
pulumi.set(self, "describe_outputs", value)
|
|
179
|
+
|
|
180
|
+
@property
|
|
181
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
182
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
183
|
+
"""
|
|
184
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
185
|
+
"""
|
|
186
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
187
|
+
|
|
188
|
+
@fully_qualified_name.setter
|
|
189
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
190
|
+
pulumi.set(self, "fully_qualified_name", value)
|
|
191
|
+
|
|
192
|
+
@property
|
|
193
|
+
@pulumi.getter
|
|
194
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
195
|
+
"""
|
|
196
|
+
String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
197
|
+
"""
|
|
198
|
+
return pulumi.get(self, "name")
|
|
199
|
+
|
|
200
|
+
@name.setter
|
|
201
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
202
|
+
pulumi.set(self, "name", value)
|
|
203
|
+
|
|
204
|
+
@property
|
|
205
|
+
@pulumi.getter
|
|
206
|
+
def schema(self) -> Optional[pulumi.Input[str]]:
|
|
207
|
+
"""
|
|
208
|
+
The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
209
|
+
"""
|
|
210
|
+
return pulumi.get(self, "schema")
|
|
211
|
+
|
|
212
|
+
@schema.setter
|
|
213
|
+
def schema(self, value: Optional[pulumi.Input[str]]):
|
|
214
|
+
pulumi.set(self, "schema", value)
|
|
215
|
+
|
|
216
|
+
@property
|
|
217
|
+
@pulumi.getter(name="secretString")
|
|
218
|
+
def secret_string(self) -> Optional[pulumi.Input[str]]:
|
|
219
|
+
return pulumi.get(self, "secret_string")
|
|
220
|
+
|
|
221
|
+
@secret_string.setter
|
|
222
|
+
def secret_string(self, value: Optional[pulumi.Input[str]]):
|
|
223
|
+
pulumi.set(self, "secret_string", value)
|
|
224
|
+
|
|
225
|
+
@property
|
|
226
|
+
@pulumi.getter(name="secretType")
|
|
227
|
+
def secret_type(self) -> Optional[pulumi.Input[str]]:
|
|
228
|
+
"""
|
|
229
|
+
Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
|
|
230
|
+
"""
|
|
231
|
+
return pulumi.get(self, "secret_type")
|
|
232
|
+
|
|
233
|
+
@secret_type.setter
|
|
234
|
+
def secret_type(self, value: Optional[pulumi.Input[str]]):
|
|
235
|
+
pulumi.set(self, "secret_type", value)
|
|
236
|
+
|
|
237
|
+
@property
|
|
238
|
+
@pulumi.getter(name="showOutputs")
|
|
239
|
+
def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SecretWithGenericStringShowOutputArgs']]]]:
|
|
240
|
+
"""
|
|
241
|
+
Outputs the result of `SHOW SECRETS` for the given secret.
|
|
242
|
+
"""
|
|
243
|
+
return pulumi.get(self, "show_outputs")
|
|
244
|
+
|
|
245
|
+
@show_outputs.setter
|
|
246
|
+
def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SecretWithGenericStringShowOutputArgs']]]]):
|
|
247
|
+
pulumi.set(self, "show_outputs", value)
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
class SecretWithGenericString(pulumi.CustomResource):
|
|
251
|
+
@overload
|
|
252
|
+
def __init__(__self__,
|
|
253
|
+
resource_name: str,
|
|
254
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
255
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
256
|
+
database: Optional[pulumi.Input[str]] = None,
|
|
257
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
258
|
+
schema: Optional[pulumi.Input[str]] = None,
|
|
259
|
+
secret_string: Optional[pulumi.Input[str]] = None,
|
|
260
|
+
__props__=None):
|
|
261
|
+
"""
|
|
262
|
+
## Import
|
|
263
|
+
|
|
264
|
+
```sh
|
|
265
|
+
$ pulumi import snowflake:index/secretWithGenericString:SecretWithGenericString example '"<database_name>"."<schema_name>"."<secret_name>"'
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
:param str resource_name: The name of the resource.
|
|
269
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
270
|
+
:param pulumi.Input[str] comment: Specifies a comment for the secret.
|
|
271
|
+
:param pulumi.Input[str] database: The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
272
|
+
:param pulumi.Input[str] name: String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
273
|
+
:param pulumi.Input[str] schema: The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
274
|
+
"""
|
|
275
|
+
...
|
|
276
|
+
@overload
|
|
277
|
+
def __init__(__self__,
|
|
278
|
+
resource_name: str,
|
|
279
|
+
args: SecretWithGenericStringArgs,
|
|
280
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
281
|
+
"""
|
|
282
|
+
## Import
|
|
283
|
+
|
|
284
|
+
```sh
|
|
285
|
+
$ pulumi import snowflake:index/secretWithGenericString:SecretWithGenericString example '"<database_name>"."<schema_name>"."<secret_name>"'
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
:param str resource_name: The name of the resource.
|
|
289
|
+
:param SecretWithGenericStringArgs args: The arguments to use to populate this resource's properties.
|
|
290
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
291
|
+
"""
|
|
292
|
+
...
|
|
293
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
294
|
+
resource_args, opts = _utilities.get_resource_args_opts(SecretWithGenericStringArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
295
|
+
if resource_args is not None:
|
|
296
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
297
|
+
else:
|
|
298
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
299
|
+
|
|
300
|
+
def _internal_init(__self__,
|
|
301
|
+
resource_name: str,
|
|
302
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
303
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
304
|
+
database: Optional[pulumi.Input[str]] = None,
|
|
305
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
306
|
+
schema: Optional[pulumi.Input[str]] = None,
|
|
307
|
+
secret_string: Optional[pulumi.Input[str]] = None,
|
|
308
|
+
__props__=None):
|
|
309
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
310
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
311
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
312
|
+
if opts.id is None:
|
|
313
|
+
if __props__ is not None:
|
|
314
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
315
|
+
__props__ = SecretWithGenericStringArgs.__new__(SecretWithGenericStringArgs)
|
|
316
|
+
|
|
317
|
+
__props__.__dict__["comment"] = comment
|
|
318
|
+
if database is None and not opts.urn:
|
|
319
|
+
raise TypeError("Missing required property 'database'")
|
|
320
|
+
__props__.__dict__["database"] = database
|
|
321
|
+
__props__.__dict__["name"] = name
|
|
322
|
+
if schema is None and not opts.urn:
|
|
323
|
+
raise TypeError("Missing required property 'schema'")
|
|
324
|
+
__props__.__dict__["schema"] = schema
|
|
325
|
+
if secret_string is None and not opts.urn:
|
|
326
|
+
raise TypeError("Missing required property 'secret_string'")
|
|
327
|
+
__props__.__dict__["secret_string"] = None if secret_string is None else pulumi.Output.secret(secret_string)
|
|
328
|
+
__props__.__dict__["describe_outputs"] = None
|
|
329
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
330
|
+
__props__.__dict__["secret_type"] = None
|
|
331
|
+
__props__.__dict__["show_outputs"] = None
|
|
332
|
+
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["secretString"])
|
|
333
|
+
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
|
334
|
+
super(SecretWithGenericString, __self__).__init__(
|
|
335
|
+
'snowflake:index/secretWithGenericString:SecretWithGenericString',
|
|
336
|
+
resource_name,
|
|
337
|
+
__props__,
|
|
338
|
+
opts)
|
|
339
|
+
|
|
340
|
+
@staticmethod
|
|
341
|
+
def get(resource_name: str,
|
|
342
|
+
id: pulumi.Input[str],
|
|
343
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
344
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
345
|
+
database: Optional[pulumi.Input[str]] = None,
|
|
346
|
+
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SecretWithGenericStringDescribeOutputArgs', 'SecretWithGenericStringDescribeOutputArgsDict']]]]] = None,
|
|
347
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
348
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
349
|
+
schema: Optional[pulumi.Input[str]] = None,
|
|
350
|
+
secret_string: Optional[pulumi.Input[str]] = None,
|
|
351
|
+
secret_type: Optional[pulumi.Input[str]] = None,
|
|
352
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SecretWithGenericStringShowOutputArgs', 'SecretWithGenericStringShowOutputArgsDict']]]]] = None) -> 'SecretWithGenericString':
|
|
353
|
+
"""
|
|
354
|
+
Get an existing SecretWithGenericString resource's state with the given name, id, and optional extra
|
|
355
|
+
properties used to qualify the lookup.
|
|
356
|
+
|
|
357
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
358
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
359
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
360
|
+
:param pulumi.Input[str] comment: Specifies a comment for the secret.
|
|
361
|
+
:param pulumi.Input[str] database: The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
362
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['SecretWithGenericStringDescribeOutputArgs', 'SecretWithGenericStringDescribeOutputArgsDict']]]] describe_outputs: Outputs the result of `DESCRIBE SECRET` for the given secret.
|
|
363
|
+
:param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
364
|
+
:param pulumi.Input[str] name: String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
365
|
+
:param pulumi.Input[str] schema: The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
366
|
+
:param pulumi.Input[str] secret_type: Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
|
|
367
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['SecretWithGenericStringShowOutputArgs', 'SecretWithGenericStringShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW SECRETS` for the given secret.
|
|
368
|
+
"""
|
|
369
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
370
|
+
|
|
371
|
+
__props__ = _SecretWithGenericStringState.__new__(_SecretWithGenericStringState)
|
|
372
|
+
|
|
373
|
+
__props__.__dict__["comment"] = comment
|
|
374
|
+
__props__.__dict__["database"] = database
|
|
375
|
+
__props__.__dict__["describe_outputs"] = describe_outputs
|
|
376
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
377
|
+
__props__.__dict__["name"] = name
|
|
378
|
+
__props__.__dict__["schema"] = schema
|
|
379
|
+
__props__.__dict__["secret_string"] = secret_string
|
|
380
|
+
__props__.__dict__["secret_type"] = secret_type
|
|
381
|
+
__props__.__dict__["show_outputs"] = show_outputs
|
|
382
|
+
return SecretWithGenericString(resource_name, opts=opts, __props__=__props__)
|
|
383
|
+
|
|
384
|
+
@property
|
|
385
|
+
@pulumi.getter
|
|
386
|
+
def comment(self) -> pulumi.Output[Optional[str]]:
|
|
387
|
+
"""
|
|
388
|
+
Specifies a comment for the secret.
|
|
389
|
+
"""
|
|
390
|
+
return pulumi.get(self, "comment")
|
|
391
|
+
|
|
392
|
+
@property
|
|
393
|
+
@pulumi.getter
|
|
394
|
+
def database(self) -> pulumi.Output[str]:
|
|
395
|
+
"""
|
|
396
|
+
The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
397
|
+
"""
|
|
398
|
+
return pulumi.get(self, "database")
|
|
399
|
+
|
|
400
|
+
@property
|
|
401
|
+
@pulumi.getter(name="describeOutputs")
|
|
402
|
+
def describe_outputs(self) -> pulumi.Output[Sequence['outputs.SecretWithGenericStringDescribeOutput']]:
|
|
403
|
+
"""
|
|
404
|
+
Outputs the result of `DESCRIBE SECRET` for the given secret.
|
|
405
|
+
"""
|
|
406
|
+
return pulumi.get(self, "describe_outputs")
|
|
407
|
+
|
|
408
|
+
@property
|
|
409
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
410
|
+
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
411
|
+
"""
|
|
412
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
413
|
+
"""
|
|
414
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
415
|
+
|
|
416
|
+
@property
|
|
417
|
+
@pulumi.getter
|
|
418
|
+
def name(self) -> pulumi.Output[str]:
|
|
419
|
+
"""
|
|
420
|
+
String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
421
|
+
"""
|
|
422
|
+
return pulumi.get(self, "name")
|
|
423
|
+
|
|
424
|
+
@property
|
|
425
|
+
@pulumi.getter
|
|
426
|
+
def schema(self) -> pulumi.Output[str]:
|
|
427
|
+
"""
|
|
428
|
+
The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
429
|
+
"""
|
|
430
|
+
return pulumi.get(self, "schema")
|
|
431
|
+
|
|
432
|
+
@property
|
|
433
|
+
@pulumi.getter(name="secretString")
|
|
434
|
+
def secret_string(self) -> pulumi.Output[str]:
|
|
435
|
+
return pulumi.get(self, "secret_string")
|
|
436
|
+
|
|
437
|
+
@property
|
|
438
|
+
@pulumi.getter(name="secretType")
|
|
439
|
+
def secret_type(self) -> pulumi.Output[str]:
|
|
440
|
+
"""
|
|
441
|
+
Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
|
|
442
|
+
"""
|
|
443
|
+
return pulumi.get(self, "secret_type")
|
|
444
|
+
|
|
445
|
+
@property
|
|
446
|
+
@pulumi.getter(name="showOutputs")
|
|
447
|
+
def show_outputs(self) -> pulumi.Output[Sequence['outputs.SecretWithGenericStringShowOutput']]:
|
|
448
|
+
"""
|
|
449
|
+
Outputs the result of `SHOW SECRETS` for the given secret.
|
|
450
|
+
"""
|
|
451
|
+
return pulumi.get(self, "show_outputs")
|
|
452
|
+
|
pulumi_snowflake/sequence.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = ['SequenceArgs', 'Sequence']
|
|
@@ -128,7 +133,7 @@ class _SequenceState:
|
|
|
128
133
|
Input properties used for looking up and filtering Sequence resources.
|
|
129
134
|
:param pulumi.Input[str] comment: Specifies a comment for the sequence.
|
|
130
135
|
:param pulumi.Input[str] database: The database in which to create the sequence. Don't use the | character.
|
|
131
|
-
:param pulumi.Input[str] fully_qualified_name:
|
|
136
|
+
:param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
132
137
|
:param pulumi.Input[int] increment: The amount the sequence will increase by each time it is used
|
|
133
138
|
:param pulumi.Input[str] name: Specifies the name for the sequence.
|
|
134
139
|
:param pulumi.Input[int] next_value: The increment sequence interval.
|
|
@@ -180,7 +185,7 @@ class _SequenceState:
|
|
|
180
185
|
@pulumi.getter(name="fullyQualifiedName")
|
|
181
186
|
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
182
187
|
"""
|
|
183
|
-
|
|
188
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
184
189
|
"""
|
|
185
190
|
return pulumi.get(self, "fully_qualified_name")
|
|
186
191
|
|
|
@@ -262,19 +267,6 @@ class Sequence(pulumi.CustomResource):
|
|
|
262
267
|
schema: Optional[pulumi.Input[str]] = None,
|
|
263
268
|
__props__=None):
|
|
264
269
|
"""
|
|
265
|
-
## Example Usage
|
|
266
|
-
|
|
267
|
-
```python
|
|
268
|
-
import pulumi
|
|
269
|
-
import pulumi_snowflake as snowflake
|
|
270
|
-
|
|
271
|
-
database = snowflake.Database("database")
|
|
272
|
-
test_schema = snowflake.Schema("testSchema", database=snowflake_database["test_database"]["name"])
|
|
273
|
-
test_sequence = snowflake.Sequence("testSequence",
|
|
274
|
-
database=snowflake_database["test_database"]["name"],
|
|
275
|
-
schema=test_schema.name)
|
|
276
|
-
```
|
|
277
|
-
|
|
278
270
|
## Import
|
|
279
271
|
|
|
280
272
|
format is database name | schema name | sequence name
|
|
@@ -299,19 +291,6 @@ class Sequence(pulumi.CustomResource):
|
|
|
299
291
|
args: SequenceArgs,
|
|
300
292
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
301
293
|
"""
|
|
302
|
-
## Example Usage
|
|
303
|
-
|
|
304
|
-
```python
|
|
305
|
-
import pulumi
|
|
306
|
-
import pulumi_snowflake as snowflake
|
|
307
|
-
|
|
308
|
-
database = snowflake.Database("database")
|
|
309
|
-
test_schema = snowflake.Schema("testSchema", database=snowflake_database["test_database"]["name"])
|
|
310
|
-
test_sequence = snowflake.Sequence("testSequence",
|
|
311
|
-
database=snowflake_database["test_database"]["name"],
|
|
312
|
-
schema=test_schema.name)
|
|
313
|
-
```
|
|
314
|
-
|
|
315
294
|
## Import
|
|
316
295
|
|
|
317
296
|
format is database name | schema name | sequence name
|
|
@@ -389,7 +368,7 @@ class Sequence(pulumi.CustomResource):
|
|
|
389
368
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
390
369
|
:param pulumi.Input[str] comment: Specifies a comment for the sequence.
|
|
391
370
|
:param pulumi.Input[str] database: The database in which to create the sequence. Don't use the | character.
|
|
392
|
-
:param pulumi.Input[str] fully_qualified_name:
|
|
371
|
+
:param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
393
372
|
:param pulumi.Input[int] increment: The amount the sequence will increase by each time it is used
|
|
394
373
|
:param pulumi.Input[str] name: Specifies the name for the sequence.
|
|
395
374
|
:param pulumi.Input[int] next_value: The increment sequence interval.
|
|
@@ -430,7 +409,7 @@ class Sequence(pulumi.CustomResource):
|
|
|
430
409
|
@pulumi.getter(name="fullyQualifiedName")
|
|
431
410
|
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
432
411
|
"""
|
|
433
|
-
|
|
412
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
434
413
|
"""
|
|
435
414
|
return pulumi.get(self, "fully_qualified_name")
|
|
436
415
|
|