pulumi-snowflake 2.3.0a1753398370__py3-none-any.whl → 2.4.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 +28 -0
- pulumi_snowflake/_inputs.py +2164 -214
- pulumi_snowflake/config/__init__.pyi +3 -2
- pulumi_snowflake/config/vars.py +3 -2
- pulumi_snowflake/current_account.py +16 -16
- pulumi_snowflake/current_organization_account.py +5863 -0
- pulumi_snowflake/get_user_programmatic_access_tokens.py +113 -0
- pulumi_snowflake/listing.py +440 -0
- pulumi_snowflake/outputs.py +1476 -0
- pulumi_snowflake/provider.py +12 -8
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/storage_integration.py +51 -2
- pulumi_snowflake/user_programmatic_access_token.py +598 -0
- {pulumi_snowflake-2.3.0a1753398370.dist-info → pulumi_snowflake-2.4.0.dist-info}/METADATA +1 -1
- {pulumi_snowflake-2.3.0a1753398370.dist-info → pulumi_snowflake-2.4.0.dist-info}/RECORD +17 -13
- {pulumi_snowflake-2.3.0a1753398370.dist-info → pulumi_snowflake-2.4.0.dist-info}/WHEEL +0 -0
- {pulumi_snowflake-2.3.0a1753398370.dist-info → pulumi_snowflake-2.4.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,113 @@
|
|
|
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
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetUserProgrammaticAccessTokensResult',
|
|
20
|
+
'AwaitableGetUserProgrammaticAccessTokensResult',
|
|
21
|
+
'get_user_programmatic_access_tokens',
|
|
22
|
+
'get_user_programmatic_access_tokens_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetUserProgrammaticAccessTokensResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getUserProgrammaticAccessTokens.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, for_user=None, id=None, user_programmatic_access_tokens=None):
|
|
31
|
+
if for_user and not isinstance(for_user, str):
|
|
32
|
+
raise TypeError("Expected argument 'for_user' to be a str")
|
|
33
|
+
pulumi.set(__self__, "for_user", for_user)
|
|
34
|
+
if id and not isinstance(id, str):
|
|
35
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
36
|
+
pulumi.set(__self__, "id", id)
|
|
37
|
+
if user_programmatic_access_tokens and not isinstance(user_programmatic_access_tokens, list):
|
|
38
|
+
raise TypeError("Expected argument 'user_programmatic_access_tokens' to be a list")
|
|
39
|
+
pulumi.set(__self__, "user_programmatic_access_tokens", user_programmatic_access_tokens)
|
|
40
|
+
|
|
41
|
+
@_builtins.property
|
|
42
|
+
@pulumi.getter(name="forUser")
|
|
43
|
+
def for_user(self) -> _builtins.str:
|
|
44
|
+
"""
|
|
45
|
+
Returns programmatic access tokens for the specified user.
|
|
46
|
+
"""
|
|
47
|
+
return pulumi.get(self, "for_user")
|
|
48
|
+
|
|
49
|
+
@_builtins.property
|
|
50
|
+
@pulumi.getter
|
|
51
|
+
def id(self) -> _builtins.str:
|
|
52
|
+
"""
|
|
53
|
+
The provider-assigned unique ID for this managed resource.
|
|
54
|
+
"""
|
|
55
|
+
return pulumi.get(self, "id")
|
|
56
|
+
|
|
57
|
+
@_builtins.property
|
|
58
|
+
@pulumi.getter(name="userProgrammaticAccessTokens")
|
|
59
|
+
def user_programmatic_access_tokens(self) -> Sequence['outputs.GetUserProgrammaticAccessTokensUserProgrammaticAccessTokenResult']:
|
|
60
|
+
"""
|
|
61
|
+
Holds the aggregated output of all user programmatic access tokens details queries.
|
|
62
|
+
"""
|
|
63
|
+
return pulumi.get(self, "user_programmatic_access_tokens")
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class AwaitableGetUserProgrammaticAccessTokensResult(GetUserProgrammaticAccessTokensResult):
|
|
67
|
+
# pylint: disable=using-constant-test
|
|
68
|
+
def __await__(self):
|
|
69
|
+
if False:
|
|
70
|
+
yield self
|
|
71
|
+
return GetUserProgrammaticAccessTokensResult(
|
|
72
|
+
for_user=self.for_user,
|
|
73
|
+
id=self.id,
|
|
74
|
+
user_programmatic_access_tokens=self.user_programmatic_access_tokens)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def get_user_programmatic_access_tokens(for_user: Optional[_builtins.str] = None,
|
|
78
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetUserProgrammaticAccessTokensResult:
|
|
79
|
+
"""
|
|
80
|
+
!> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled` field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
81
|
+
|
|
82
|
+
Data source used to get details of filtered user programmatic access tokens. Filtering is aligned with the current possibilities for [SHOW USER PROGRAMMATIC ACCESS TOKENS](https://docs.snowflake.com/en/sql-reference/sql/show-user-programmatic-access-tokens) query. The results of SHOW are encapsulated in one output collection `user_programmatic_access_tokens`.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param _builtins.str for_user: Returns programmatic access tokens for the specified user.
|
|
86
|
+
"""
|
|
87
|
+
__args__ = dict()
|
|
88
|
+
__args__['forUser'] = for_user
|
|
89
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
90
|
+
__ret__ = pulumi.runtime.invoke('snowflake:index/getUserProgrammaticAccessTokens:getUserProgrammaticAccessTokens', __args__, opts=opts, typ=GetUserProgrammaticAccessTokensResult).value
|
|
91
|
+
|
|
92
|
+
return AwaitableGetUserProgrammaticAccessTokensResult(
|
|
93
|
+
for_user=pulumi.get(__ret__, 'for_user'),
|
|
94
|
+
id=pulumi.get(__ret__, 'id'),
|
|
95
|
+
user_programmatic_access_tokens=pulumi.get(__ret__, 'user_programmatic_access_tokens'))
|
|
96
|
+
def get_user_programmatic_access_tokens_output(for_user: Optional[pulumi.Input[_builtins.str]] = None,
|
|
97
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetUserProgrammaticAccessTokensResult]:
|
|
98
|
+
"""
|
|
99
|
+
!> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled` field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
100
|
+
|
|
101
|
+
Data source used to get details of filtered user programmatic access tokens. Filtering is aligned with the current possibilities for [SHOW USER PROGRAMMATIC ACCESS TOKENS](https://docs.snowflake.com/en/sql-reference/sql/show-user-programmatic-access-tokens) query. The results of SHOW are encapsulated in one output collection `user_programmatic_access_tokens`.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param _builtins.str for_user: Returns programmatic access tokens for the specified user.
|
|
105
|
+
"""
|
|
106
|
+
__args__ = dict()
|
|
107
|
+
__args__['forUser'] = for_user
|
|
108
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
109
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getUserProgrammaticAccessTokens:getUserProgrammaticAccessTokens', __args__, opts=opts, typ=GetUserProgrammaticAccessTokensResult)
|
|
110
|
+
return __ret__.apply(lambda __response__: GetUserProgrammaticAccessTokensResult(
|
|
111
|
+
for_user=pulumi.get(__response__, 'for_user'),
|
|
112
|
+
id=pulumi.get(__response__, 'id'),
|
|
113
|
+
user_programmatic_access_tokens=pulumi.get(__response__, 'user_programmatic_access_tokens')))
|
|
@@ -0,0 +1,440 @@
|
|
|
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__ = ['ListingArgs', 'Listing']
|
|
20
|
+
|
|
21
|
+
@pulumi.input_type
|
|
22
|
+
class ListingArgs:
|
|
23
|
+
def __init__(__self__, *,
|
|
24
|
+
manifest: pulumi.Input['ListingManifestArgs'],
|
|
25
|
+
application_package: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
|
+
comment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
27
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
28
|
+
publish: Optional[pulumi.Input[_builtins.str]] = None,
|
|
29
|
+
share: Optional[pulumi.Input[_builtins.str]] = None):
|
|
30
|
+
"""
|
|
31
|
+
The set of arguments for constructing a Listing resource.
|
|
32
|
+
:param pulumi.Input[_builtins.str] application_package: Specifies the application package attached to the listing.
|
|
33
|
+
:param pulumi.Input[_builtins.str] comment: Specifies a comment for the listing.
|
|
34
|
+
:param pulumi.Input[_builtins.str] name: Specifies the listing identifier (name). It must be unique within the organization, regardless of which Snowflake region the account is located in. Must start with an alphabetic character and cannot contain spaces or special characters except for underscores.
|
|
35
|
+
:param pulumi.Input[_builtins.str] publish: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Determines if the listing should be published.
|
|
36
|
+
:param pulumi.Input[_builtins.str] share: Specifies the identifier for the share to attach to the listing.
|
|
37
|
+
"""
|
|
38
|
+
pulumi.set(__self__, "manifest", manifest)
|
|
39
|
+
if application_package is not None:
|
|
40
|
+
pulumi.set(__self__, "application_package", application_package)
|
|
41
|
+
if comment is not None:
|
|
42
|
+
pulumi.set(__self__, "comment", comment)
|
|
43
|
+
if name is not None:
|
|
44
|
+
pulumi.set(__self__, "name", name)
|
|
45
|
+
if publish is not None:
|
|
46
|
+
pulumi.set(__self__, "publish", publish)
|
|
47
|
+
if share is not None:
|
|
48
|
+
pulumi.set(__self__, "share", share)
|
|
49
|
+
|
|
50
|
+
@_builtins.property
|
|
51
|
+
@pulumi.getter
|
|
52
|
+
def manifest(self) -> pulumi.Input['ListingManifestArgs']:
|
|
53
|
+
return pulumi.get(self, "manifest")
|
|
54
|
+
|
|
55
|
+
@manifest.setter
|
|
56
|
+
def manifest(self, value: pulumi.Input['ListingManifestArgs']):
|
|
57
|
+
pulumi.set(self, "manifest", value)
|
|
58
|
+
|
|
59
|
+
@_builtins.property
|
|
60
|
+
@pulumi.getter(name="applicationPackage")
|
|
61
|
+
def application_package(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
62
|
+
"""
|
|
63
|
+
Specifies the application package attached to the listing.
|
|
64
|
+
"""
|
|
65
|
+
return pulumi.get(self, "application_package")
|
|
66
|
+
|
|
67
|
+
@application_package.setter
|
|
68
|
+
def application_package(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
69
|
+
pulumi.set(self, "application_package", value)
|
|
70
|
+
|
|
71
|
+
@_builtins.property
|
|
72
|
+
@pulumi.getter
|
|
73
|
+
def comment(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
74
|
+
"""
|
|
75
|
+
Specifies a comment for the listing.
|
|
76
|
+
"""
|
|
77
|
+
return pulumi.get(self, "comment")
|
|
78
|
+
|
|
79
|
+
@comment.setter
|
|
80
|
+
def comment(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
81
|
+
pulumi.set(self, "comment", value)
|
|
82
|
+
|
|
83
|
+
@_builtins.property
|
|
84
|
+
@pulumi.getter
|
|
85
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
86
|
+
"""
|
|
87
|
+
Specifies the listing identifier (name). It must be unique within the organization, regardless of which Snowflake region the account is located in. Must start with an alphabetic character and cannot contain spaces or special characters except for underscores.
|
|
88
|
+
"""
|
|
89
|
+
return pulumi.get(self, "name")
|
|
90
|
+
|
|
91
|
+
@name.setter
|
|
92
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
93
|
+
pulumi.set(self, "name", value)
|
|
94
|
+
|
|
95
|
+
@_builtins.property
|
|
96
|
+
@pulumi.getter
|
|
97
|
+
def publish(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
98
|
+
"""
|
|
99
|
+
(Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Determines if the listing should be published.
|
|
100
|
+
"""
|
|
101
|
+
return pulumi.get(self, "publish")
|
|
102
|
+
|
|
103
|
+
@publish.setter
|
|
104
|
+
def publish(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
105
|
+
pulumi.set(self, "publish", value)
|
|
106
|
+
|
|
107
|
+
@_builtins.property
|
|
108
|
+
@pulumi.getter
|
|
109
|
+
def share(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
110
|
+
"""
|
|
111
|
+
Specifies the identifier for the share to attach to the listing.
|
|
112
|
+
"""
|
|
113
|
+
return pulumi.get(self, "share")
|
|
114
|
+
|
|
115
|
+
@share.setter
|
|
116
|
+
def share(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
117
|
+
pulumi.set(self, "share", value)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
@pulumi.input_type
|
|
121
|
+
class _ListingState:
|
|
122
|
+
def __init__(__self__, *,
|
|
123
|
+
application_package: Optional[pulumi.Input[_builtins.str]] = None,
|
|
124
|
+
comment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
125
|
+
fully_qualified_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
126
|
+
manifest: Optional[pulumi.Input['ListingManifestArgs']] = None,
|
|
127
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
128
|
+
publish: Optional[pulumi.Input[_builtins.str]] = None,
|
|
129
|
+
share: Optional[pulumi.Input[_builtins.str]] = None,
|
|
130
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['ListingShowOutputArgs']]]] = None):
|
|
131
|
+
"""
|
|
132
|
+
Input properties used for looking up and filtering Listing resources.
|
|
133
|
+
:param pulumi.Input[_builtins.str] application_package: Specifies the application package attached to the listing.
|
|
134
|
+
:param pulumi.Input[_builtins.str] comment: Specifies a comment for the listing.
|
|
135
|
+
: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).
|
|
136
|
+
:param pulumi.Input[_builtins.str] name: Specifies the listing identifier (name). It must be unique within the organization, regardless of which Snowflake region the account is located in. Must start with an alphabetic character and cannot contain spaces or special characters except for underscores.
|
|
137
|
+
:param pulumi.Input[_builtins.str] publish: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Determines if the listing should be published.
|
|
138
|
+
:param pulumi.Input[_builtins.str] share: Specifies the identifier for the share to attach to the listing.
|
|
139
|
+
:param pulumi.Input[Sequence[pulumi.Input['ListingShowOutputArgs']]] show_outputs: Outputs the result of `SHOW LISTINGS` for the given listing.
|
|
140
|
+
"""
|
|
141
|
+
if application_package is not None:
|
|
142
|
+
pulumi.set(__self__, "application_package", application_package)
|
|
143
|
+
if comment is not None:
|
|
144
|
+
pulumi.set(__self__, "comment", comment)
|
|
145
|
+
if fully_qualified_name is not None:
|
|
146
|
+
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
147
|
+
if manifest is not None:
|
|
148
|
+
pulumi.set(__self__, "manifest", manifest)
|
|
149
|
+
if name is not None:
|
|
150
|
+
pulumi.set(__self__, "name", name)
|
|
151
|
+
if publish is not None:
|
|
152
|
+
pulumi.set(__self__, "publish", publish)
|
|
153
|
+
if share is not None:
|
|
154
|
+
pulumi.set(__self__, "share", share)
|
|
155
|
+
if show_outputs is not None:
|
|
156
|
+
pulumi.set(__self__, "show_outputs", show_outputs)
|
|
157
|
+
|
|
158
|
+
@_builtins.property
|
|
159
|
+
@pulumi.getter(name="applicationPackage")
|
|
160
|
+
def application_package(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
161
|
+
"""
|
|
162
|
+
Specifies the application package attached to the listing.
|
|
163
|
+
"""
|
|
164
|
+
return pulumi.get(self, "application_package")
|
|
165
|
+
|
|
166
|
+
@application_package.setter
|
|
167
|
+
def application_package(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
168
|
+
pulumi.set(self, "application_package", value)
|
|
169
|
+
|
|
170
|
+
@_builtins.property
|
|
171
|
+
@pulumi.getter
|
|
172
|
+
def comment(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
173
|
+
"""
|
|
174
|
+
Specifies a comment for the listing.
|
|
175
|
+
"""
|
|
176
|
+
return pulumi.get(self, "comment")
|
|
177
|
+
|
|
178
|
+
@comment.setter
|
|
179
|
+
def comment(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
180
|
+
pulumi.set(self, "comment", value)
|
|
181
|
+
|
|
182
|
+
@_builtins.property
|
|
183
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
184
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
185
|
+
"""
|
|
186
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
187
|
+
"""
|
|
188
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
189
|
+
|
|
190
|
+
@fully_qualified_name.setter
|
|
191
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
192
|
+
pulumi.set(self, "fully_qualified_name", value)
|
|
193
|
+
|
|
194
|
+
@_builtins.property
|
|
195
|
+
@pulumi.getter
|
|
196
|
+
def manifest(self) -> Optional[pulumi.Input['ListingManifestArgs']]:
|
|
197
|
+
return pulumi.get(self, "manifest")
|
|
198
|
+
|
|
199
|
+
@manifest.setter
|
|
200
|
+
def manifest(self, value: Optional[pulumi.Input['ListingManifestArgs']]):
|
|
201
|
+
pulumi.set(self, "manifest", value)
|
|
202
|
+
|
|
203
|
+
@_builtins.property
|
|
204
|
+
@pulumi.getter
|
|
205
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
206
|
+
"""
|
|
207
|
+
Specifies the listing identifier (name). It must be unique within the organization, regardless of which Snowflake region the account is located in. Must start with an alphabetic character and cannot contain spaces or special characters except for underscores.
|
|
208
|
+
"""
|
|
209
|
+
return pulumi.get(self, "name")
|
|
210
|
+
|
|
211
|
+
@name.setter
|
|
212
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
213
|
+
pulumi.set(self, "name", value)
|
|
214
|
+
|
|
215
|
+
@_builtins.property
|
|
216
|
+
@pulumi.getter
|
|
217
|
+
def publish(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
218
|
+
"""
|
|
219
|
+
(Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Determines if the listing should be published.
|
|
220
|
+
"""
|
|
221
|
+
return pulumi.get(self, "publish")
|
|
222
|
+
|
|
223
|
+
@publish.setter
|
|
224
|
+
def publish(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
225
|
+
pulumi.set(self, "publish", value)
|
|
226
|
+
|
|
227
|
+
@_builtins.property
|
|
228
|
+
@pulumi.getter
|
|
229
|
+
def share(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
230
|
+
"""
|
|
231
|
+
Specifies the identifier for the share to attach to the listing.
|
|
232
|
+
"""
|
|
233
|
+
return pulumi.get(self, "share")
|
|
234
|
+
|
|
235
|
+
@share.setter
|
|
236
|
+
def share(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
237
|
+
pulumi.set(self, "share", value)
|
|
238
|
+
|
|
239
|
+
@_builtins.property
|
|
240
|
+
@pulumi.getter(name="showOutputs")
|
|
241
|
+
def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ListingShowOutputArgs']]]]:
|
|
242
|
+
"""
|
|
243
|
+
Outputs the result of `SHOW LISTINGS` for the given listing.
|
|
244
|
+
"""
|
|
245
|
+
return pulumi.get(self, "show_outputs")
|
|
246
|
+
|
|
247
|
+
@show_outputs.setter
|
|
248
|
+
def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ListingShowOutputArgs']]]]):
|
|
249
|
+
pulumi.set(self, "show_outputs", value)
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
@pulumi.type_token("snowflake:index/listing:Listing")
|
|
253
|
+
class Listing(pulumi.CustomResource):
|
|
254
|
+
@overload
|
|
255
|
+
def __init__(__self__,
|
|
256
|
+
resource_name: str,
|
|
257
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
258
|
+
application_package: Optional[pulumi.Input[_builtins.str]] = None,
|
|
259
|
+
comment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
260
|
+
manifest: Optional[pulumi.Input[Union['ListingManifestArgs', 'ListingManifestArgsDict']]] = None,
|
|
261
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
262
|
+
publish: Optional[pulumi.Input[_builtins.str]] = None,
|
|
263
|
+
share: Optional[pulumi.Input[_builtins.str]] = None,
|
|
264
|
+
__props__=None):
|
|
265
|
+
"""
|
|
266
|
+
## Import
|
|
267
|
+
|
|
268
|
+
```sh
|
|
269
|
+
$ pulumi import snowflake:index/listing:Listing example '"<listing_name>"'
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
:param str resource_name: The name of the resource.
|
|
273
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
274
|
+
:param pulumi.Input[_builtins.str] application_package: Specifies the application package attached to the listing.
|
|
275
|
+
:param pulumi.Input[_builtins.str] comment: Specifies a comment for the listing.
|
|
276
|
+
:param pulumi.Input[_builtins.str] name: Specifies the listing identifier (name). It must be unique within the organization, regardless of which Snowflake region the account is located in. Must start with an alphabetic character and cannot contain spaces or special characters except for underscores.
|
|
277
|
+
:param pulumi.Input[_builtins.str] publish: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Determines if the listing should be published.
|
|
278
|
+
:param pulumi.Input[_builtins.str] share: Specifies the identifier for the share to attach to the listing.
|
|
279
|
+
"""
|
|
280
|
+
...
|
|
281
|
+
@overload
|
|
282
|
+
def __init__(__self__,
|
|
283
|
+
resource_name: str,
|
|
284
|
+
args: ListingArgs,
|
|
285
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
286
|
+
"""
|
|
287
|
+
## Import
|
|
288
|
+
|
|
289
|
+
```sh
|
|
290
|
+
$ pulumi import snowflake:index/listing:Listing example '"<listing_name>"'
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
:param str resource_name: The name of the resource.
|
|
294
|
+
:param ListingArgs args: The arguments to use to populate this resource's properties.
|
|
295
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
296
|
+
"""
|
|
297
|
+
...
|
|
298
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
299
|
+
resource_args, opts = _utilities.get_resource_args_opts(ListingArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
300
|
+
if resource_args is not None:
|
|
301
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
302
|
+
else:
|
|
303
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
304
|
+
|
|
305
|
+
def _internal_init(__self__,
|
|
306
|
+
resource_name: str,
|
|
307
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
308
|
+
application_package: Optional[pulumi.Input[_builtins.str]] = None,
|
|
309
|
+
comment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
310
|
+
manifest: Optional[pulumi.Input[Union['ListingManifestArgs', 'ListingManifestArgsDict']]] = None,
|
|
311
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
312
|
+
publish: Optional[pulumi.Input[_builtins.str]] = None,
|
|
313
|
+
share: Optional[pulumi.Input[_builtins.str]] = None,
|
|
314
|
+
__props__=None):
|
|
315
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
316
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
317
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
318
|
+
if opts.id is None:
|
|
319
|
+
if __props__ is not None:
|
|
320
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
321
|
+
__props__ = ListingArgs.__new__(ListingArgs)
|
|
322
|
+
|
|
323
|
+
__props__.__dict__["application_package"] = application_package
|
|
324
|
+
__props__.__dict__["comment"] = comment
|
|
325
|
+
if manifest is None and not opts.urn:
|
|
326
|
+
raise TypeError("Missing required property 'manifest'")
|
|
327
|
+
__props__.__dict__["manifest"] = manifest
|
|
328
|
+
__props__.__dict__["name"] = name
|
|
329
|
+
__props__.__dict__["publish"] = publish
|
|
330
|
+
__props__.__dict__["share"] = share
|
|
331
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
332
|
+
__props__.__dict__["show_outputs"] = None
|
|
333
|
+
super(Listing, __self__).__init__(
|
|
334
|
+
'snowflake:index/listing:Listing',
|
|
335
|
+
resource_name,
|
|
336
|
+
__props__,
|
|
337
|
+
opts)
|
|
338
|
+
|
|
339
|
+
@staticmethod
|
|
340
|
+
def get(resource_name: str,
|
|
341
|
+
id: pulumi.Input[str],
|
|
342
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
343
|
+
application_package: Optional[pulumi.Input[_builtins.str]] = None,
|
|
344
|
+
comment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
345
|
+
fully_qualified_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
346
|
+
manifest: Optional[pulumi.Input[Union['ListingManifestArgs', 'ListingManifestArgsDict']]] = None,
|
|
347
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
348
|
+
publish: Optional[pulumi.Input[_builtins.str]] = None,
|
|
349
|
+
share: Optional[pulumi.Input[_builtins.str]] = None,
|
|
350
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ListingShowOutputArgs', 'ListingShowOutputArgsDict']]]]] = None) -> 'Listing':
|
|
351
|
+
"""
|
|
352
|
+
Get an existing Listing resource's state with the given name, id, and optional extra
|
|
353
|
+
properties used to qualify the lookup.
|
|
354
|
+
|
|
355
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
356
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
357
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
358
|
+
:param pulumi.Input[_builtins.str] application_package: Specifies the application package attached to the listing.
|
|
359
|
+
:param pulumi.Input[_builtins.str] comment: Specifies a comment for the listing.
|
|
360
|
+
: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).
|
|
361
|
+
:param pulumi.Input[_builtins.str] name: Specifies the listing identifier (name). It must be unique within the organization, regardless of which Snowflake region the account is located in. Must start with an alphabetic character and cannot contain spaces or special characters except for underscores.
|
|
362
|
+
:param pulumi.Input[_builtins.str] publish: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Determines if the listing should be published.
|
|
363
|
+
:param pulumi.Input[_builtins.str] share: Specifies the identifier for the share to attach to the listing.
|
|
364
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ListingShowOutputArgs', 'ListingShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW LISTINGS` for the given listing.
|
|
365
|
+
"""
|
|
366
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
367
|
+
|
|
368
|
+
__props__ = _ListingState.__new__(_ListingState)
|
|
369
|
+
|
|
370
|
+
__props__.__dict__["application_package"] = application_package
|
|
371
|
+
__props__.__dict__["comment"] = comment
|
|
372
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
373
|
+
__props__.__dict__["manifest"] = manifest
|
|
374
|
+
__props__.__dict__["name"] = name
|
|
375
|
+
__props__.__dict__["publish"] = publish
|
|
376
|
+
__props__.__dict__["share"] = share
|
|
377
|
+
__props__.__dict__["show_outputs"] = show_outputs
|
|
378
|
+
return Listing(resource_name, opts=opts, __props__=__props__)
|
|
379
|
+
|
|
380
|
+
@_builtins.property
|
|
381
|
+
@pulumi.getter(name="applicationPackage")
|
|
382
|
+
def application_package(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
383
|
+
"""
|
|
384
|
+
Specifies the application package attached to the listing.
|
|
385
|
+
"""
|
|
386
|
+
return pulumi.get(self, "application_package")
|
|
387
|
+
|
|
388
|
+
@_builtins.property
|
|
389
|
+
@pulumi.getter
|
|
390
|
+
def comment(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
391
|
+
"""
|
|
392
|
+
Specifies a comment for the listing.
|
|
393
|
+
"""
|
|
394
|
+
return pulumi.get(self, "comment")
|
|
395
|
+
|
|
396
|
+
@_builtins.property
|
|
397
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
398
|
+
def fully_qualified_name(self) -> pulumi.Output[_builtins.str]:
|
|
399
|
+
"""
|
|
400
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
401
|
+
"""
|
|
402
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
403
|
+
|
|
404
|
+
@_builtins.property
|
|
405
|
+
@pulumi.getter
|
|
406
|
+
def manifest(self) -> pulumi.Output['outputs.ListingManifest']:
|
|
407
|
+
return pulumi.get(self, "manifest")
|
|
408
|
+
|
|
409
|
+
@_builtins.property
|
|
410
|
+
@pulumi.getter
|
|
411
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
412
|
+
"""
|
|
413
|
+
Specifies the listing identifier (name). It must be unique within the organization, regardless of which Snowflake region the account is located in. Must start with an alphabetic character and cannot contain spaces or special characters except for underscores.
|
|
414
|
+
"""
|
|
415
|
+
return pulumi.get(self, "name")
|
|
416
|
+
|
|
417
|
+
@_builtins.property
|
|
418
|
+
@pulumi.getter
|
|
419
|
+
def publish(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
420
|
+
"""
|
|
421
|
+
(Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Determines if the listing should be published.
|
|
422
|
+
"""
|
|
423
|
+
return pulumi.get(self, "publish")
|
|
424
|
+
|
|
425
|
+
@_builtins.property
|
|
426
|
+
@pulumi.getter
|
|
427
|
+
def share(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
428
|
+
"""
|
|
429
|
+
Specifies the identifier for the share to attach to the listing.
|
|
430
|
+
"""
|
|
431
|
+
return pulumi.get(self, "share")
|
|
432
|
+
|
|
433
|
+
@_builtins.property
|
|
434
|
+
@pulumi.getter(name="showOutputs")
|
|
435
|
+
def show_outputs(self) -> pulumi.Output[Sequence['outputs.ListingShowOutput']]:
|
|
436
|
+
"""
|
|
437
|
+
Outputs the result of `SHOW LISTINGS` for the given listing.
|
|
438
|
+
"""
|
|
439
|
+
return pulumi.get(self, "show_outputs")
|
|
440
|
+
|