pulumi-snowflake 2.7.0a1759215867__py3-none-any.whl → 2.11.0a1766126285__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.
@@ -0,0 +1,535 @@
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 as _builtins
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__ = ['SemanticViewArgs', 'SemanticView']
20
+
21
+ @pulumi.input_type
22
+ class SemanticViewArgs:
23
+ def __init__(__self__, *,
24
+ database: pulumi.Input[_builtins.str],
25
+ schema: pulumi.Input[_builtins.str],
26
+ tables: pulumi.Input[Sequence[pulumi.Input['SemanticViewTableArgs']]],
27
+ comment: Optional[pulumi.Input[_builtins.str]] = None,
28
+ dimensions: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewDimensionArgs']]]] = None,
29
+ facts: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewFactArgs']]]] = None,
30
+ metrics: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewMetricArgs']]]] = None,
31
+ name: Optional[pulumi.Input[_builtins.str]] = None,
32
+ relationships: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewRelationshipArgs']]]] = None):
33
+ """
34
+ The set of arguments for constructing a SemanticView resource.
35
+ :param pulumi.Input[_builtins.str] database: The database in which to create the semantic view. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
36
+ :param pulumi.Input[_builtins.str] schema: The schema in which to create the semantic view. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
37
+ :param pulumi.Input[_builtins.str] comment: Specifies a comment for the semantic view.
38
+ :param pulumi.Input[_builtins.str] name: Specifies the identifier for the semantic view; must be unique within the schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
39
+ """
40
+ pulumi.set(__self__, "database", database)
41
+ pulumi.set(__self__, "schema", schema)
42
+ pulumi.set(__self__, "tables", tables)
43
+ if comment is not None:
44
+ pulumi.set(__self__, "comment", comment)
45
+ if dimensions is not None:
46
+ pulumi.set(__self__, "dimensions", dimensions)
47
+ if facts is not None:
48
+ pulumi.set(__self__, "facts", facts)
49
+ if metrics is not None:
50
+ pulumi.set(__self__, "metrics", metrics)
51
+ if name is not None:
52
+ pulumi.set(__self__, "name", name)
53
+ if relationships is not None:
54
+ pulumi.set(__self__, "relationships", relationships)
55
+
56
+ @_builtins.property
57
+ @pulumi.getter
58
+ def database(self) -> pulumi.Input[_builtins.str]:
59
+ """
60
+ The database in which to create the semantic view. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
61
+ """
62
+ return pulumi.get(self, "database")
63
+
64
+ @database.setter
65
+ def database(self, value: pulumi.Input[_builtins.str]):
66
+ pulumi.set(self, "database", value)
67
+
68
+ @_builtins.property
69
+ @pulumi.getter
70
+ def schema(self) -> pulumi.Input[_builtins.str]:
71
+ """
72
+ The schema in which to create the semantic view. 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[_builtins.str]):
78
+ pulumi.set(self, "schema", value)
79
+
80
+ @_builtins.property
81
+ @pulumi.getter
82
+ def tables(self) -> pulumi.Input[Sequence[pulumi.Input['SemanticViewTableArgs']]]:
83
+ return pulumi.get(self, "tables")
84
+
85
+ @tables.setter
86
+ def tables(self, value: pulumi.Input[Sequence[pulumi.Input['SemanticViewTableArgs']]]):
87
+ pulumi.set(self, "tables", value)
88
+
89
+ @_builtins.property
90
+ @pulumi.getter
91
+ def comment(self) -> Optional[pulumi.Input[_builtins.str]]:
92
+ """
93
+ Specifies a comment for the semantic view.
94
+ """
95
+ return pulumi.get(self, "comment")
96
+
97
+ @comment.setter
98
+ def comment(self, value: Optional[pulumi.Input[_builtins.str]]):
99
+ pulumi.set(self, "comment", value)
100
+
101
+ @_builtins.property
102
+ @pulumi.getter
103
+ def dimensions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewDimensionArgs']]]]:
104
+ return pulumi.get(self, "dimensions")
105
+
106
+ @dimensions.setter
107
+ def dimensions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewDimensionArgs']]]]):
108
+ pulumi.set(self, "dimensions", value)
109
+
110
+ @_builtins.property
111
+ @pulumi.getter
112
+ def facts(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewFactArgs']]]]:
113
+ return pulumi.get(self, "facts")
114
+
115
+ @facts.setter
116
+ def facts(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewFactArgs']]]]):
117
+ pulumi.set(self, "facts", value)
118
+
119
+ @_builtins.property
120
+ @pulumi.getter
121
+ def metrics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewMetricArgs']]]]:
122
+ return pulumi.get(self, "metrics")
123
+
124
+ @metrics.setter
125
+ def metrics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewMetricArgs']]]]):
126
+ pulumi.set(self, "metrics", value)
127
+
128
+ @_builtins.property
129
+ @pulumi.getter
130
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
131
+ """
132
+ Specifies the identifier for the semantic view; must be unique within the schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
133
+ """
134
+ return pulumi.get(self, "name")
135
+
136
+ @name.setter
137
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
138
+ pulumi.set(self, "name", value)
139
+
140
+ @_builtins.property
141
+ @pulumi.getter
142
+ def relationships(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewRelationshipArgs']]]]:
143
+ return pulumi.get(self, "relationships")
144
+
145
+ @relationships.setter
146
+ def relationships(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewRelationshipArgs']]]]):
147
+ pulumi.set(self, "relationships", value)
148
+
149
+
150
+ @pulumi.input_type
151
+ class _SemanticViewState:
152
+ def __init__(__self__, *,
153
+ comment: Optional[pulumi.Input[_builtins.str]] = None,
154
+ database: Optional[pulumi.Input[_builtins.str]] = None,
155
+ dimensions: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewDimensionArgs']]]] = None,
156
+ facts: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewFactArgs']]]] = None,
157
+ fully_qualified_name: Optional[pulumi.Input[_builtins.str]] = None,
158
+ metrics: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewMetricArgs']]]] = None,
159
+ name: Optional[pulumi.Input[_builtins.str]] = None,
160
+ relationships: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewRelationshipArgs']]]] = None,
161
+ schema: Optional[pulumi.Input[_builtins.str]] = None,
162
+ show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewShowOutputArgs']]]] = None,
163
+ tables: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewTableArgs']]]] = None):
164
+ """
165
+ Input properties used for looking up and filtering SemanticView resources.
166
+ :param pulumi.Input[_builtins.str] comment: Specifies a comment for the semantic view.
167
+ :param pulumi.Input[_builtins.str] database: The database in which to create the semantic view. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
168
+ :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).
169
+ :param pulumi.Input[_builtins.str] name: Specifies the identifier for the semantic view; must be unique within the schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
170
+ :param pulumi.Input[_builtins.str] schema: The schema in which to create the semantic view. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
171
+ :param pulumi.Input[Sequence[pulumi.Input['SemanticViewShowOutputArgs']]] show_outputs: Outputs the result of `SHOW SEMANTIC VIEWS` for the given semantic view.
172
+ """
173
+ if comment is not None:
174
+ pulumi.set(__self__, "comment", comment)
175
+ if database is not None:
176
+ pulumi.set(__self__, "database", database)
177
+ if dimensions is not None:
178
+ pulumi.set(__self__, "dimensions", dimensions)
179
+ if facts is not None:
180
+ pulumi.set(__self__, "facts", facts)
181
+ if fully_qualified_name is not None:
182
+ pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
183
+ if metrics is not None:
184
+ pulumi.set(__self__, "metrics", metrics)
185
+ if name is not None:
186
+ pulumi.set(__self__, "name", name)
187
+ if relationships is not None:
188
+ pulumi.set(__self__, "relationships", relationships)
189
+ if schema is not None:
190
+ pulumi.set(__self__, "schema", schema)
191
+ if show_outputs is not None:
192
+ pulumi.set(__self__, "show_outputs", show_outputs)
193
+ if tables is not None:
194
+ pulumi.set(__self__, "tables", tables)
195
+
196
+ @_builtins.property
197
+ @pulumi.getter
198
+ def comment(self) -> Optional[pulumi.Input[_builtins.str]]:
199
+ """
200
+ Specifies a comment for the semantic view.
201
+ """
202
+ return pulumi.get(self, "comment")
203
+
204
+ @comment.setter
205
+ def comment(self, value: Optional[pulumi.Input[_builtins.str]]):
206
+ pulumi.set(self, "comment", value)
207
+
208
+ @_builtins.property
209
+ @pulumi.getter
210
+ def database(self) -> Optional[pulumi.Input[_builtins.str]]:
211
+ """
212
+ The database in which to create the semantic view. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
213
+ """
214
+ return pulumi.get(self, "database")
215
+
216
+ @database.setter
217
+ def database(self, value: Optional[pulumi.Input[_builtins.str]]):
218
+ pulumi.set(self, "database", value)
219
+
220
+ @_builtins.property
221
+ @pulumi.getter
222
+ def dimensions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewDimensionArgs']]]]:
223
+ return pulumi.get(self, "dimensions")
224
+
225
+ @dimensions.setter
226
+ def dimensions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewDimensionArgs']]]]):
227
+ pulumi.set(self, "dimensions", value)
228
+
229
+ @_builtins.property
230
+ @pulumi.getter
231
+ def facts(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewFactArgs']]]]:
232
+ return pulumi.get(self, "facts")
233
+
234
+ @facts.setter
235
+ def facts(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewFactArgs']]]]):
236
+ pulumi.set(self, "facts", value)
237
+
238
+ @_builtins.property
239
+ @pulumi.getter(name="fullyQualifiedName")
240
+ def fully_qualified_name(self) -> Optional[pulumi.Input[_builtins.str]]:
241
+ """
242
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
243
+ """
244
+ return pulumi.get(self, "fully_qualified_name")
245
+
246
+ @fully_qualified_name.setter
247
+ def fully_qualified_name(self, value: Optional[pulumi.Input[_builtins.str]]):
248
+ pulumi.set(self, "fully_qualified_name", value)
249
+
250
+ @_builtins.property
251
+ @pulumi.getter
252
+ def metrics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewMetricArgs']]]]:
253
+ return pulumi.get(self, "metrics")
254
+
255
+ @metrics.setter
256
+ def metrics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewMetricArgs']]]]):
257
+ pulumi.set(self, "metrics", value)
258
+
259
+ @_builtins.property
260
+ @pulumi.getter
261
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
262
+ """
263
+ Specifies the identifier for the semantic view; must be unique within the schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
264
+ """
265
+ return pulumi.get(self, "name")
266
+
267
+ @name.setter
268
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
269
+ pulumi.set(self, "name", value)
270
+
271
+ @_builtins.property
272
+ @pulumi.getter
273
+ def relationships(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewRelationshipArgs']]]]:
274
+ return pulumi.get(self, "relationships")
275
+
276
+ @relationships.setter
277
+ def relationships(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewRelationshipArgs']]]]):
278
+ pulumi.set(self, "relationships", value)
279
+
280
+ @_builtins.property
281
+ @pulumi.getter
282
+ def schema(self) -> Optional[pulumi.Input[_builtins.str]]:
283
+ """
284
+ The schema in which to create the semantic view. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
285
+ """
286
+ return pulumi.get(self, "schema")
287
+
288
+ @schema.setter
289
+ def schema(self, value: Optional[pulumi.Input[_builtins.str]]):
290
+ pulumi.set(self, "schema", value)
291
+
292
+ @_builtins.property
293
+ @pulumi.getter(name="showOutputs")
294
+ def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewShowOutputArgs']]]]:
295
+ """
296
+ Outputs the result of `SHOW SEMANTIC VIEWS` for the given semantic view.
297
+ """
298
+ return pulumi.get(self, "show_outputs")
299
+
300
+ @show_outputs.setter
301
+ def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewShowOutputArgs']]]]):
302
+ pulumi.set(self, "show_outputs", value)
303
+
304
+ @_builtins.property
305
+ @pulumi.getter
306
+ def tables(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewTableArgs']]]]:
307
+ return pulumi.get(self, "tables")
308
+
309
+ @tables.setter
310
+ def tables(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SemanticViewTableArgs']]]]):
311
+ pulumi.set(self, "tables", value)
312
+
313
+
314
+ @pulumi.type_token("snowflake:index/semanticView:SemanticView")
315
+ class SemanticView(pulumi.CustomResource):
316
+ @overload
317
+ def __init__(__self__,
318
+ resource_name: str,
319
+ opts: Optional[pulumi.ResourceOptions] = None,
320
+ comment: Optional[pulumi.Input[_builtins.str]] = None,
321
+ database: Optional[pulumi.Input[_builtins.str]] = None,
322
+ dimensions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SemanticViewDimensionArgs', 'SemanticViewDimensionArgsDict']]]]] = None,
323
+ facts: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SemanticViewFactArgs', 'SemanticViewFactArgsDict']]]]] = None,
324
+ metrics: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SemanticViewMetricArgs', 'SemanticViewMetricArgsDict']]]]] = None,
325
+ name: Optional[pulumi.Input[_builtins.str]] = None,
326
+ relationships: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SemanticViewRelationshipArgs', 'SemanticViewRelationshipArgsDict']]]]] = None,
327
+ schema: Optional[pulumi.Input[_builtins.str]] = None,
328
+ tables: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SemanticViewTableArgs', 'SemanticViewTableArgsDict']]]]] = None,
329
+ __props__=None):
330
+ """
331
+ ## Import
332
+
333
+ ```sh
334
+ $ pulumi import snowflake:index/semanticView:SemanticView example '"<db_name>"."<schema_name>"."<semantic_view_name>"'
335
+ ```
336
+
337
+ Note: Because the external changes for `dimensions`, `facts`, `metrics`, `relationships`, and `tables` are not currently handled, then import won't populate these fields too.
338
+
339
+ :param str resource_name: The name of the resource.
340
+ :param pulumi.ResourceOptions opts: Options for the resource.
341
+ :param pulumi.Input[_builtins.str] comment: Specifies a comment for the semantic view.
342
+ :param pulumi.Input[_builtins.str] database: The database in which to create the semantic view. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
343
+ :param pulumi.Input[_builtins.str] name: Specifies the identifier for the semantic view; must be unique within the schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
344
+ :param pulumi.Input[_builtins.str] schema: The schema in which to create the semantic view. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
345
+ """
346
+ ...
347
+ @overload
348
+ def __init__(__self__,
349
+ resource_name: str,
350
+ args: SemanticViewArgs,
351
+ opts: Optional[pulumi.ResourceOptions] = None):
352
+ """
353
+ ## Import
354
+
355
+ ```sh
356
+ $ pulumi import snowflake:index/semanticView:SemanticView example '"<db_name>"."<schema_name>"."<semantic_view_name>"'
357
+ ```
358
+
359
+ Note: Because the external changes for `dimensions`, `facts`, `metrics`, `relationships`, and `tables` are not currently handled, then import won't populate these fields too.
360
+
361
+ :param str resource_name: The name of the resource.
362
+ :param SemanticViewArgs args: The arguments to use to populate this resource's properties.
363
+ :param pulumi.ResourceOptions opts: Options for the resource.
364
+ """
365
+ ...
366
+ def __init__(__self__, resource_name: str, *args, **kwargs):
367
+ resource_args, opts = _utilities.get_resource_args_opts(SemanticViewArgs, pulumi.ResourceOptions, *args, **kwargs)
368
+ if resource_args is not None:
369
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
370
+ else:
371
+ __self__._internal_init(resource_name, *args, **kwargs)
372
+
373
+ def _internal_init(__self__,
374
+ resource_name: str,
375
+ opts: Optional[pulumi.ResourceOptions] = None,
376
+ comment: Optional[pulumi.Input[_builtins.str]] = None,
377
+ database: Optional[pulumi.Input[_builtins.str]] = None,
378
+ dimensions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SemanticViewDimensionArgs', 'SemanticViewDimensionArgsDict']]]]] = None,
379
+ facts: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SemanticViewFactArgs', 'SemanticViewFactArgsDict']]]]] = None,
380
+ metrics: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SemanticViewMetricArgs', 'SemanticViewMetricArgsDict']]]]] = None,
381
+ name: Optional[pulumi.Input[_builtins.str]] = None,
382
+ relationships: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SemanticViewRelationshipArgs', 'SemanticViewRelationshipArgsDict']]]]] = None,
383
+ schema: Optional[pulumi.Input[_builtins.str]] = None,
384
+ tables: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SemanticViewTableArgs', 'SemanticViewTableArgsDict']]]]] = None,
385
+ __props__=None):
386
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
387
+ if not isinstance(opts, pulumi.ResourceOptions):
388
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
389
+ if opts.id is None:
390
+ if __props__ is not None:
391
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
392
+ __props__ = SemanticViewArgs.__new__(SemanticViewArgs)
393
+
394
+ __props__.__dict__["comment"] = comment
395
+ if database is None and not opts.urn:
396
+ raise TypeError("Missing required property 'database'")
397
+ __props__.__dict__["database"] = database
398
+ __props__.__dict__["dimensions"] = dimensions
399
+ __props__.__dict__["facts"] = facts
400
+ __props__.__dict__["metrics"] = metrics
401
+ __props__.__dict__["name"] = name
402
+ __props__.__dict__["relationships"] = relationships
403
+ if schema is None and not opts.urn:
404
+ raise TypeError("Missing required property 'schema'")
405
+ __props__.__dict__["schema"] = schema
406
+ if tables is None and not opts.urn:
407
+ raise TypeError("Missing required property 'tables'")
408
+ __props__.__dict__["tables"] = tables
409
+ __props__.__dict__["fully_qualified_name"] = None
410
+ __props__.__dict__["show_outputs"] = None
411
+ super(SemanticView, __self__).__init__(
412
+ 'snowflake:index/semanticView:SemanticView',
413
+ resource_name,
414
+ __props__,
415
+ opts)
416
+
417
+ @staticmethod
418
+ def get(resource_name: str,
419
+ id: pulumi.Input[str],
420
+ opts: Optional[pulumi.ResourceOptions] = None,
421
+ comment: Optional[pulumi.Input[_builtins.str]] = None,
422
+ database: Optional[pulumi.Input[_builtins.str]] = None,
423
+ dimensions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SemanticViewDimensionArgs', 'SemanticViewDimensionArgsDict']]]]] = None,
424
+ facts: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SemanticViewFactArgs', 'SemanticViewFactArgsDict']]]]] = None,
425
+ fully_qualified_name: Optional[pulumi.Input[_builtins.str]] = None,
426
+ metrics: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SemanticViewMetricArgs', 'SemanticViewMetricArgsDict']]]]] = None,
427
+ name: Optional[pulumi.Input[_builtins.str]] = None,
428
+ relationships: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SemanticViewRelationshipArgs', 'SemanticViewRelationshipArgsDict']]]]] = None,
429
+ schema: Optional[pulumi.Input[_builtins.str]] = None,
430
+ show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SemanticViewShowOutputArgs', 'SemanticViewShowOutputArgsDict']]]]] = None,
431
+ tables: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SemanticViewTableArgs', 'SemanticViewTableArgsDict']]]]] = None) -> 'SemanticView':
432
+ """
433
+ Get an existing SemanticView resource's state with the given name, id, and optional extra
434
+ properties used to qualify the lookup.
435
+
436
+ :param str resource_name: The unique name of the resulting resource.
437
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
438
+ :param pulumi.ResourceOptions opts: Options for the resource.
439
+ :param pulumi.Input[_builtins.str] comment: Specifies a comment for the semantic view.
440
+ :param pulumi.Input[_builtins.str] database: The database in which to create the semantic view. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
441
+ :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).
442
+ :param pulumi.Input[_builtins.str] name: Specifies the identifier for the semantic view; must be unique within the schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
443
+ :param pulumi.Input[_builtins.str] schema: The schema in which to create the semantic view. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
444
+ :param pulumi.Input[Sequence[pulumi.Input[Union['SemanticViewShowOutputArgs', 'SemanticViewShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW SEMANTIC VIEWS` for the given semantic view.
445
+ """
446
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
447
+
448
+ __props__ = _SemanticViewState.__new__(_SemanticViewState)
449
+
450
+ __props__.__dict__["comment"] = comment
451
+ __props__.__dict__["database"] = database
452
+ __props__.__dict__["dimensions"] = dimensions
453
+ __props__.__dict__["facts"] = facts
454
+ __props__.__dict__["fully_qualified_name"] = fully_qualified_name
455
+ __props__.__dict__["metrics"] = metrics
456
+ __props__.__dict__["name"] = name
457
+ __props__.__dict__["relationships"] = relationships
458
+ __props__.__dict__["schema"] = schema
459
+ __props__.__dict__["show_outputs"] = show_outputs
460
+ __props__.__dict__["tables"] = tables
461
+ return SemanticView(resource_name, opts=opts, __props__=__props__)
462
+
463
+ @_builtins.property
464
+ @pulumi.getter
465
+ def comment(self) -> pulumi.Output[Optional[_builtins.str]]:
466
+ """
467
+ Specifies a comment for the semantic view.
468
+ """
469
+ return pulumi.get(self, "comment")
470
+
471
+ @_builtins.property
472
+ @pulumi.getter
473
+ def database(self) -> pulumi.Output[_builtins.str]:
474
+ """
475
+ The database in which to create the semantic view. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
476
+ """
477
+ return pulumi.get(self, "database")
478
+
479
+ @_builtins.property
480
+ @pulumi.getter
481
+ def dimensions(self) -> pulumi.Output[Optional[Sequence['outputs.SemanticViewDimension']]]:
482
+ return pulumi.get(self, "dimensions")
483
+
484
+ @_builtins.property
485
+ @pulumi.getter
486
+ def facts(self) -> pulumi.Output[Optional[Sequence['outputs.SemanticViewFact']]]:
487
+ return pulumi.get(self, "facts")
488
+
489
+ @_builtins.property
490
+ @pulumi.getter(name="fullyQualifiedName")
491
+ def fully_qualified_name(self) -> pulumi.Output[_builtins.str]:
492
+ """
493
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
494
+ """
495
+ return pulumi.get(self, "fully_qualified_name")
496
+
497
+ @_builtins.property
498
+ @pulumi.getter
499
+ def metrics(self) -> pulumi.Output[Optional[Sequence['outputs.SemanticViewMetric']]]:
500
+ return pulumi.get(self, "metrics")
501
+
502
+ @_builtins.property
503
+ @pulumi.getter
504
+ def name(self) -> pulumi.Output[_builtins.str]:
505
+ """
506
+ Specifies the identifier for the semantic view; must be unique within the schema. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
507
+ """
508
+ return pulumi.get(self, "name")
509
+
510
+ @_builtins.property
511
+ @pulumi.getter
512
+ def relationships(self) -> pulumi.Output[Optional[Sequence['outputs.SemanticViewRelationship']]]:
513
+ return pulumi.get(self, "relationships")
514
+
515
+ @_builtins.property
516
+ @pulumi.getter
517
+ def schema(self) -> pulumi.Output[_builtins.str]:
518
+ """
519
+ The schema in which to create the semantic view. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
520
+ """
521
+ return pulumi.get(self, "schema")
522
+
523
+ @_builtins.property
524
+ @pulumi.getter(name="showOutputs")
525
+ def show_outputs(self) -> pulumi.Output[Sequence['outputs.SemanticViewShowOutput']]:
526
+ """
527
+ Outputs the result of `SHOW SEMANTIC VIEWS` for the given semantic view.
528
+ """
529
+ return pulumi.get(self, "show_outputs")
530
+
531
+ @_builtins.property
532
+ @pulumi.getter
533
+ def tables(self) -> pulumi.Output[Sequence['outputs.SemanticViewTable']]:
534
+ return pulumi.get(self, "tables")
535
+