pulumi-snowflake 0.60.0a1728636583__py3-none-any.whl → 0.61.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 +146 -0
- pulumi_snowflake/_inputs.py +20764 -4999
- pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
- pulumi_snowflake/authentication_policy.py +622 -0
- pulumi_snowflake/config/__init__.pyi +86 -36
- pulumi_snowflake/config/vars.py +104 -40
- pulumi_snowflake/external_volume.py +378 -0
- pulumi_snowflake/get_connections.py +147 -0
- pulumi_snowflake/get_grants.py +4 -0
- pulumi_snowflake/get_secrets.py +204 -0
- pulumi_snowflake/get_streams.py +105 -56
- pulumi_snowflake/grant_account_role.py +2 -2
- pulumi_snowflake/grant_application_role.py +2 -2
- pulumi_snowflake/grant_database_role.py +2 -2
- pulumi_snowflake/grant_ownership.py +14 -14
- pulumi_snowflake/grant_privileges_to_account_role.py +8 -8
- pulumi_snowflake/grant_privileges_to_database_role.py +8 -8
- pulumi_snowflake/grant_privileges_to_share.py +2 -2
- pulumi_snowflake/legacy_service_user.py +3670 -0
- pulumi_snowflake/masking_policy.py +4 -4
- pulumi_snowflake/outputs.py +14295 -3265
- pulumi_snowflake/primary_connection.py +330 -0
- pulumi_snowflake/provider.py +433 -146
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/row_access_policy.py +4 -4
- pulumi_snowflake/secondary_connection.py +339 -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/service_user.py +3585 -0
- pulumi_snowflake/stage.py +7 -7
- pulumi_snowflake/stream_on_directory_table.py +530 -0
- pulumi_snowflake/stream_on_external_table.py +645 -0
- pulumi_snowflake/stream_on_table.py +679 -0
- pulumi_snowflake/stream_on_view.py +679 -0
- pulumi_snowflake/tag_association.py +7 -7
- pulumi_snowflake/user.py +6 -2
- pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
- {pulumi_snowflake-0.60.0a1728636583.dist-info → pulumi_snowflake-0.61.0.dist-info}/METADATA +1 -1
- {pulumi_snowflake-0.60.0a1728636583.dist-info → pulumi_snowflake-0.61.0.dist-info}/RECORD +43 -25
- {pulumi_snowflake-0.60.0a1728636583.dist-info → pulumi_snowflake-0.61.0.dist-info}/WHEEL +1 -1
- {pulumi_snowflake-0.60.0a1728636583.dist-info → pulumi_snowflake-0.61.0.dist-info}/top_level.txt +0 -0
|
@@ -140,7 +140,7 @@ class _RowAccessPolicyState:
|
|
|
140
140
|
: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).
|
|
141
141
|
:param pulumi.Input[str] name: Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
142
142
|
:param pulumi.Input[str] schema: The schema in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
143
|
-
:param pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyShowOutputArgs']]] show_outputs: Outputs the result of `SHOW ROW ACCESS
|
|
143
|
+
:param pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyShowOutputArgs']]] show_outputs: Outputs the result of `SHOW ROW ACCESS POLICIES` for the given row access policy.
|
|
144
144
|
"""
|
|
145
145
|
if arguments is not None:
|
|
146
146
|
pulumi.set(__self__, "arguments", arguments)
|
|
@@ -261,7 +261,7 @@ class _RowAccessPolicyState:
|
|
|
261
261
|
@pulumi.getter(name="showOutputs")
|
|
262
262
|
def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyShowOutputArgs']]]]:
|
|
263
263
|
"""
|
|
264
|
-
Outputs the result of `SHOW ROW ACCESS
|
|
264
|
+
Outputs the result of `SHOW ROW ACCESS POLICIES` for the given row access policy.
|
|
265
265
|
"""
|
|
266
266
|
return pulumi.get(self, "show_outputs")
|
|
267
267
|
|
|
@@ -392,7 +392,7 @@ class RowAccessPolicy(pulumi.CustomResource):
|
|
|
392
392
|
: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
393
|
:param pulumi.Input[str] name: Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
394
394
|
:param pulumi.Input[str] schema: The schema in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
395
|
-
:param pulumi.Input[Sequence[pulumi.Input[Union['RowAccessPolicyShowOutputArgs', 'RowAccessPolicyShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW ROW ACCESS
|
|
395
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['RowAccessPolicyShowOutputArgs', 'RowAccessPolicyShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW ROW ACCESS POLICIES` for the given row access policy.
|
|
396
396
|
"""
|
|
397
397
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
398
398
|
|
|
@@ -477,7 +477,7 @@ class RowAccessPolicy(pulumi.CustomResource):
|
|
|
477
477
|
@pulumi.getter(name="showOutputs")
|
|
478
478
|
def show_outputs(self) -> pulumi.Output[Sequence['outputs.RowAccessPolicyShowOutput']]:
|
|
479
479
|
"""
|
|
480
|
-
Outputs the result of `SHOW ROW ACCESS
|
|
480
|
+
Outputs the result of `SHOW ROW ACCESS POLICIES` for the given row access policy.
|
|
481
481
|
"""
|
|
482
482
|
return pulumi.get(self, "show_outputs")
|
|
483
483
|
|
|
@@ -0,0 +1,339 @@
|
|
|
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__ = ['SecondaryConnectionArgs', 'SecondaryConnection']
|
|
20
|
+
|
|
21
|
+
@pulumi.input_type
|
|
22
|
+
class SecondaryConnectionArgs:
|
|
23
|
+
def __init__(__self__, *,
|
|
24
|
+
as_replica_of: pulumi.Input[str],
|
|
25
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
26
|
+
name: Optional[pulumi.Input[str]] = None):
|
|
27
|
+
"""
|
|
28
|
+
The set of arguments for constructing a SecondaryConnection resource.
|
|
29
|
+
:param pulumi.Input[str] as_replica_of: Specifies the identifier for a primary connection from which to create a replica (i.e. a secondary connection).
|
|
30
|
+
:param pulumi.Input[str] comment: Specifies a comment for the secondary connection.
|
|
31
|
+
:param pulumi.Input[str] name: String that specifies the identifier (i.e. name) for the connection. Must start with an alphabetic character and may only contain letters, decimal digits (0-9), and underscores (_). For a secondary connection, the name must match the name of its primary connection. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
32
|
+
"""
|
|
33
|
+
pulumi.set(__self__, "as_replica_of", as_replica_of)
|
|
34
|
+
if comment is not None:
|
|
35
|
+
pulumi.set(__self__, "comment", comment)
|
|
36
|
+
if name is not None:
|
|
37
|
+
pulumi.set(__self__, "name", name)
|
|
38
|
+
|
|
39
|
+
@property
|
|
40
|
+
@pulumi.getter(name="asReplicaOf")
|
|
41
|
+
def as_replica_of(self) -> pulumi.Input[str]:
|
|
42
|
+
"""
|
|
43
|
+
Specifies the identifier for a primary connection from which to create a replica (i.e. a secondary connection).
|
|
44
|
+
"""
|
|
45
|
+
return pulumi.get(self, "as_replica_of")
|
|
46
|
+
|
|
47
|
+
@as_replica_of.setter
|
|
48
|
+
def as_replica_of(self, value: pulumi.Input[str]):
|
|
49
|
+
pulumi.set(self, "as_replica_of", value)
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
@pulumi.getter
|
|
53
|
+
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
54
|
+
"""
|
|
55
|
+
Specifies a comment for the secondary connection.
|
|
56
|
+
"""
|
|
57
|
+
return pulumi.get(self, "comment")
|
|
58
|
+
|
|
59
|
+
@comment.setter
|
|
60
|
+
def comment(self, value: Optional[pulumi.Input[str]]):
|
|
61
|
+
pulumi.set(self, "comment", value)
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
@pulumi.getter
|
|
65
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
66
|
+
"""
|
|
67
|
+
String that specifies the identifier (i.e. name) for the connection. Must start with an alphabetic character and may only contain letters, decimal digits (0-9), and underscores (_). For a secondary connection, the name must match the name of its primary connection. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
68
|
+
"""
|
|
69
|
+
return pulumi.get(self, "name")
|
|
70
|
+
|
|
71
|
+
@name.setter
|
|
72
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
73
|
+
pulumi.set(self, "name", value)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
@pulumi.input_type
|
|
77
|
+
class _SecondaryConnectionState:
|
|
78
|
+
def __init__(__self__, *,
|
|
79
|
+
as_replica_of: Optional[pulumi.Input[str]] = None,
|
|
80
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
81
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
82
|
+
is_primary: Optional[pulumi.Input[bool]] = None,
|
|
83
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
84
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['SecondaryConnectionShowOutputArgs']]]] = None):
|
|
85
|
+
"""
|
|
86
|
+
Input properties used for looking up and filtering SecondaryConnection resources.
|
|
87
|
+
:param pulumi.Input[str] as_replica_of: Specifies the identifier for a primary connection from which to create a replica (i.e. a secondary connection).
|
|
88
|
+
:param pulumi.Input[str] comment: Specifies a comment for the secondary connection.
|
|
89
|
+
: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).
|
|
90
|
+
:param pulumi.Input[bool] is_primary: Indicates if the connection primary status has been changed. If change is detected, resource will be recreated.
|
|
91
|
+
:param pulumi.Input[str] name: String that specifies the identifier (i.e. name) for the connection. Must start with an alphabetic character and may only contain letters, decimal digits (0-9), and underscores (_). For a secondary connection, the name must match the name of its primary connection. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
92
|
+
:param pulumi.Input[Sequence[pulumi.Input['SecondaryConnectionShowOutputArgs']]] show_outputs: Outputs the result of `SHOW CONNECTIONS` for the given connection.
|
|
93
|
+
"""
|
|
94
|
+
if as_replica_of is not None:
|
|
95
|
+
pulumi.set(__self__, "as_replica_of", as_replica_of)
|
|
96
|
+
if comment is not None:
|
|
97
|
+
pulumi.set(__self__, "comment", comment)
|
|
98
|
+
if fully_qualified_name is not None:
|
|
99
|
+
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
100
|
+
if is_primary is not None:
|
|
101
|
+
pulumi.set(__self__, "is_primary", is_primary)
|
|
102
|
+
if name is not None:
|
|
103
|
+
pulumi.set(__self__, "name", name)
|
|
104
|
+
if show_outputs is not None:
|
|
105
|
+
pulumi.set(__self__, "show_outputs", show_outputs)
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
@pulumi.getter(name="asReplicaOf")
|
|
109
|
+
def as_replica_of(self) -> Optional[pulumi.Input[str]]:
|
|
110
|
+
"""
|
|
111
|
+
Specifies the identifier for a primary connection from which to create a replica (i.e. a secondary connection).
|
|
112
|
+
"""
|
|
113
|
+
return pulumi.get(self, "as_replica_of")
|
|
114
|
+
|
|
115
|
+
@as_replica_of.setter
|
|
116
|
+
def as_replica_of(self, value: Optional[pulumi.Input[str]]):
|
|
117
|
+
pulumi.set(self, "as_replica_of", value)
|
|
118
|
+
|
|
119
|
+
@property
|
|
120
|
+
@pulumi.getter
|
|
121
|
+
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
122
|
+
"""
|
|
123
|
+
Specifies a comment for the secondary connection.
|
|
124
|
+
"""
|
|
125
|
+
return pulumi.get(self, "comment")
|
|
126
|
+
|
|
127
|
+
@comment.setter
|
|
128
|
+
def comment(self, value: Optional[pulumi.Input[str]]):
|
|
129
|
+
pulumi.set(self, "comment", value)
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
133
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
134
|
+
"""
|
|
135
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
136
|
+
"""
|
|
137
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
138
|
+
|
|
139
|
+
@fully_qualified_name.setter
|
|
140
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
141
|
+
pulumi.set(self, "fully_qualified_name", value)
|
|
142
|
+
|
|
143
|
+
@property
|
|
144
|
+
@pulumi.getter(name="isPrimary")
|
|
145
|
+
def is_primary(self) -> Optional[pulumi.Input[bool]]:
|
|
146
|
+
"""
|
|
147
|
+
Indicates if the connection primary status has been changed. If change is detected, resource will be recreated.
|
|
148
|
+
"""
|
|
149
|
+
return pulumi.get(self, "is_primary")
|
|
150
|
+
|
|
151
|
+
@is_primary.setter
|
|
152
|
+
def is_primary(self, value: Optional[pulumi.Input[bool]]):
|
|
153
|
+
pulumi.set(self, "is_primary", value)
|
|
154
|
+
|
|
155
|
+
@property
|
|
156
|
+
@pulumi.getter
|
|
157
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
158
|
+
"""
|
|
159
|
+
String that specifies the identifier (i.e. name) for the connection. Must start with an alphabetic character and may only contain letters, decimal digits (0-9), and underscores (_). For a secondary connection, the name must match the name of its primary connection. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
160
|
+
"""
|
|
161
|
+
return pulumi.get(self, "name")
|
|
162
|
+
|
|
163
|
+
@name.setter
|
|
164
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
165
|
+
pulumi.set(self, "name", value)
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
@pulumi.getter(name="showOutputs")
|
|
169
|
+
def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SecondaryConnectionShowOutputArgs']]]]:
|
|
170
|
+
"""
|
|
171
|
+
Outputs the result of `SHOW CONNECTIONS` for the given connection.
|
|
172
|
+
"""
|
|
173
|
+
return pulumi.get(self, "show_outputs")
|
|
174
|
+
|
|
175
|
+
@show_outputs.setter
|
|
176
|
+
def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SecondaryConnectionShowOutputArgs']]]]):
|
|
177
|
+
pulumi.set(self, "show_outputs", value)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
class SecondaryConnection(pulumi.CustomResource):
|
|
181
|
+
@overload
|
|
182
|
+
def __init__(__self__,
|
|
183
|
+
resource_name: str,
|
|
184
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
185
|
+
as_replica_of: Optional[pulumi.Input[str]] = None,
|
|
186
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
187
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
188
|
+
__props__=None):
|
|
189
|
+
"""
|
|
190
|
+
## Import
|
|
191
|
+
|
|
192
|
+
```sh
|
|
193
|
+
$ pulumi import snowflake:index/secondaryConnection:SecondaryConnection example 'secondary_connection_name'
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
:param str resource_name: The name of the resource.
|
|
197
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
198
|
+
:param pulumi.Input[str] as_replica_of: Specifies the identifier for a primary connection from which to create a replica (i.e. a secondary connection).
|
|
199
|
+
:param pulumi.Input[str] comment: Specifies a comment for the secondary connection.
|
|
200
|
+
:param pulumi.Input[str] name: String that specifies the identifier (i.e. name) for the connection. Must start with an alphabetic character and may only contain letters, decimal digits (0-9), and underscores (_). For a secondary connection, the name must match the name of its primary connection. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
201
|
+
"""
|
|
202
|
+
...
|
|
203
|
+
@overload
|
|
204
|
+
def __init__(__self__,
|
|
205
|
+
resource_name: str,
|
|
206
|
+
args: SecondaryConnectionArgs,
|
|
207
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
208
|
+
"""
|
|
209
|
+
## Import
|
|
210
|
+
|
|
211
|
+
```sh
|
|
212
|
+
$ pulumi import snowflake:index/secondaryConnection:SecondaryConnection example 'secondary_connection_name'
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
:param str resource_name: The name of the resource.
|
|
216
|
+
:param SecondaryConnectionArgs args: The arguments to use to populate this resource's properties.
|
|
217
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
218
|
+
"""
|
|
219
|
+
...
|
|
220
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
221
|
+
resource_args, opts = _utilities.get_resource_args_opts(SecondaryConnectionArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
222
|
+
if resource_args is not None:
|
|
223
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
224
|
+
else:
|
|
225
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
226
|
+
|
|
227
|
+
def _internal_init(__self__,
|
|
228
|
+
resource_name: str,
|
|
229
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
230
|
+
as_replica_of: Optional[pulumi.Input[str]] = None,
|
|
231
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
232
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
233
|
+
__props__=None):
|
|
234
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
235
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
236
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
237
|
+
if opts.id is None:
|
|
238
|
+
if __props__ is not None:
|
|
239
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
240
|
+
__props__ = SecondaryConnectionArgs.__new__(SecondaryConnectionArgs)
|
|
241
|
+
|
|
242
|
+
if as_replica_of is None and not opts.urn:
|
|
243
|
+
raise TypeError("Missing required property 'as_replica_of'")
|
|
244
|
+
__props__.__dict__["as_replica_of"] = as_replica_of
|
|
245
|
+
__props__.__dict__["comment"] = comment
|
|
246
|
+
__props__.__dict__["name"] = name
|
|
247
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
248
|
+
__props__.__dict__["is_primary"] = None
|
|
249
|
+
__props__.__dict__["show_outputs"] = None
|
|
250
|
+
super(SecondaryConnection, __self__).__init__(
|
|
251
|
+
'snowflake:index/secondaryConnection:SecondaryConnection',
|
|
252
|
+
resource_name,
|
|
253
|
+
__props__,
|
|
254
|
+
opts)
|
|
255
|
+
|
|
256
|
+
@staticmethod
|
|
257
|
+
def get(resource_name: str,
|
|
258
|
+
id: pulumi.Input[str],
|
|
259
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
260
|
+
as_replica_of: Optional[pulumi.Input[str]] = None,
|
|
261
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
262
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
263
|
+
is_primary: Optional[pulumi.Input[bool]] = None,
|
|
264
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
265
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SecondaryConnectionShowOutputArgs', 'SecondaryConnectionShowOutputArgsDict']]]]] = None) -> 'SecondaryConnection':
|
|
266
|
+
"""
|
|
267
|
+
Get an existing SecondaryConnection resource's state with the given name, id, and optional extra
|
|
268
|
+
properties used to qualify the lookup.
|
|
269
|
+
|
|
270
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
271
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
272
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
273
|
+
:param pulumi.Input[str] as_replica_of: Specifies the identifier for a primary connection from which to create a replica (i.e. a secondary connection).
|
|
274
|
+
:param pulumi.Input[str] comment: Specifies a comment for the secondary connection.
|
|
275
|
+
: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).
|
|
276
|
+
:param pulumi.Input[bool] is_primary: Indicates if the connection primary status has been changed. If change is detected, resource will be recreated.
|
|
277
|
+
:param pulumi.Input[str] name: String that specifies the identifier (i.e. name) for the connection. Must start with an alphabetic character and may only contain letters, decimal digits (0-9), and underscores (_). For a secondary connection, the name must match the name of its primary connection. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
278
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['SecondaryConnectionShowOutputArgs', 'SecondaryConnectionShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW CONNECTIONS` for the given connection.
|
|
279
|
+
"""
|
|
280
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
281
|
+
|
|
282
|
+
__props__ = _SecondaryConnectionState.__new__(_SecondaryConnectionState)
|
|
283
|
+
|
|
284
|
+
__props__.__dict__["as_replica_of"] = as_replica_of
|
|
285
|
+
__props__.__dict__["comment"] = comment
|
|
286
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
287
|
+
__props__.__dict__["is_primary"] = is_primary
|
|
288
|
+
__props__.__dict__["name"] = name
|
|
289
|
+
__props__.__dict__["show_outputs"] = show_outputs
|
|
290
|
+
return SecondaryConnection(resource_name, opts=opts, __props__=__props__)
|
|
291
|
+
|
|
292
|
+
@property
|
|
293
|
+
@pulumi.getter(name="asReplicaOf")
|
|
294
|
+
def as_replica_of(self) -> pulumi.Output[str]:
|
|
295
|
+
"""
|
|
296
|
+
Specifies the identifier for a primary connection from which to create a replica (i.e. a secondary connection).
|
|
297
|
+
"""
|
|
298
|
+
return pulumi.get(self, "as_replica_of")
|
|
299
|
+
|
|
300
|
+
@property
|
|
301
|
+
@pulumi.getter
|
|
302
|
+
def comment(self) -> pulumi.Output[Optional[str]]:
|
|
303
|
+
"""
|
|
304
|
+
Specifies a comment for the secondary connection.
|
|
305
|
+
"""
|
|
306
|
+
return pulumi.get(self, "comment")
|
|
307
|
+
|
|
308
|
+
@property
|
|
309
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
310
|
+
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
311
|
+
"""
|
|
312
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
313
|
+
"""
|
|
314
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
315
|
+
|
|
316
|
+
@property
|
|
317
|
+
@pulumi.getter(name="isPrimary")
|
|
318
|
+
def is_primary(self) -> pulumi.Output[bool]:
|
|
319
|
+
"""
|
|
320
|
+
Indicates if the connection primary status has been changed. If change is detected, resource will be recreated.
|
|
321
|
+
"""
|
|
322
|
+
return pulumi.get(self, "is_primary")
|
|
323
|
+
|
|
324
|
+
@property
|
|
325
|
+
@pulumi.getter
|
|
326
|
+
def name(self) -> pulumi.Output[str]:
|
|
327
|
+
"""
|
|
328
|
+
String that specifies the identifier (i.e. name) for the connection. Must start with an alphabetic character and may only contain letters, decimal digits (0-9), and underscores (_). For a secondary connection, the name must match the name of its primary connection. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
329
|
+
"""
|
|
330
|
+
return pulumi.get(self, "name")
|
|
331
|
+
|
|
332
|
+
@property
|
|
333
|
+
@pulumi.getter(name="showOutputs")
|
|
334
|
+
def show_outputs(self) -> pulumi.Output[Sequence['outputs.SecondaryConnectionShowOutput']]:
|
|
335
|
+
"""
|
|
336
|
+
Outputs the result of `SHOW CONNECTIONS` for the given connection.
|
|
337
|
+
"""
|
|
338
|
+
return pulumi.get(self, "show_outputs")
|
|
339
|
+
|