pulumi-snowflake 2.0.1__py3-none-any.whl → 2.1.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.

Files changed (40) hide show
  1. pulumi_snowflake/__init__.py +58 -0
  2. pulumi_snowflake/_inputs.py +4790 -958
  3. pulumi_snowflake/account.py +47 -0
  4. pulumi_snowflake/compute_pool.py +625 -0
  5. pulumi_snowflake/config/__init__.pyi +4 -2
  6. pulumi_snowflake/config/vars.py +4 -2
  7. pulumi_snowflake/cortex_search_service.py +77 -0
  8. pulumi_snowflake/current_account.py +5885 -0
  9. pulumi_snowflake/database.py +7 -7
  10. pulumi_snowflake/get_compute_pools.py +175 -0
  11. pulumi_snowflake/get_cortex_search_services.py +3 -3
  12. pulumi_snowflake/get_database_roles.py +3 -3
  13. pulumi_snowflake/get_databases.py +3 -3
  14. pulumi_snowflake/get_git_repositories.py +175 -0
  15. pulumi_snowflake/get_image_repositories.py +135 -0
  16. pulumi_snowflake/get_masking_policies.py +3 -3
  17. pulumi_snowflake/get_row_access_policies.py +3 -3
  18. pulumi_snowflake/get_schemas.py +3 -3
  19. pulumi_snowflake/get_services.py +215 -0
  20. pulumi_snowflake/get_streamlits.py +3 -3
  21. pulumi_snowflake/get_streams.py +3 -3
  22. pulumi_snowflake/get_tables.py +103 -62
  23. pulumi_snowflake/get_tasks.py +3 -3
  24. pulumi_snowflake/get_users.py +3 -3
  25. pulumi_snowflake/get_views.py +3 -3
  26. pulumi_snowflake/git_repository.py +532 -0
  27. pulumi_snowflake/image_repository.py +361 -0
  28. pulumi_snowflake/job_service.py +653 -0
  29. pulumi_snowflake/outputs.py +4220 -136
  30. pulumi_snowflake/provider.py +16 -8
  31. pulumi_snowflake/pulumi-plugin.json +1 -1
  32. pulumi_snowflake/schema.py +7 -7
  33. pulumi_snowflake/secondary_database.py +7 -7
  34. pulumi_snowflake/service.py +888 -0
  35. pulumi_snowflake/shared_database.py +7 -7
  36. pulumi_snowflake/tag_association.py +7 -7
  37. {pulumi_snowflake-2.0.1.dist-info → pulumi_snowflake-2.1.0.dist-info}/METADATA +1 -1
  38. {pulumi_snowflake-2.0.1.dist-info → pulumi_snowflake-2.1.0.dist-info}/RECORD +40 -30
  39. {pulumi_snowflake-2.0.1.dist-info → pulumi_snowflake-2.1.0.dist-info}/WHEEL +0 -0
  40. {pulumi_snowflake-2.0.1.dist-info → pulumi_snowflake-2.1.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,532 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins
6
+ import copy
7
+ import warnings
8
+ import sys
9
+ import pulumi
10
+ import pulumi.runtime
11
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
12
+ if sys.version_info >= (3, 11):
13
+ from typing import NotRequired, TypedDict, TypeAlias
14
+ else:
15
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
16
+ from . import _utilities
17
+ from . import outputs
18
+ from ._inputs import *
19
+
20
+ __all__ = ['GitRepositoryArgs', 'GitRepository']
21
+
22
+ @pulumi.input_type
23
+ class GitRepositoryArgs:
24
+ def __init__(__self__, *,
25
+ api_integration: pulumi.Input[builtins.str],
26
+ database: pulumi.Input[builtins.str],
27
+ origin: pulumi.Input[builtins.str],
28
+ schema: pulumi.Input[builtins.str],
29
+ comment: Optional[pulumi.Input[builtins.str]] = None,
30
+ git_credentials: Optional[pulumi.Input[builtins.str]] = None,
31
+ name: Optional[pulumi.Input[builtins.str]] = None):
32
+ """
33
+ The set of arguments for constructing a GitRepository resource.
34
+ :param pulumi.Input[builtins.str] api_integration: Identifier of API INTEGRATION containing information about the remote Git repository such as allowed credentials and prefixes for target URLs.
35
+ :param pulumi.Input[builtins.str] database: The database in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
36
+ :param pulumi.Input[builtins.str] origin: Specifies the origin URL of the remote Git repository that this Git repository clone represents. The URL must use HTTPS.
37
+ :param pulumi.Input[builtins.str] schema: The schema in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
38
+ :param pulumi.Input[builtins.str] comment: Specifies a comment for the git repository.
39
+ :param pulumi.Input[builtins.str] git_credentials: Specifies the Snowflake secret fully qualified name (e.g `"\\"<db_name>\\".\\"<schema_name>\\".\\"<secret_name>\\""`) containing the credentials to use for authenticating with the remote Git repository. Omit this parameter to use the default secret specified by the API integration or if this integration does not require authentication.
40
+ :param pulumi.Input[builtins.str] name: Specifies the identifier for the git repository; must be unique for the schema in which the git repository is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
41
+ """
42
+ pulumi.set(__self__, "api_integration", api_integration)
43
+ pulumi.set(__self__, "database", database)
44
+ pulumi.set(__self__, "origin", origin)
45
+ pulumi.set(__self__, "schema", schema)
46
+ if comment is not None:
47
+ pulumi.set(__self__, "comment", comment)
48
+ if git_credentials is not None:
49
+ pulumi.set(__self__, "git_credentials", git_credentials)
50
+ if name is not None:
51
+ pulumi.set(__self__, "name", name)
52
+
53
+ @property
54
+ @pulumi.getter(name="apiIntegration")
55
+ def api_integration(self) -> pulumi.Input[builtins.str]:
56
+ """
57
+ Identifier of API INTEGRATION containing information about the remote Git repository such as allowed credentials and prefixes for target URLs.
58
+ """
59
+ return pulumi.get(self, "api_integration")
60
+
61
+ @api_integration.setter
62
+ def api_integration(self, value: pulumi.Input[builtins.str]):
63
+ pulumi.set(self, "api_integration", value)
64
+
65
+ @property
66
+ @pulumi.getter
67
+ def database(self) -> pulumi.Input[builtins.str]:
68
+ """
69
+ The database in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
70
+ """
71
+ return pulumi.get(self, "database")
72
+
73
+ @database.setter
74
+ def database(self, value: pulumi.Input[builtins.str]):
75
+ pulumi.set(self, "database", value)
76
+
77
+ @property
78
+ @pulumi.getter
79
+ def origin(self) -> pulumi.Input[builtins.str]:
80
+ """
81
+ Specifies the origin URL of the remote Git repository that this Git repository clone represents. The URL must use HTTPS.
82
+ """
83
+ return pulumi.get(self, "origin")
84
+
85
+ @origin.setter
86
+ def origin(self, value: pulumi.Input[builtins.str]):
87
+ pulumi.set(self, "origin", value)
88
+
89
+ @property
90
+ @pulumi.getter
91
+ def schema(self) -> pulumi.Input[builtins.str]:
92
+ """
93
+ The schema in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
94
+ """
95
+ return pulumi.get(self, "schema")
96
+
97
+ @schema.setter
98
+ def schema(self, value: pulumi.Input[builtins.str]):
99
+ pulumi.set(self, "schema", value)
100
+
101
+ @property
102
+ @pulumi.getter
103
+ def comment(self) -> Optional[pulumi.Input[builtins.str]]:
104
+ """
105
+ Specifies a comment for the git repository.
106
+ """
107
+ return pulumi.get(self, "comment")
108
+
109
+ @comment.setter
110
+ def comment(self, value: Optional[pulumi.Input[builtins.str]]):
111
+ pulumi.set(self, "comment", value)
112
+
113
+ @property
114
+ @pulumi.getter(name="gitCredentials")
115
+ def git_credentials(self) -> Optional[pulumi.Input[builtins.str]]:
116
+ """
117
+ Specifies the Snowflake secret fully qualified name (e.g `"\\"<db_name>\\".\\"<schema_name>\\".\\"<secret_name>\\""`) containing the credentials to use for authenticating with the remote Git repository. Omit this parameter to use the default secret specified by the API integration or if this integration does not require authentication.
118
+ """
119
+ return pulumi.get(self, "git_credentials")
120
+
121
+ @git_credentials.setter
122
+ def git_credentials(self, value: Optional[pulumi.Input[builtins.str]]):
123
+ pulumi.set(self, "git_credentials", value)
124
+
125
+ @property
126
+ @pulumi.getter
127
+ def name(self) -> Optional[pulumi.Input[builtins.str]]:
128
+ """
129
+ Specifies the identifier for the git repository; must be unique for the schema in which the git repository is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
130
+ """
131
+ return pulumi.get(self, "name")
132
+
133
+ @name.setter
134
+ def name(self, value: Optional[pulumi.Input[builtins.str]]):
135
+ pulumi.set(self, "name", value)
136
+
137
+
138
+ @pulumi.input_type
139
+ class _GitRepositoryState:
140
+ def __init__(__self__, *,
141
+ api_integration: Optional[pulumi.Input[builtins.str]] = None,
142
+ comment: Optional[pulumi.Input[builtins.str]] = None,
143
+ database: Optional[pulumi.Input[builtins.str]] = None,
144
+ describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['GitRepositoryDescribeOutputArgs']]]] = None,
145
+ fully_qualified_name: Optional[pulumi.Input[builtins.str]] = None,
146
+ git_credentials: Optional[pulumi.Input[builtins.str]] = None,
147
+ name: Optional[pulumi.Input[builtins.str]] = None,
148
+ origin: Optional[pulumi.Input[builtins.str]] = None,
149
+ schema: Optional[pulumi.Input[builtins.str]] = None,
150
+ show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['GitRepositoryShowOutputArgs']]]] = None):
151
+ """
152
+ Input properties used for looking up and filtering GitRepository resources.
153
+ :param pulumi.Input[builtins.str] api_integration: Identifier of API INTEGRATION containing information about the remote Git repository such as allowed credentials and prefixes for target URLs.
154
+ :param pulumi.Input[builtins.str] comment: Specifies a comment for the git repository.
155
+ :param pulumi.Input[builtins.str] database: The database in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
156
+ :param pulumi.Input[Sequence[pulumi.Input['GitRepositoryDescribeOutputArgs']]] describe_outputs: Outputs the result of `DESCRIBE GIT REPOSITORY` for the given git repository.
157
+ :param pulumi.Input[builtins.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).
158
+ :param pulumi.Input[builtins.str] git_credentials: Specifies the Snowflake secret fully qualified name (e.g `"\\"<db_name>\\".\\"<schema_name>\\".\\"<secret_name>\\""`) containing the credentials to use for authenticating with the remote Git repository. Omit this parameter to use the default secret specified by the API integration or if this integration does not require authentication.
159
+ :param pulumi.Input[builtins.str] name: Specifies the identifier for the git repository; must be unique for the schema in which the git repository is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
160
+ :param pulumi.Input[builtins.str] origin: Specifies the origin URL of the remote Git repository that this Git repository clone represents. The URL must use HTTPS.
161
+ :param pulumi.Input[builtins.str] schema: The schema in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
162
+ :param pulumi.Input[Sequence[pulumi.Input['GitRepositoryShowOutputArgs']]] show_outputs: Outputs the result of `SHOW GIT REPOSITORIES` for the given git repository.
163
+ """
164
+ if api_integration is not None:
165
+ pulumi.set(__self__, "api_integration", api_integration)
166
+ if comment is not None:
167
+ pulumi.set(__self__, "comment", comment)
168
+ if database is not None:
169
+ pulumi.set(__self__, "database", database)
170
+ if describe_outputs is not None:
171
+ pulumi.set(__self__, "describe_outputs", describe_outputs)
172
+ if fully_qualified_name is not None:
173
+ pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
174
+ if git_credentials is not None:
175
+ pulumi.set(__self__, "git_credentials", git_credentials)
176
+ if name is not None:
177
+ pulumi.set(__self__, "name", name)
178
+ if origin is not None:
179
+ pulumi.set(__self__, "origin", origin)
180
+ if schema is not None:
181
+ pulumi.set(__self__, "schema", schema)
182
+ if show_outputs is not None:
183
+ pulumi.set(__self__, "show_outputs", show_outputs)
184
+
185
+ @property
186
+ @pulumi.getter(name="apiIntegration")
187
+ def api_integration(self) -> Optional[pulumi.Input[builtins.str]]:
188
+ """
189
+ Identifier of API INTEGRATION containing information about the remote Git repository such as allowed credentials and prefixes for target URLs.
190
+ """
191
+ return pulumi.get(self, "api_integration")
192
+
193
+ @api_integration.setter
194
+ def api_integration(self, value: Optional[pulumi.Input[builtins.str]]):
195
+ pulumi.set(self, "api_integration", value)
196
+
197
+ @property
198
+ @pulumi.getter
199
+ def comment(self) -> Optional[pulumi.Input[builtins.str]]:
200
+ """
201
+ Specifies a comment for the git repository.
202
+ """
203
+ return pulumi.get(self, "comment")
204
+
205
+ @comment.setter
206
+ def comment(self, value: Optional[pulumi.Input[builtins.str]]):
207
+ pulumi.set(self, "comment", value)
208
+
209
+ @property
210
+ @pulumi.getter
211
+ def database(self) -> Optional[pulumi.Input[builtins.str]]:
212
+ """
213
+ The database in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
214
+ """
215
+ return pulumi.get(self, "database")
216
+
217
+ @database.setter
218
+ def database(self, value: Optional[pulumi.Input[builtins.str]]):
219
+ pulumi.set(self, "database", value)
220
+
221
+ @property
222
+ @pulumi.getter(name="describeOutputs")
223
+ def describe_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['GitRepositoryDescribeOutputArgs']]]]:
224
+ """
225
+ Outputs the result of `DESCRIBE GIT REPOSITORY` for the given git repository.
226
+ """
227
+ return pulumi.get(self, "describe_outputs")
228
+
229
+ @describe_outputs.setter
230
+ def describe_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['GitRepositoryDescribeOutputArgs']]]]):
231
+ pulumi.set(self, "describe_outputs", value)
232
+
233
+ @property
234
+ @pulumi.getter(name="fullyQualifiedName")
235
+ def fully_qualified_name(self) -> Optional[pulumi.Input[builtins.str]]:
236
+ """
237
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
238
+ """
239
+ return pulumi.get(self, "fully_qualified_name")
240
+
241
+ @fully_qualified_name.setter
242
+ def fully_qualified_name(self, value: Optional[pulumi.Input[builtins.str]]):
243
+ pulumi.set(self, "fully_qualified_name", value)
244
+
245
+ @property
246
+ @pulumi.getter(name="gitCredentials")
247
+ def git_credentials(self) -> Optional[pulumi.Input[builtins.str]]:
248
+ """
249
+ Specifies the Snowflake secret fully qualified name (e.g `"\\"<db_name>\\".\\"<schema_name>\\".\\"<secret_name>\\""`) containing the credentials to use for authenticating with the remote Git repository. Omit this parameter to use the default secret specified by the API integration or if this integration does not require authentication.
250
+ """
251
+ return pulumi.get(self, "git_credentials")
252
+
253
+ @git_credentials.setter
254
+ def git_credentials(self, value: Optional[pulumi.Input[builtins.str]]):
255
+ pulumi.set(self, "git_credentials", value)
256
+
257
+ @property
258
+ @pulumi.getter
259
+ def name(self) -> Optional[pulumi.Input[builtins.str]]:
260
+ """
261
+ Specifies the identifier for the git repository; must be unique for the schema in which the git repository is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
262
+ """
263
+ return pulumi.get(self, "name")
264
+
265
+ @name.setter
266
+ def name(self, value: Optional[pulumi.Input[builtins.str]]):
267
+ pulumi.set(self, "name", value)
268
+
269
+ @property
270
+ @pulumi.getter
271
+ def origin(self) -> Optional[pulumi.Input[builtins.str]]:
272
+ """
273
+ Specifies the origin URL of the remote Git repository that this Git repository clone represents. The URL must use HTTPS.
274
+ """
275
+ return pulumi.get(self, "origin")
276
+
277
+ @origin.setter
278
+ def origin(self, value: Optional[pulumi.Input[builtins.str]]):
279
+ pulumi.set(self, "origin", value)
280
+
281
+ @property
282
+ @pulumi.getter
283
+ def schema(self) -> Optional[pulumi.Input[builtins.str]]:
284
+ """
285
+ The schema in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
286
+ """
287
+ return pulumi.get(self, "schema")
288
+
289
+ @schema.setter
290
+ def schema(self, value: Optional[pulumi.Input[builtins.str]]):
291
+ pulumi.set(self, "schema", value)
292
+
293
+ @property
294
+ @pulumi.getter(name="showOutputs")
295
+ def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['GitRepositoryShowOutputArgs']]]]:
296
+ """
297
+ Outputs the result of `SHOW GIT REPOSITORIES` for the given git repository.
298
+ """
299
+ return pulumi.get(self, "show_outputs")
300
+
301
+ @show_outputs.setter
302
+ def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['GitRepositoryShowOutputArgs']]]]):
303
+ pulumi.set(self, "show_outputs", value)
304
+
305
+
306
+ @pulumi.type_token("snowflake:index/gitRepository:GitRepository")
307
+ class GitRepository(pulumi.CustomResource):
308
+ @overload
309
+ def __init__(__self__,
310
+ resource_name: str,
311
+ opts: Optional[pulumi.ResourceOptions] = None,
312
+ api_integration: Optional[pulumi.Input[builtins.str]] = None,
313
+ comment: Optional[pulumi.Input[builtins.str]] = None,
314
+ database: Optional[pulumi.Input[builtins.str]] = None,
315
+ git_credentials: Optional[pulumi.Input[builtins.str]] = None,
316
+ name: Optional[pulumi.Input[builtins.str]] = None,
317
+ origin: Optional[pulumi.Input[builtins.str]] = None,
318
+ schema: Optional[pulumi.Input[builtins.str]] = None,
319
+ __props__=None):
320
+ """
321
+ ## Import
322
+
323
+ ```sh
324
+ $ pulumi import snowflake:index/gitRepository:GitRepository example '"<db_name>"."<schema_name>"."<git_repository_name>"'
325
+ ```
326
+
327
+ :param str resource_name: The name of the resource.
328
+ :param pulumi.ResourceOptions opts: Options for the resource.
329
+ :param pulumi.Input[builtins.str] api_integration: Identifier of API INTEGRATION containing information about the remote Git repository such as allowed credentials and prefixes for target URLs.
330
+ :param pulumi.Input[builtins.str] comment: Specifies a comment for the git repository.
331
+ :param pulumi.Input[builtins.str] database: The database in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
332
+ :param pulumi.Input[builtins.str] git_credentials: Specifies the Snowflake secret fully qualified name (e.g `"\\"<db_name>\\".\\"<schema_name>\\".\\"<secret_name>\\""`) containing the credentials to use for authenticating with the remote Git repository. Omit this parameter to use the default secret specified by the API integration or if this integration does not require authentication.
333
+ :param pulumi.Input[builtins.str] name: Specifies the identifier for the git repository; must be unique for the schema in which the git repository is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
334
+ :param pulumi.Input[builtins.str] origin: Specifies the origin URL of the remote Git repository that this Git repository clone represents. The URL must use HTTPS.
335
+ :param pulumi.Input[builtins.str] schema: The schema in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
336
+ """
337
+ ...
338
+ @overload
339
+ def __init__(__self__,
340
+ resource_name: str,
341
+ args: GitRepositoryArgs,
342
+ opts: Optional[pulumi.ResourceOptions] = None):
343
+ """
344
+ ## Import
345
+
346
+ ```sh
347
+ $ pulumi import snowflake:index/gitRepository:GitRepository example '"<db_name>"."<schema_name>"."<git_repository_name>"'
348
+ ```
349
+
350
+ :param str resource_name: The name of the resource.
351
+ :param GitRepositoryArgs args: The arguments to use to populate this resource's properties.
352
+ :param pulumi.ResourceOptions opts: Options for the resource.
353
+ """
354
+ ...
355
+ def __init__(__self__, resource_name: str, *args, **kwargs):
356
+ resource_args, opts = _utilities.get_resource_args_opts(GitRepositoryArgs, pulumi.ResourceOptions, *args, **kwargs)
357
+ if resource_args is not None:
358
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
359
+ else:
360
+ __self__._internal_init(resource_name, *args, **kwargs)
361
+
362
+ def _internal_init(__self__,
363
+ resource_name: str,
364
+ opts: Optional[pulumi.ResourceOptions] = None,
365
+ api_integration: Optional[pulumi.Input[builtins.str]] = None,
366
+ comment: Optional[pulumi.Input[builtins.str]] = None,
367
+ database: Optional[pulumi.Input[builtins.str]] = None,
368
+ git_credentials: Optional[pulumi.Input[builtins.str]] = None,
369
+ name: Optional[pulumi.Input[builtins.str]] = None,
370
+ origin: Optional[pulumi.Input[builtins.str]] = None,
371
+ schema: Optional[pulumi.Input[builtins.str]] = None,
372
+ __props__=None):
373
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
374
+ if not isinstance(opts, pulumi.ResourceOptions):
375
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
376
+ if opts.id is None:
377
+ if __props__ is not None:
378
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
379
+ __props__ = GitRepositoryArgs.__new__(GitRepositoryArgs)
380
+
381
+ if api_integration is None and not opts.urn:
382
+ raise TypeError("Missing required property 'api_integration'")
383
+ __props__.__dict__["api_integration"] = api_integration
384
+ __props__.__dict__["comment"] = comment
385
+ if database is None and not opts.urn:
386
+ raise TypeError("Missing required property 'database'")
387
+ __props__.__dict__["database"] = database
388
+ __props__.__dict__["git_credentials"] = git_credentials
389
+ __props__.__dict__["name"] = name
390
+ if origin is None and not opts.urn:
391
+ raise TypeError("Missing required property 'origin'")
392
+ __props__.__dict__["origin"] = origin
393
+ if schema is None and not opts.urn:
394
+ raise TypeError("Missing required property 'schema'")
395
+ __props__.__dict__["schema"] = schema
396
+ __props__.__dict__["describe_outputs"] = None
397
+ __props__.__dict__["fully_qualified_name"] = None
398
+ __props__.__dict__["show_outputs"] = None
399
+ super(GitRepository, __self__).__init__(
400
+ 'snowflake:index/gitRepository:GitRepository',
401
+ resource_name,
402
+ __props__,
403
+ opts)
404
+
405
+ @staticmethod
406
+ def get(resource_name: str,
407
+ id: pulumi.Input[str],
408
+ opts: Optional[pulumi.ResourceOptions] = None,
409
+ api_integration: Optional[pulumi.Input[builtins.str]] = None,
410
+ comment: Optional[pulumi.Input[builtins.str]] = None,
411
+ database: Optional[pulumi.Input[builtins.str]] = None,
412
+ describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['GitRepositoryDescribeOutputArgs', 'GitRepositoryDescribeOutputArgsDict']]]]] = None,
413
+ fully_qualified_name: Optional[pulumi.Input[builtins.str]] = None,
414
+ git_credentials: Optional[pulumi.Input[builtins.str]] = None,
415
+ name: Optional[pulumi.Input[builtins.str]] = None,
416
+ origin: Optional[pulumi.Input[builtins.str]] = None,
417
+ schema: Optional[pulumi.Input[builtins.str]] = None,
418
+ show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['GitRepositoryShowOutputArgs', 'GitRepositoryShowOutputArgsDict']]]]] = None) -> 'GitRepository':
419
+ """
420
+ Get an existing GitRepository resource's state with the given name, id, and optional extra
421
+ properties used to qualify the lookup.
422
+
423
+ :param str resource_name: The unique name of the resulting resource.
424
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
425
+ :param pulumi.ResourceOptions opts: Options for the resource.
426
+ :param pulumi.Input[builtins.str] api_integration: Identifier of API INTEGRATION containing information about the remote Git repository such as allowed credentials and prefixes for target URLs.
427
+ :param pulumi.Input[builtins.str] comment: Specifies a comment for the git repository.
428
+ :param pulumi.Input[builtins.str] database: The database in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
429
+ :param pulumi.Input[Sequence[pulumi.Input[Union['GitRepositoryDescribeOutputArgs', 'GitRepositoryDescribeOutputArgsDict']]]] describe_outputs: Outputs the result of `DESCRIBE GIT REPOSITORY` for the given git repository.
430
+ :param pulumi.Input[builtins.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).
431
+ :param pulumi.Input[builtins.str] git_credentials: Specifies the Snowflake secret fully qualified name (e.g `"\\"<db_name>\\".\\"<schema_name>\\".\\"<secret_name>\\""`) containing the credentials to use for authenticating with the remote Git repository. Omit this parameter to use the default secret specified by the API integration or if this integration does not require authentication.
432
+ :param pulumi.Input[builtins.str] name: Specifies the identifier for the git repository; must be unique for the schema in which the git repository is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
433
+ :param pulumi.Input[builtins.str] origin: Specifies the origin URL of the remote Git repository that this Git repository clone represents. The URL must use HTTPS.
434
+ :param pulumi.Input[builtins.str] schema: The schema in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
435
+ :param pulumi.Input[Sequence[pulumi.Input[Union['GitRepositoryShowOutputArgs', 'GitRepositoryShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW GIT REPOSITORIES` for the given git repository.
436
+ """
437
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
438
+
439
+ __props__ = _GitRepositoryState.__new__(_GitRepositoryState)
440
+
441
+ __props__.__dict__["api_integration"] = api_integration
442
+ __props__.__dict__["comment"] = comment
443
+ __props__.__dict__["database"] = database
444
+ __props__.__dict__["describe_outputs"] = describe_outputs
445
+ __props__.__dict__["fully_qualified_name"] = fully_qualified_name
446
+ __props__.__dict__["git_credentials"] = git_credentials
447
+ __props__.__dict__["name"] = name
448
+ __props__.__dict__["origin"] = origin
449
+ __props__.__dict__["schema"] = schema
450
+ __props__.__dict__["show_outputs"] = show_outputs
451
+ return GitRepository(resource_name, opts=opts, __props__=__props__)
452
+
453
+ @property
454
+ @pulumi.getter(name="apiIntegration")
455
+ def api_integration(self) -> pulumi.Output[builtins.str]:
456
+ """
457
+ Identifier of API INTEGRATION containing information about the remote Git repository such as allowed credentials and prefixes for target URLs.
458
+ """
459
+ return pulumi.get(self, "api_integration")
460
+
461
+ @property
462
+ @pulumi.getter
463
+ def comment(self) -> pulumi.Output[Optional[builtins.str]]:
464
+ """
465
+ Specifies a comment for the git repository.
466
+ """
467
+ return pulumi.get(self, "comment")
468
+
469
+ @property
470
+ @pulumi.getter
471
+ def database(self) -> pulumi.Output[builtins.str]:
472
+ """
473
+ The database in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
474
+ """
475
+ return pulumi.get(self, "database")
476
+
477
+ @property
478
+ @pulumi.getter(name="describeOutputs")
479
+ def describe_outputs(self) -> pulumi.Output[Sequence['outputs.GitRepositoryDescribeOutput']]:
480
+ """
481
+ Outputs the result of `DESCRIBE GIT REPOSITORY` for the given git repository.
482
+ """
483
+ return pulumi.get(self, "describe_outputs")
484
+
485
+ @property
486
+ @pulumi.getter(name="fullyQualifiedName")
487
+ def fully_qualified_name(self) -> pulumi.Output[builtins.str]:
488
+ """
489
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
490
+ """
491
+ return pulumi.get(self, "fully_qualified_name")
492
+
493
+ @property
494
+ @pulumi.getter(name="gitCredentials")
495
+ def git_credentials(self) -> pulumi.Output[Optional[builtins.str]]:
496
+ """
497
+ Specifies the Snowflake secret fully qualified name (e.g `"\\"<db_name>\\".\\"<schema_name>\\".\\"<secret_name>\\""`) containing the credentials to use for authenticating with the remote Git repository. Omit this parameter to use the default secret specified by the API integration or if this integration does not require authentication.
498
+ """
499
+ return pulumi.get(self, "git_credentials")
500
+
501
+ @property
502
+ @pulumi.getter
503
+ def name(self) -> pulumi.Output[builtins.str]:
504
+ """
505
+ Specifies the identifier for the git repository; must be unique for the schema in which the git repository is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
506
+ """
507
+ return pulumi.get(self, "name")
508
+
509
+ @property
510
+ @pulumi.getter
511
+ def origin(self) -> pulumi.Output[builtins.str]:
512
+ """
513
+ Specifies the origin URL of the remote Git repository that this Git repository clone represents. The URL must use HTTPS.
514
+ """
515
+ return pulumi.get(self, "origin")
516
+
517
+ @property
518
+ @pulumi.getter
519
+ def schema(self) -> pulumi.Output[builtins.str]:
520
+ """
521
+ The schema in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
522
+ """
523
+ return pulumi.get(self, "schema")
524
+
525
+ @property
526
+ @pulumi.getter(name="showOutputs")
527
+ def show_outputs(self) -> pulumi.Output[Sequence['outputs.GitRepositoryShowOutput']]:
528
+ """
529
+ Outputs the result of `SHOW GIT REPOSITORIES` for the given git repository.
530
+ """
531
+ return pulumi.get(self, "show_outputs")
532
+