pulumi-snowflake 0.50.3a1710160126__py3-none-any.whl → 1.2.0a1736849992__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 +52857 -1665
- pulumi_snowflake/_utilities.py +41 -5
- pulumi_snowflake/account.py +188 -218
- pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
- pulumi_snowflake/account_parameter.py +21 -48
- pulumi_snowflake/account_password_policy_attachment.py +7 -32
- pulumi_snowflake/account_role.py +250 -0
- pulumi_snowflake/alert.py +38 -47
- 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 +33 -52
- 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 -213
- pulumi_snowflake/database_role.py +81 -44
- pulumi_snowflake/dynamic_table.py +42 -49
- pulumi_snowflake/email_notification_integration.py +33 -28
- pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -39
- pulumi_snowflake/external_function.py +54 -75
- pulumi_snowflake/external_oauth_integration.py +593 -542
- pulumi_snowflake/external_table.py +67 -90
- pulumi_snowflake/external_volume.py +382 -0
- pulumi_snowflake/failover_group.py +57 -98
- pulumi_snowflake/file_format.py +33 -28
- 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 -9
- pulumi_snowflake/get_connections.py +109 -0
- pulumi_snowflake/get_cortex_search_services.py +216 -0
- pulumi_snowflake/get_current_account.py +24 -13
- pulumi_snowflake/get_current_role.py +14 -7
- pulumi_snowflake/get_database.py +25 -9
- pulumi_snowflake/get_database_role.py +162 -0
- pulumi_snowflake/get_database_roles.py +79 -47
- pulumi_snowflake/get_databases.py +91 -73
- pulumi_snowflake/get_dynamic_tables.py +36 -19
- pulumi_snowflake/get_external_functions.py +28 -9
- pulumi_snowflake/get_external_tables.py +28 -9
- pulumi_snowflake/get_failover_groups.py +18 -7
- pulumi_snowflake/get_file_formats.py +28 -9
- pulumi_snowflake/get_functions.py +28 -9
- pulumi_snowflake/get_grants.py +207 -84
- pulumi_snowflake/get_masking_policies.py +91 -51
- pulumi_snowflake/get_materialized_views.py +28 -9
- pulumi_snowflake/get_network_policies.py +129 -0
- pulumi_snowflake/get_parameters.py +38 -15
- pulumi_snowflake/get_pipes.py +28 -9
- pulumi_snowflake/get_procedures.py +28 -9
- pulumi_snowflake/get_resource_monitors.py +37 -24
- pulumi_snowflake/get_row_access_policies.py +91 -51
- pulumi_snowflake/get_schemas.py +145 -41
- pulumi_snowflake/get_secrets.py +200 -0
- pulumi_snowflake/get_security_integrations.py +129 -0
- pulumi_snowflake/get_sequences.py +28 -9
- pulumi_snowflake/get_shares.py +18 -9
- pulumi_snowflake/get_stages.py +28 -9
- pulumi_snowflake/get_storage_integrations.py +16 -9
- pulumi_snowflake/get_streamlits.py +170 -0
- pulumi_snowflake/get_streams.py +114 -54
- pulumi_snowflake/get_system_generate_scim_access_token.py +18 -9
- pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
- pulumi_snowflake/get_system_get_private_link_config.py +120 -5
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
- pulumi_snowflake/get_tables.py +28 -9
- pulumi_snowflake/get_tags.py +130 -0
- pulumi_snowflake/get_tasks.py +134 -54
- pulumi_snowflake/get_users.py +116 -44
- pulumi_snowflake/get_views.py +114 -54
- pulumi_snowflake/get_warehouses.py +79 -26
- pulumi_snowflake/grant_account_role.py +28 -75
- pulumi_snowflake/grant_application_role.py +257 -0
- pulumi_snowflake/grant_database_role.py +35 -94
- 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 -383
- pulumi_snowflake/grant_privileges_to_share.py +96 -44
- pulumi_snowflake/legacy_service_user.py +3670 -0
- pulumi_snowflake/managed_account.py +40 -11
- pulumi_snowflake/masking_policy.py +213 -310
- pulumi_snowflake/materialized_view.py +62 -71
- pulumi_snowflake/network_policy.py +217 -61
- pulumi_snowflake/network_policy_attachment.py +5 -34
- pulumi_snowflake/network_rule.py +473 -0
- pulumi_snowflake/notification_integration.py +49 -84
- pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
- pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -192
- pulumi_snowflake/object_parameter.py +10 -101
- pulumi_snowflake/outputs.py +49200 -2928
- pulumi_snowflake/password_policy.py +41 -28
- pulumi_snowflake/pipe.py +33 -4
- 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 -327
- pulumi_snowflake/row_access_policy.py +200 -149
- pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -299
- pulumi_snowflake/schema.py +949 -178
- pulumi_snowflake/scim_integration.py +286 -109
- 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 -34
- pulumi_snowflake/service_user.py +3585 -0
- pulumi_snowflake/share.py +33 -28
- pulumi_snowflake/shared_database.py +939 -0
- pulumi_snowflake/stage.py +95 -84
- pulumi_snowflake/storage_integration.py +46 -4
- 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 -97
- pulumi_snowflake/table_column_masking_policy_application.py +7 -14
- pulumi_snowflake/table_constraint.py +29 -172
- pulumi_snowflake/tag.py +142 -74
- pulumi_snowflake/tag_association.py +40 -215
- pulumi_snowflake/task.py +3048 -418
- pulumi_snowflake/user.py +3351 -384
- pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
- pulumi_snowflake/user_password_policy_attachment.py +5 -4
- pulumi_snowflake/user_public_keys.py +5 -0
- pulumi_snowflake/view.py +466 -215
- pulumi_snowflake/warehouse.py +184 -168
- {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736849992.dist-info}/METADATA +7 -6
- pulumi_snowflake-1.2.0a1736849992.dist-info/RECORD +148 -0
- {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736849992.dist-info}/WHEEL +1 -1
- pulumi_snowflake/account_grant.py +0 -343
- pulumi_snowflake/database_grant.py +0 -495
- pulumi_snowflake/external_table_grant.py +0 -690
- pulumi_snowflake/failover_group_grant.py +0 -388
- pulumi_snowflake/file_format_grant.py +0 -635
- pulumi_snowflake/function.py +0 -872
- pulumi_snowflake/function_grant.py +0 -745
- pulumi_snowflake/get_role.py +0 -121
- pulumi_snowflake/get_roles.py +0 -120
- pulumi_snowflake/grant_privileges_to_role.py +0 -825
- pulumi_snowflake/integration_grant.py +0 -440
- pulumi_snowflake/masking_policy_grant.py +0 -542
- pulumi_snowflake/materialized_view_grant.py +0 -689
- pulumi_snowflake/pipe_grant.py +0 -587
- pulumi_snowflake/procedure.py +0 -887
- pulumi_snowflake/procedure_grant.py +0 -745
- pulumi_snowflake/resource_monitor_grant.py +0 -387
- pulumi_snowflake/role.py +0 -273
- pulumi_snowflake/role_grants.py +0 -352
- pulumi_snowflake/role_ownership_grant.py +0 -338
- pulumi_snowflake/row_access_policy_grant.py +0 -540
- pulumi_snowflake/schema_grant.py +0 -647
- pulumi_snowflake/sequence_grant.py +0 -635
- pulumi_snowflake/session_parameter.py +0 -332
- pulumi_snowflake/stage_grant.py +0 -635
- pulumi_snowflake/stream.py +0 -614
- pulumi_snowflake/stream_grant.py +0 -635
- pulumi_snowflake/table_grant.py +0 -677
- pulumi_snowflake/tag_grant.py +0 -532
- pulumi_snowflake/tag_masking_policy_association.py +0 -210
- pulumi_snowflake/task_grant.py +0 -635
- pulumi_snowflake/user_grant.py +0 -394
- pulumi_snowflake/user_ownership_grant.py +0 -286
- pulumi_snowflake/view_grant.py +0 -705
- pulumi_snowflake/warehouse_grant.py +0 -440
- pulumi_snowflake-0.50.3a1710160126.dist-info/RECORD +0 -136
- {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736849992.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,500 @@
|
|
|
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__ = ['SecretWithBasicAuthenticationArgs', 'SecretWithBasicAuthentication']
|
|
20
|
+
|
|
21
|
+
@pulumi.input_type
|
|
22
|
+
class SecretWithBasicAuthenticationArgs:
|
|
23
|
+
def __init__(__self__, *,
|
|
24
|
+
database: pulumi.Input[str],
|
|
25
|
+
password: pulumi.Input[str],
|
|
26
|
+
schema: pulumi.Input[str],
|
|
27
|
+
username: pulumi.Input[str],
|
|
28
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
29
|
+
name: Optional[pulumi.Input[str]] = None):
|
|
30
|
+
"""
|
|
31
|
+
The set of arguments for constructing a SecretWithBasicAuthentication resource.
|
|
32
|
+
: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: `|`, `.`, `"`.
|
|
33
|
+
: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: `|`, `.`, `"`.
|
|
34
|
+
:param pulumi.Input[str] username: Specifies the username value to store in the secret.
|
|
35
|
+
:param pulumi.Input[str] comment: Specifies a comment for the secret.
|
|
36
|
+
: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: `|`, `.`, `"`.
|
|
37
|
+
"""
|
|
38
|
+
pulumi.set(__self__, "database", database)
|
|
39
|
+
pulumi.set(__self__, "password", password)
|
|
40
|
+
pulumi.set(__self__, "schema", schema)
|
|
41
|
+
pulumi.set(__self__, "username", username)
|
|
42
|
+
if comment is not None:
|
|
43
|
+
pulumi.set(__self__, "comment", comment)
|
|
44
|
+
if name is not None:
|
|
45
|
+
pulumi.set(__self__, "name", name)
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
@pulumi.getter
|
|
49
|
+
def database(self) -> pulumi.Input[str]:
|
|
50
|
+
"""
|
|
51
|
+
The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
52
|
+
"""
|
|
53
|
+
return pulumi.get(self, "database")
|
|
54
|
+
|
|
55
|
+
@database.setter
|
|
56
|
+
def database(self, value: pulumi.Input[str]):
|
|
57
|
+
pulumi.set(self, "database", value)
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
@pulumi.getter
|
|
61
|
+
def password(self) -> pulumi.Input[str]:
|
|
62
|
+
return pulumi.get(self, "password")
|
|
63
|
+
|
|
64
|
+
@password.setter
|
|
65
|
+
def password(self, value: pulumi.Input[str]):
|
|
66
|
+
pulumi.set(self, "password", value)
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
@pulumi.getter
|
|
70
|
+
def schema(self) -> pulumi.Input[str]:
|
|
71
|
+
"""
|
|
72
|
+
The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
73
|
+
"""
|
|
74
|
+
return pulumi.get(self, "schema")
|
|
75
|
+
|
|
76
|
+
@schema.setter
|
|
77
|
+
def schema(self, value: pulumi.Input[str]):
|
|
78
|
+
pulumi.set(self, "schema", value)
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
@pulumi.getter
|
|
82
|
+
def username(self) -> pulumi.Input[str]:
|
|
83
|
+
"""
|
|
84
|
+
Specifies the username value to store in the secret.
|
|
85
|
+
"""
|
|
86
|
+
return pulumi.get(self, "username")
|
|
87
|
+
|
|
88
|
+
@username.setter
|
|
89
|
+
def username(self, value: pulumi.Input[str]):
|
|
90
|
+
pulumi.set(self, "username", value)
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
@pulumi.getter
|
|
94
|
+
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
95
|
+
"""
|
|
96
|
+
Specifies a comment for the secret.
|
|
97
|
+
"""
|
|
98
|
+
return pulumi.get(self, "comment")
|
|
99
|
+
|
|
100
|
+
@comment.setter
|
|
101
|
+
def comment(self, value: Optional[pulumi.Input[str]]):
|
|
102
|
+
pulumi.set(self, "comment", value)
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
@pulumi.getter
|
|
106
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
107
|
+
"""
|
|
108
|
+
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: `|`, `.`, `"`.
|
|
109
|
+
"""
|
|
110
|
+
return pulumi.get(self, "name")
|
|
111
|
+
|
|
112
|
+
@name.setter
|
|
113
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
114
|
+
pulumi.set(self, "name", value)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
@pulumi.input_type
|
|
118
|
+
class _SecretWithBasicAuthenticationState:
|
|
119
|
+
def __init__(__self__, *,
|
|
120
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
121
|
+
database: Optional[pulumi.Input[str]] = None,
|
|
122
|
+
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['SecretWithBasicAuthenticationDescribeOutputArgs']]]] = None,
|
|
123
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
124
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
125
|
+
password: Optional[pulumi.Input[str]] = None,
|
|
126
|
+
schema: Optional[pulumi.Input[str]] = None,
|
|
127
|
+
secret_type: Optional[pulumi.Input[str]] = None,
|
|
128
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['SecretWithBasicAuthenticationShowOutputArgs']]]] = None,
|
|
129
|
+
username: Optional[pulumi.Input[str]] = None):
|
|
130
|
+
"""
|
|
131
|
+
Input properties used for looking up and filtering SecretWithBasicAuthentication resources.
|
|
132
|
+
:param pulumi.Input[str] comment: Specifies a comment for the secret.
|
|
133
|
+
: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: `|`, `.`, `"`.
|
|
134
|
+
:param pulumi.Input[Sequence[pulumi.Input['SecretWithBasicAuthenticationDescribeOutputArgs']]] describe_outputs: Outputs the result of `DESCRIBE SECRET` for the given secret.
|
|
135
|
+
: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).
|
|
136
|
+
: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: `|`, `.`, `"`.
|
|
137
|
+
: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: `|`, `.`, `"`.
|
|
138
|
+
: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.
|
|
139
|
+
:param pulumi.Input[Sequence[pulumi.Input['SecretWithBasicAuthenticationShowOutputArgs']]] show_outputs: Outputs the result of `SHOW SECRETS` for the given secret.
|
|
140
|
+
:param pulumi.Input[str] username: Specifies the username value to store in the secret.
|
|
141
|
+
"""
|
|
142
|
+
if comment is not None:
|
|
143
|
+
pulumi.set(__self__, "comment", comment)
|
|
144
|
+
if database is not None:
|
|
145
|
+
pulumi.set(__self__, "database", database)
|
|
146
|
+
if describe_outputs is not None:
|
|
147
|
+
pulumi.set(__self__, "describe_outputs", describe_outputs)
|
|
148
|
+
if fully_qualified_name is not None:
|
|
149
|
+
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
150
|
+
if name is not None:
|
|
151
|
+
pulumi.set(__self__, "name", name)
|
|
152
|
+
if password is not None:
|
|
153
|
+
pulumi.set(__self__, "password", password)
|
|
154
|
+
if schema is not None:
|
|
155
|
+
pulumi.set(__self__, "schema", schema)
|
|
156
|
+
if secret_type is not None:
|
|
157
|
+
pulumi.set(__self__, "secret_type", secret_type)
|
|
158
|
+
if show_outputs is not None:
|
|
159
|
+
pulumi.set(__self__, "show_outputs", show_outputs)
|
|
160
|
+
if username is not None:
|
|
161
|
+
pulumi.set(__self__, "username", username)
|
|
162
|
+
|
|
163
|
+
@property
|
|
164
|
+
@pulumi.getter
|
|
165
|
+
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
166
|
+
"""
|
|
167
|
+
Specifies a comment for the secret.
|
|
168
|
+
"""
|
|
169
|
+
return pulumi.get(self, "comment")
|
|
170
|
+
|
|
171
|
+
@comment.setter
|
|
172
|
+
def comment(self, value: Optional[pulumi.Input[str]]):
|
|
173
|
+
pulumi.set(self, "comment", value)
|
|
174
|
+
|
|
175
|
+
@property
|
|
176
|
+
@pulumi.getter
|
|
177
|
+
def database(self) -> Optional[pulumi.Input[str]]:
|
|
178
|
+
"""
|
|
179
|
+
The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
180
|
+
"""
|
|
181
|
+
return pulumi.get(self, "database")
|
|
182
|
+
|
|
183
|
+
@database.setter
|
|
184
|
+
def database(self, value: Optional[pulumi.Input[str]]):
|
|
185
|
+
pulumi.set(self, "database", value)
|
|
186
|
+
|
|
187
|
+
@property
|
|
188
|
+
@pulumi.getter(name="describeOutputs")
|
|
189
|
+
def describe_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SecretWithBasicAuthenticationDescribeOutputArgs']]]]:
|
|
190
|
+
"""
|
|
191
|
+
Outputs the result of `DESCRIBE SECRET` for the given secret.
|
|
192
|
+
"""
|
|
193
|
+
return pulumi.get(self, "describe_outputs")
|
|
194
|
+
|
|
195
|
+
@describe_outputs.setter
|
|
196
|
+
def describe_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SecretWithBasicAuthenticationDescribeOutputArgs']]]]):
|
|
197
|
+
pulumi.set(self, "describe_outputs", value)
|
|
198
|
+
|
|
199
|
+
@property
|
|
200
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
201
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
202
|
+
"""
|
|
203
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
204
|
+
"""
|
|
205
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
206
|
+
|
|
207
|
+
@fully_qualified_name.setter
|
|
208
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
209
|
+
pulumi.set(self, "fully_qualified_name", value)
|
|
210
|
+
|
|
211
|
+
@property
|
|
212
|
+
@pulumi.getter
|
|
213
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
214
|
+
"""
|
|
215
|
+
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: `|`, `.`, `"`.
|
|
216
|
+
"""
|
|
217
|
+
return pulumi.get(self, "name")
|
|
218
|
+
|
|
219
|
+
@name.setter
|
|
220
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
221
|
+
pulumi.set(self, "name", value)
|
|
222
|
+
|
|
223
|
+
@property
|
|
224
|
+
@pulumi.getter
|
|
225
|
+
def password(self) -> Optional[pulumi.Input[str]]:
|
|
226
|
+
return pulumi.get(self, "password")
|
|
227
|
+
|
|
228
|
+
@password.setter
|
|
229
|
+
def password(self, value: Optional[pulumi.Input[str]]):
|
|
230
|
+
pulumi.set(self, "password", value)
|
|
231
|
+
|
|
232
|
+
@property
|
|
233
|
+
@pulumi.getter
|
|
234
|
+
def schema(self) -> Optional[pulumi.Input[str]]:
|
|
235
|
+
"""
|
|
236
|
+
The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
237
|
+
"""
|
|
238
|
+
return pulumi.get(self, "schema")
|
|
239
|
+
|
|
240
|
+
@schema.setter
|
|
241
|
+
def schema(self, value: Optional[pulumi.Input[str]]):
|
|
242
|
+
pulumi.set(self, "schema", value)
|
|
243
|
+
|
|
244
|
+
@property
|
|
245
|
+
@pulumi.getter(name="secretType")
|
|
246
|
+
def secret_type(self) -> Optional[pulumi.Input[str]]:
|
|
247
|
+
"""
|
|
248
|
+
Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
|
|
249
|
+
"""
|
|
250
|
+
return pulumi.get(self, "secret_type")
|
|
251
|
+
|
|
252
|
+
@secret_type.setter
|
|
253
|
+
def secret_type(self, value: Optional[pulumi.Input[str]]):
|
|
254
|
+
pulumi.set(self, "secret_type", value)
|
|
255
|
+
|
|
256
|
+
@property
|
|
257
|
+
@pulumi.getter(name="showOutputs")
|
|
258
|
+
def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SecretWithBasicAuthenticationShowOutputArgs']]]]:
|
|
259
|
+
"""
|
|
260
|
+
Outputs the result of `SHOW SECRETS` for the given secret.
|
|
261
|
+
"""
|
|
262
|
+
return pulumi.get(self, "show_outputs")
|
|
263
|
+
|
|
264
|
+
@show_outputs.setter
|
|
265
|
+
def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SecretWithBasicAuthenticationShowOutputArgs']]]]):
|
|
266
|
+
pulumi.set(self, "show_outputs", value)
|
|
267
|
+
|
|
268
|
+
@property
|
|
269
|
+
@pulumi.getter
|
|
270
|
+
def username(self) -> Optional[pulumi.Input[str]]:
|
|
271
|
+
"""
|
|
272
|
+
Specifies the username value to store in the secret.
|
|
273
|
+
"""
|
|
274
|
+
return pulumi.get(self, "username")
|
|
275
|
+
|
|
276
|
+
@username.setter
|
|
277
|
+
def username(self, value: Optional[pulumi.Input[str]]):
|
|
278
|
+
pulumi.set(self, "username", value)
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
class SecretWithBasicAuthentication(pulumi.CustomResource):
|
|
282
|
+
@overload
|
|
283
|
+
def __init__(__self__,
|
|
284
|
+
resource_name: str,
|
|
285
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
286
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
287
|
+
database: Optional[pulumi.Input[str]] = None,
|
|
288
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
289
|
+
password: Optional[pulumi.Input[str]] = None,
|
|
290
|
+
schema: Optional[pulumi.Input[str]] = None,
|
|
291
|
+
username: Optional[pulumi.Input[str]] = None,
|
|
292
|
+
__props__=None):
|
|
293
|
+
"""
|
|
294
|
+
## Import
|
|
295
|
+
|
|
296
|
+
```sh
|
|
297
|
+
$ pulumi import snowflake:index/secretWithBasicAuthentication:SecretWithBasicAuthentication example '"<database_name>"."<schema_name>"."<secret_name>"'
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
:param str resource_name: The name of the resource.
|
|
301
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
302
|
+
:param pulumi.Input[str] comment: Specifies a comment for the secret.
|
|
303
|
+
: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: `|`, `.`, `"`.
|
|
304
|
+
: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: `|`, `.`, `"`.
|
|
305
|
+
: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: `|`, `.`, `"`.
|
|
306
|
+
:param pulumi.Input[str] username: Specifies the username value to store in the secret.
|
|
307
|
+
"""
|
|
308
|
+
...
|
|
309
|
+
@overload
|
|
310
|
+
def __init__(__self__,
|
|
311
|
+
resource_name: str,
|
|
312
|
+
args: SecretWithBasicAuthenticationArgs,
|
|
313
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
314
|
+
"""
|
|
315
|
+
## Import
|
|
316
|
+
|
|
317
|
+
```sh
|
|
318
|
+
$ pulumi import snowflake:index/secretWithBasicAuthentication:SecretWithBasicAuthentication example '"<database_name>"."<schema_name>"."<secret_name>"'
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
:param str resource_name: The name of the resource.
|
|
322
|
+
:param SecretWithBasicAuthenticationArgs args: The arguments to use to populate this resource's properties.
|
|
323
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
324
|
+
"""
|
|
325
|
+
...
|
|
326
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
327
|
+
resource_args, opts = _utilities.get_resource_args_opts(SecretWithBasicAuthenticationArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
328
|
+
if resource_args is not None:
|
|
329
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
330
|
+
else:
|
|
331
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
332
|
+
|
|
333
|
+
def _internal_init(__self__,
|
|
334
|
+
resource_name: str,
|
|
335
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
336
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
337
|
+
database: Optional[pulumi.Input[str]] = None,
|
|
338
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
339
|
+
password: Optional[pulumi.Input[str]] = None,
|
|
340
|
+
schema: Optional[pulumi.Input[str]] = None,
|
|
341
|
+
username: Optional[pulumi.Input[str]] = None,
|
|
342
|
+
__props__=None):
|
|
343
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
344
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
345
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
346
|
+
if opts.id is None:
|
|
347
|
+
if __props__ is not None:
|
|
348
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
349
|
+
__props__ = SecretWithBasicAuthenticationArgs.__new__(SecretWithBasicAuthenticationArgs)
|
|
350
|
+
|
|
351
|
+
__props__.__dict__["comment"] = comment
|
|
352
|
+
if database is None and not opts.urn:
|
|
353
|
+
raise TypeError("Missing required property 'database'")
|
|
354
|
+
__props__.__dict__["database"] = database
|
|
355
|
+
__props__.__dict__["name"] = name
|
|
356
|
+
if password is None and not opts.urn:
|
|
357
|
+
raise TypeError("Missing required property 'password'")
|
|
358
|
+
__props__.__dict__["password"] = None if password is None else pulumi.Output.secret(password)
|
|
359
|
+
if schema is None and not opts.urn:
|
|
360
|
+
raise TypeError("Missing required property 'schema'")
|
|
361
|
+
__props__.__dict__["schema"] = schema
|
|
362
|
+
if username is None and not opts.urn:
|
|
363
|
+
raise TypeError("Missing required property 'username'")
|
|
364
|
+
__props__.__dict__["username"] = None if username is None else pulumi.Output.secret(username)
|
|
365
|
+
__props__.__dict__["describe_outputs"] = None
|
|
366
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
367
|
+
__props__.__dict__["secret_type"] = None
|
|
368
|
+
__props__.__dict__["show_outputs"] = None
|
|
369
|
+
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["password", "username"])
|
|
370
|
+
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
|
371
|
+
super(SecretWithBasicAuthentication, __self__).__init__(
|
|
372
|
+
'snowflake:index/secretWithBasicAuthentication:SecretWithBasicAuthentication',
|
|
373
|
+
resource_name,
|
|
374
|
+
__props__,
|
|
375
|
+
opts)
|
|
376
|
+
|
|
377
|
+
@staticmethod
|
|
378
|
+
def get(resource_name: str,
|
|
379
|
+
id: pulumi.Input[str],
|
|
380
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
381
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
382
|
+
database: Optional[pulumi.Input[str]] = None,
|
|
383
|
+
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SecretWithBasicAuthenticationDescribeOutputArgs', 'SecretWithBasicAuthenticationDescribeOutputArgsDict']]]]] = None,
|
|
384
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
385
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
386
|
+
password: Optional[pulumi.Input[str]] = None,
|
|
387
|
+
schema: Optional[pulumi.Input[str]] = None,
|
|
388
|
+
secret_type: Optional[pulumi.Input[str]] = None,
|
|
389
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SecretWithBasicAuthenticationShowOutputArgs', 'SecretWithBasicAuthenticationShowOutputArgsDict']]]]] = None,
|
|
390
|
+
username: Optional[pulumi.Input[str]] = None) -> 'SecretWithBasicAuthentication':
|
|
391
|
+
"""
|
|
392
|
+
Get an existing SecretWithBasicAuthentication resource's state with the given name, id, and optional extra
|
|
393
|
+
properties used to qualify the lookup.
|
|
394
|
+
|
|
395
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
396
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
397
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
398
|
+
:param pulumi.Input[str] comment: Specifies a comment for the secret.
|
|
399
|
+
: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: `|`, `.`, `"`.
|
|
400
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['SecretWithBasicAuthenticationDescribeOutputArgs', 'SecretWithBasicAuthenticationDescribeOutputArgsDict']]]] describe_outputs: Outputs the result of `DESCRIBE SECRET` for the given secret.
|
|
401
|
+
: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).
|
|
402
|
+
: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: `|`, `.`, `"`.
|
|
403
|
+
: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: `|`, `.`, `"`.
|
|
404
|
+
: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.
|
|
405
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['SecretWithBasicAuthenticationShowOutputArgs', 'SecretWithBasicAuthenticationShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW SECRETS` for the given secret.
|
|
406
|
+
:param pulumi.Input[str] username: Specifies the username value to store in the secret.
|
|
407
|
+
"""
|
|
408
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
409
|
+
|
|
410
|
+
__props__ = _SecretWithBasicAuthenticationState.__new__(_SecretWithBasicAuthenticationState)
|
|
411
|
+
|
|
412
|
+
__props__.__dict__["comment"] = comment
|
|
413
|
+
__props__.__dict__["database"] = database
|
|
414
|
+
__props__.__dict__["describe_outputs"] = describe_outputs
|
|
415
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
416
|
+
__props__.__dict__["name"] = name
|
|
417
|
+
__props__.__dict__["password"] = password
|
|
418
|
+
__props__.__dict__["schema"] = schema
|
|
419
|
+
__props__.__dict__["secret_type"] = secret_type
|
|
420
|
+
__props__.__dict__["show_outputs"] = show_outputs
|
|
421
|
+
__props__.__dict__["username"] = username
|
|
422
|
+
return SecretWithBasicAuthentication(resource_name, opts=opts, __props__=__props__)
|
|
423
|
+
|
|
424
|
+
@property
|
|
425
|
+
@pulumi.getter
|
|
426
|
+
def comment(self) -> pulumi.Output[Optional[str]]:
|
|
427
|
+
"""
|
|
428
|
+
Specifies a comment for the secret.
|
|
429
|
+
"""
|
|
430
|
+
return pulumi.get(self, "comment")
|
|
431
|
+
|
|
432
|
+
@property
|
|
433
|
+
@pulumi.getter
|
|
434
|
+
def database(self) -> pulumi.Output[str]:
|
|
435
|
+
"""
|
|
436
|
+
The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
437
|
+
"""
|
|
438
|
+
return pulumi.get(self, "database")
|
|
439
|
+
|
|
440
|
+
@property
|
|
441
|
+
@pulumi.getter(name="describeOutputs")
|
|
442
|
+
def describe_outputs(self) -> pulumi.Output[Sequence['outputs.SecretWithBasicAuthenticationDescribeOutput']]:
|
|
443
|
+
"""
|
|
444
|
+
Outputs the result of `DESCRIBE SECRET` for the given secret.
|
|
445
|
+
"""
|
|
446
|
+
return pulumi.get(self, "describe_outputs")
|
|
447
|
+
|
|
448
|
+
@property
|
|
449
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
450
|
+
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
451
|
+
"""
|
|
452
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
453
|
+
"""
|
|
454
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
455
|
+
|
|
456
|
+
@property
|
|
457
|
+
@pulumi.getter
|
|
458
|
+
def name(self) -> pulumi.Output[str]:
|
|
459
|
+
"""
|
|
460
|
+
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: `|`, `.`, `"`.
|
|
461
|
+
"""
|
|
462
|
+
return pulumi.get(self, "name")
|
|
463
|
+
|
|
464
|
+
@property
|
|
465
|
+
@pulumi.getter
|
|
466
|
+
def password(self) -> pulumi.Output[str]:
|
|
467
|
+
return pulumi.get(self, "password")
|
|
468
|
+
|
|
469
|
+
@property
|
|
470
|
+
@pulumi.getter
|
|
471
|
+
def schema(self) -> pulumi.Output[str]:
|
|
472
|
+
"""
|
|
473
|
+
The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
474
|
+
"""
|
|
475
|
+
return pulumi.get(self, "schema")
|
|
476
|
+
|
|
477
|
+
@property
|
|
478
|
+
@pulumi.getter(name="secretType")
|
|
479
|
+
def secret_type(self) -> pulumi.Output[str]:
|
|
480
|
+
"""
|
|
481
|
+
Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
|
|
482
|
+
"""
|
|
483
|
+
return pulumi.get(self, "secret_type")
|
|
484
|
+
|
|
485
|
+
@property
|
|
486
|
+
@pulumi.getter(name="showOutputs")
|
|
487
|
+
def show_outputs(self) -> pulumi.Output[Sequence['outputs.SecretWithBasicAuthenticationShowOutput']]:
|
|
488
|
+
"""
|
|
489
|
+
Outputs the result of `SHOW SECRETS` for the given secret.
|
|
490
|
+
"""
|
|
491
|
+
return pulumi.get(self, "show_outputs")
|
|
492
|
+
|
|
493
|
+
@property
|
|
494
|
+
@pulumi.getter
|
|
495
|
+
def username(self) -> pulumi.Output[str]:
|
|
496
|
+
"""
|
|
497
|
+
Specifies the username value to store in the secret.
|
|
498
|
+
"""
|
|
499
|
+
return pulumi.get(self, "username")
|
|
500
|
+
|