pulumi-aiven 6.19.0a1721711612__py3-none-any.whl → 6.19.0a1721847551__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-aiven might be problematic. Click here for more details.
- pulumi_aiven/__init__.py +30 -0
- pulumi_aiven/_inputs.py +1863 -29
- pulumi_aiven/account_team.py +12 -4
- pulumi_aiven/account_team_member.py +4 -4
- pulumi_aiven/account_team_project.py +4 -4
- pulumi_aiven/clickhouse.py +22 -22
- pulumi_aiven/clickhouse_database.py +39 -19
- pulumi_aiven/clickhouse_grant.py +80 -82
- pulumi_aiven/clickhouse_role.py +17 -31
- pulumi_aiven/clickhouse_user.py +31 -31
- pulumi_aiven/flink.py +19 -19
- pulumi_aiven/flink_application.py +39 -39
- pulumi_aiven/flink_application_deployment.py +131 -57
- pulumi_aiven/flink_application_version.py +64 -56
- pulumi_aiven/get_clickhouse.py +8 -8
- pulumi_aiven/get_clickhouse_database.py +11 -11
- pulumi_aiven/get_clickhouse_user.py +14 -14
- pulumi_aiven/get_flink.py +7 -7
- pulumi_aiven/get_flink_application.py +16 -16
- pulumi_aiven/get_flink_application_version.py +22 -22
- pulumi_aiven/get_kafka_acl.py +22 -22
- pulumi_aiven/get_kafka_connect.py +6 -6
- pulumi_aiven/get_kafka_connector.py +13 -13
- pulumi_aiven/get_kafka_topic.py +2 -2
- pulumi_aiven/get_kafka_user.py +15 -15
- pulumi_aiven/get_thanos.py +449 -0
- pulumi_aiven/get_transit_gateway_vpc_attachment.py +1 -1
- pulumi_aiven/get_valkey.py +469 -0
- pulumi_aiven/get_valkey_user.py +206 -0
- pulumi_aiven/kafka_acl.py +43 -39
- pulumi_aiven/kafka_connect.py +66 -14
- pulumi_aiven/kafka_connector.py +46 -40
- pulumi_aiven/kafka_schema_registry_acl.py +2 -2
- pulumi_aiven/kafka_topic.py +16 -16
- pulumi_aiven/kafka_user.py +40 -40
- pulumi_aiven/organization_application_user.py +12 -2
- pulumi_aiven/organization_application_user_token.py +7 -7
- pulumi_aiven/organization_group_project.py +9 -9
- pulumi_aiven/organization_user_group_member.py +13 -9
- pulumi_aiven/outputs.py +13290 -10153
- pulumi_aiven/pulumi-plugin.json +1 -1
- pulumi_aiven/thanos.py +1208 -0
- pulumi_aiven/transit_gateway_vpc_attachment.py +7 -16
- pulumi_aiven/valkey.py +1252 -0
- pulumi_aiven/valkey_user.py +513 -0
- {pulumi_aiven-6.19.0a1721711612.dist-info → pulumi_aiven-6.19.0a1721847551.dist-info}/METADATA +1 -1
- {pulumi_aiven-6.19.0a1721711612.dist-info → pulumi_aiven-6.19.0a1721847551.dist-info}/RECORD +49 -43
- {pulumi_aiven-6.19.0a1721711612.dist-info → pulumi_aiven-6.19.0a1721847551.dist-info}/WHEEL +0 -0
- {pulumi_aiven-6.19.0a1721711612.dist-info → pulumi_aiven-6.19.0a1721847551.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,513 @@
|
|
|
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 pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from . import _utilities
|
|
11
|
+
|
|
12
|
+
__all__ = ['ValkeyUserArgs', 'ValkeyUser']
|
|
13
|
+
|
|
14
|
+
@pulumi.input_type
|
|
15
|
+
class ValkeyUserArgs:
|
|
16
|
+
def __init__(__self__, *,
|
|
17
|
+
project: pulumi.Input[str],
|
|
18
|
+
service_name: pulumi.Input[str],
|
|
19
|
+
username: pulumi.Input[str],
|
|
20
|
+
password: Optional[pulumi.Input[str]] = None,
|
|
21
|
+
valkey_acl_categories: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
22
|
+
valkey_acl_channels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
23
|
+
valkey_acl_commands: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
24
|
+
valkey_acl_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
25
|
+
"""
|
|
26
|
+
The set of arguments for constructing a ValkeyUser resource.
|
|
27
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
28
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
29
|
+
:param pulumi.Input[str] username: The actual name of the Valkey User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
30
|
+
:param pulumi.Input[str] password: The password of the Valkey User.
|
|
31
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] valkey_acl_categories: Defines command category rules. The field is required with`valkey_acl_commands` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
32
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] valkey_acl_channels: Defines the permitted pub/sub channel patterns. Changing this property forces recreation of the resource.
|
|
33
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] valkey_acl_commands: Defines rules for individual commands. The field is required with`valkey_acl_categories` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
34
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] valkey_acl_keys: Defines key access rules. The field is required with`valkey_acl_categories` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
35
|
+
"""
|
|
36
|
+
pulumi.set(__self__, "project", project)
|
|
37
|
+
pulumi.set(__self__, "service_name", service_name)
|
|
38
|
+
pulumi.set(__self__, "username", username)
|
|
39
|
+
if password is not None:
|
|
40
|
+
pulumi.set(__self__, "password", password)
|
|
41
|
+
if valkey_acl_categories is not None:
|
|
42
|
+
pulumi.set(__self__, "valkey_acl_categories", valkey_acl_categories)
|
|
43
|
+
if valkey_acl_channels is not None:
|
|
44
|
+
pulumi.set(__self__, "valkey_acl_channels", valkey_acl_channels)
|
|
45
|
+
if valkey_acl_commands is not None:
|
|
46
|
+
pulumi.set(__self__, "valkey_acl_commands", valkey_acl_commands)
|
|
47
|
+
if valkey_acl_keys is not None:
|
|
48
|
+
pulumi.set(__self__, "valkey_acl_keys", valkey_acl_keys)
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
@pulumi.getter
|
|
52
|
+
def project(self) -> pulumi.Input[str]:
|
|
53
|
+
"""
|
|
54
|
+
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
55
|
+
"""
|
|
56
|
+
return pulumi.get(self, "project")
|
|
57
|
+
|
|
58
|
+
@project.setter
|
|
59
|
+
def project(self, value: pulumi.Input[str]):
|
|
60
|
+
pulumi.set(self, "project", value)
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
@pulumi.getter(name="serviceName")
|
|
64
|
+
def service_name(self) -> pulumi.Input[str]:
|
|
65
|
+
"""
|
|
66
|
+
The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
67
|
+
"""
|
|
68
|
+
return pulumi.get(self, "service_name")
|
|
69
|
+
|
|
70
|
+
@service_name.setter
|
|
71
|
+
def service_name(self, value: pulumi.Input[str]):
|
|
72
|
+
pulumi.set(self, "service_name", value)
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
@pulumi.getter
|
|
76
|
+
def username(self) -> pulumi.Input[str]:
|
|
77
|
+
"""
|
|
78
|
+
The actual name of the Valkey User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
79
|
+
"""
|
|
80
|
+
return pulumi.get(self, "username")
|
|
81
|
+
|
|
82
|
+
@username.setter
|
|
83
|
+
def username(self, value: pulumi.Input[str]):
|
|
84
|
+
pulumi.set(self, "username", value)
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
@pulumi.getter
|
|
88
|
+
def password(self) -> Optional[pulumi.Input[str]]:
|
|
89
|
+
"""
|
|
90
|
+
The password of the Valkey User.
|
|
91
|
+
"""
|
|
92
|
+
return pulumi.get(self, "password")
|
|
93
|
+
|
|
94
|
+
@password.setter
|
|
95
|
+
def password(self, value: Optional[pulumi.Input[str]]):
|
|
96
|
+
pulumi.set(self, "password", value)
|
|
97
|
+
|
|
98
|
+
@property
|
|
99
|
+
@pulumi.getter(name="valkeyAclCategories")
|
|
100
|
+
def valkey_acl_categories(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
101
|
+
"""
|
|
102
|
+
Defines command category rules. The field is required with`valkey_acl_commands` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
103
|
+
"""
|
|
104
|
+
return pulumi.get(self, "valkey_acl_categories")
|
|
105
|
+
|
|
106
|
+
@valkey_acl_categories.setter
|
|
107
|
+
def valkey_acl_categories(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
108
|
+
pulumi.set(self, "valkey_acl_categories", value)
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
@pulumi.getter(name="valkeyAclChannels")
|
|
112
|
+
def valkey_acl_channels(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
113
|
+
"""
|
|
114
|
+
Defines the permitted pub/sub channel patterns. Changing this property forces recreation of the resource.
|
|
115
|
+
"""
|
|
116
|
+
return pulumi.get(self, "valkey_acl_channels")
|
|
117
|
+
|
|
118
|
+
@valkey_acl_channels.setter
|
|
119
|
+
def valkey_acl_channels(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
120
|
+
pulumi.set(self, "valkey_acl_channels", value)
|
|
121
|
+
|
|
122
|
+
@property
|
|
123
|
+
@pulumi.getter(name="valkeyAclCommands")
|
|
124
|
+
def valkey_acl_commands(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
125
|
+
"""
|
|
126
|
+
Defines rules for individual commands. The field is required with`valkey_acl_categories` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
127
|
+
"""
|
|
128
|
+
return pulumi.get(self, "valkey_acl_commands")
|
|
129
|
+
|
|
130
|
+
@valkey_acl_commands.setter
|
|
131
|
+
def valkey_acl_commands(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
132
|
+
pulumi.set(self, "valkey_acl_commands", value)
|
|
133
|
+
|
|
134
|
+
@property
|
|
135
|
+
@pulumi.getter(name="valkeyAclKeys")
|
|
136
|
+
def valkey_acl_keys(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
137
|
+
"""
|
|
138
|
+
Defines key access rules. The field is required with`valkey_acl_categories` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
139
|
+
"""
|
|
140
|
+
return pulumi.get(self, "valkey_acl_keys")
|
|
141
|
+
|
|
142
|
+
@valkey_acl_keys.setter
|
|
143
|
+
def valkey_acl_keys(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
144
|
+
pulumi.set(self, "valkey_acl_keys", value)
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
@pulumi.input_type
|
|
148
|
+
class _ValkeyUserState:
|
|
149
|
+
def __init__(__self__, *,
|
|
150
|
+
password: Optional[pulumi.Input[str]] = None,
|
|
151
|
+
project: Optional[pulumi.Input[str]] = None,
|
|
152
|
+
service_name: Optional[pulumi.Input[str]] = None,
|
|
153
|
+
type: Optional[pulumi.Input[str]] = None,
|
|
154
|
+
username: Optional[pulumi.Input[str]] = None,
|
|
155
|
+
valkey_acl_categories: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
156
|
+
valkey_acl_channels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
157
|
+
valkey_acl_commands: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
158
|
+
valkey_acl_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
159
|
+
"""
|
|
160
|
+
Input properties used for looking up and filtering ValkeyUser resources.
|
|
161
|
+
:param pulumi.Input[str] password: The password of the Valkey User.
|
|
162
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
163
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
164
|
+
:param pulumi.Input[str] type: Type of the user account. Tells whether the user is the primary account or a regular account.
|
|
165
|
+
:param pulumi.Input[str] username: The actual name of the Valkey User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
166
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] valkey_acl_categories: Defines command category rules. The field is required with`valkey_acl_commands` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
167
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] valkey_acl_channels: Defines the permitted pub/sub channel patterns. Changing this property forces recreation of the resource.
|
|
168
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] valkey_acl_commands: Defines rules for individual commands. The field is required with`valkey_acl_categories` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
169
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] valkey_acl_keys: Defines key access rules. The field is required with`valkey_acl_categories` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
170
|
+
"""
|
|
171
|
+
if password is not None:
|
|
172
|
+
pulumi.set(__self__, "password", password)
|
|
173
|
+
if project is not None:
|
|
174
|
+
pulumi.set(__self__, "project", project)
|
|
175
|
+
if service_name is not None:
|
|
176
|
+
pulumi.set(__self__, "service_name", service_name)
|
|
177
|
+
if type is not None:
|
|
178
|
+
pulumi.set(__self__, "type", type)
|
|
179
|
+
if username is not None:
|
|
180
|
+
pulumi.set(__self__, "username", username)
|
|
181
|
+
if valkey_acl_categories is not None:
|
|
182
|
+
pulumi.set(__self__, "valkey_acl_categories", valkey_acl_categories)
|
|
183
|
+
if valkey_acl_channels is not None:
|
|
184
|
+
pulumi.set(__self__, "valkey_acl_channels", valkey_acl_channels)
|
|
185
|
+
if valkey_acl_commands is not None:
|
|
186
|
+
pulumi.set(__self__, "valkey_acl_commands", valkey_acl_commands)
|
|
187
|
+
if valkey_acl_keys is not None:
|
|
188
|
+
pulumi.set(__self__, "valkey_acl_keys", valkey_acl_keys)
|
|
189
|
+
|
|
190
|
+
@property
|
|
191
|
+
@pulumi.getter
|
|
192
|
+
def password(self) -> Optional[pulumi.Input[str]]:
|
|
193
|
+
"""
|
|
194
|
+
The password of the Valkey User.
|
|
195
|
+
"""
|
|
196
|
+
return pulumi.get(self, "password")
|
|
197
|
+
|
|
198
|
+
@password.setter
|
|
199
|
+
def password(self, value: Optional[pulumi.Input[str]]):
|
|
200
|
+
pulumi.set(self, "password", value)
|
|
201
|
+
|
|
202
|
+
@property
|
|
203
|
+
@pulumi.getter
|
|
204
|
+
def project(self) -> Optional[pulumi.Input[str]]:
|
|
205
|
+
"""
|
|
206
|
+
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
207
|
+
"""
|
|
208
|
+
return pulumi.get(self, "project")
|
|
209
|
+
|
|
210
|
+
@project.setter
|
|
211
|
+
def project(self, value: Optional[pulumi.Input[str]]):
|
|
212
|
+
pulumi.set(self, "project", value)
|
|
213
|
+
|
|
214
|
+
@property
|
|
215
|
+
@pulumi.getter(name="serviceName")
|
|
216
|
+
def service_name(self) -> Optional[pulumi.Input[str]]:
|
|
217
|
+
"""
|
|
218
|
+
The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
219
|
+
"""
|
|
220
|
+
return pulumi.get(self, "service_name")
|
|
221
|
+
|
|
222
|
+
@service_name.setter
|
|
223
|
+
def service_name(self, value: Optional[pulumi.Input[str]]):
|
|
224
|
+
pulumi.set(self, "service_name", value)
|
|
225
|
+
|
|
226
|
+
@property
|
|
227
|
+
@pulumi.getter
|
|
228
|
+
def type(self) -> Optional[pulumi.Input[str]]:
|
|
229
|
+
"""
|
|
230
|
+
Type of the user account. Tells whether the user is the primary account or a regular account.
|
|
231
|
+
"""
|
|
232
|
+
return pulumi.get(self, "type")
|
|
233
|
+
|
|
234
|
+
@type.setter
|
|
235
|
+
def type(self, value: Optional[pulumi.Input[str]]):
|
|
236
|
+
pulumi.set(self, "type", value)
|
|
237
|
+
|
|
238
|
+
@property
|
|
239
|
+
@pulumi.getter
|
|
240
|
+
def username(self) -> Optional[pulumi.Input[str]]:
|
|
241
|
+
"""
|
|
242
|
+
The actual name of the Valkey User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
243
|
+
"""
|
|
244
|
+
return pulumi.get(self, "username")
|
|
245
|
+
|
|
246
|
+
@username.setter
|
|
247
|
+
def username(self, value: Optional[pulumi.Input[str]]):
|
|
248
|
+
pulumi.set(self, "username", value)
|
|
249
|
+
|
|
250
|
+
@property
|
|
251
|
+
@pulumi.getter(name="valkeyAclCategories")
|
|
252
|
+
def valkey_acl_categories(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
253
|
+
"""
|
|
254
|
+
Defines command category rules. The field is required with`valkey_acl_commands` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
255
|
+
"""
|
|
256
|
+
return pulumi.get(self, "valkey_acl_categories")
|
|
257
|
+
|
|
258
|
+
@valkey_acl_categories.setter
|
|
259
|
+
def valkey_acl_categories(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
260
|
+
pulumi.set(self, "valkey_acl_categories", value)
|
|
261
|
+
|
|
262
|
+
@property
|
|
263
|
+
@pulumi.getter(name="valkeyAclChannels")
|
|
264
|
+
def valkey_acl_channels(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
265
|
+
"""
|
|
266
|
+
Defines the permitted pub/sub channel patterns. Changing this property forces recreation of the resource.
|
|
267
|
+
"""
|
|
268
|
+
return pulumi.get(self, "valkey_acl_channels")
|
|
269
|
+
|
|
270
|
+
@valkey_acl_channels.setter
|
|
271
|
+
def valkey_acl_channels(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
272
|
+
pulumi.set(self, "valkey_acl_channels", value)
|
|
273
|
+
|
|
274
|
+
@property
|
|
275
|
+
@pulumi.getter(name="valkeyAclCommands")
|
|
276
|
+
def valkey_acl_commands(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
277
|
+
"""
|
|
278
|
+
Defines rules for individual commands. The field is required with`valkey_acl_categories` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
279
|
+
"""
|
|
280
|
+
return pulumi.get(self, "valkey_acl_commands")
|
|
281
|
+
|
|
282
|
+
@valkey_acl_commands.setter
|
|
283
|
+
def valkey_acl_commands(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
284
|
+
pulumi.set(self, "valkey_acl_commands", value)
|
|
285
|
+
|
|
286
|
+
@property
|
|
287
|
+
@pulumi.getter(name="valkeyAclKeys")
|
|
288
|
+
def valkey_acl_keys(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
289
|
+
"""
|
|
290
|
+
Defines key access rules. The field is required with`valkey_acl_categories` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
291
|
+
"""
|
|
292
|
+
return pulumi.get(self, "valkey_acl_keys")
|
|
293
|
+
|
|
294
|
+
@valkey_acl_keys.setter
|
|
295
|
+
def valkey_acl_keys(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
296
|
+
pulumi.set(self, "valkey_acl_keys", value)
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
class ValkeyUser(pulumi.CustomResource):
|
|
300
|
+
@overload
|
|
301
|
+
def __init__(__self__,
|
|
302
|
+
resource_name: str,
|
|
303
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
304
|
+
password: Optional[pulumi.Input[str]] = None,
|
|
305
|
+
project: Optional[pulumi.Input[str]] = None,
|
|
306
|
+
service_name: Optional[pulumi.Input[str]] = None,
|
|
307
|
+
username: Optional[pulumi.Input[str]] = None,
|
|
308
|
+
valkey_acl_categories: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
309
|
+
valkey_acl_channels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
310
|
+
valkey_acl_commands: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
311
|
+
valkey_acl_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
312
|
+
__props__=None):
|
|
313
|
+
"""
|
|
314
|
+
Creates and manages an [Aiven for Valkey](https://aiven.io/docs/products/valkey) user.
|
|
315
|
+
|
|
316
|
+
**This resource is in the beta stage and may change without notice.** Set
|
|
317
|
+
the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
|
|
318
|
+
|
|
319
|
+
:param str resource_name: The name of the resource.
|
|
320
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
321
|
+
:param pulumi.Input[str] password: The password of the Valkey User.
|
|
322
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
323
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
324
|
+
:param pulumi.Input[str] username: The actual name of the Valkey User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
325
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] valkey_acl_categories: Defines command category rules. The field is required with`valkey_acl_commands` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
326
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] valkey_acl_channels: Defines the permitted pub/sub channel patterns. Changing this property forces recreation of the resource.
|
|
327
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] valkey_acl_commands: Defines rules for individual commands. The field is required with`valkey_acl_categories` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
328
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] valkey_acl_keys: Defines key access rules. The field is required with`valkey_acl_categories` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
329
|
+
"""
|
|
330
|
+
...
|
|
331
|
+
@overload
|
|
332
|
+
def __init__(__self__,
|
|
333
|
+
resource_name: str,
|
|
334
|
+
args: ValkeyUserArgs,
|
|
335
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
336
|
+
"""
|
|
337
|
+
Creates and manages an [Aiven for Valkey](https://aiven.io/docs/products/valkey) user.
|
|
338
|
+
|
|
339
|
+
**This resource is in the beta stage and may change without notice.** Set
|
|
340
|
+
the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
|
|
341
|
+
|
|
342
|
+
:param str resource_name: The name of the resource.
|
|
343
|
+
:param ValkeyUserArgs args: The arguments to use to populate this resource's properties.
|
|
344
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
345
|
+
"""
|
|
346
|
+
...
|
|
347
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
348
|
+
resource_args, opts = _utilities.get_resource_args_opts(ValkeyUserArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
349
|
+
if resource_args is not None:
|
|
350
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
351
|
+
else:
|
|
352
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
353
|
+
|
|
354
|
+
def _internal_init(__self__,
|
|
355
|
+
resource_name: str,
|
|
356
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
357
|
+
password: Optional[pulumi.Input[str]] = None,
|
|
358
|
+
project: Optional[pulumi.Input[str]] = None,
|
|
359
|
+
service_name: Optional[pulumi.Input[str]] = None,
|
|
360
|
+
username: Optional[pulumi.Input[str]] = None,
|
|
361
|
+
valkey_acl_categories: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
362
|
+
valkey_acl_channels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
363
|
+
valkey_acl_commands: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
364
|
+
valkey_acl_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
365
|
+
__props__=None):
|
|
366
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
367
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
368
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
369
|
+
if opts.id is None:
|
|
370
|
+
if __props__ is not None:
|
|
371
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
372
|
+
__props__ = ValkeyUserArgs.__new__(ValkeyUserArgs)
|
|
373
|
+
|
|
374
|
+
__props__.__dict__["password"] = None if password is None else pulumi.Output.secret(password)
|
|
375
|
+
if project is None and not opts.urn:
|
|
376
|
+
raise TypeError("Missing required property 'project'")
|
|
377
|
+
__props__.__dict__["project"] = project
|
|
378
|
+
if service_name is None and not opts.urn:
|
|
379
|
+
raise TypeError("Missing required property 'service_name'")
|
|
380
|
+
__props__.__dict__["service_name"] = service_name
|
|
381
|
+
if username is None and not opts.urn:
|
|
382
|
+
raise TypeError("Missing required property 'username'")
|
|
383
|
+
__props__.__dict__["username"] = username
|
|
384
|
+
__props__.__dict__["valkey_acl_categories"] = valkey_acl_categories
|
|
385
|
+
__props__.__dict__["valkey_acl_channels"] = valkey_acl_channels
|
|
386
|
+
__props__.__dict__["valkey_acl_commands"] = valkey_acl_commands
|
|
387
|
+
__props__.__dict__["valkey_acl_keys"] = valkey_acl_keys
|
|
388
|
+
__props__.__dict__["type"] = None
|
|
389
|
+
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["password"])
|
|
390
|
+
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
|
391
|
+
super(ValkeyUser, __self__).__init__(
|
|
392
|
+
'aiven:index/valkeyUser:ValkeyUser',
|
|
393
|
+
resource_name,
|
|
394
|
+
__props__,
|
|
395
|
+
opts)
|
|
396
|
+
|
|
397
|
+
@staticmethod
|
|
398
|
+
def get(resource_name: str,
|
|
399
|
+
id: pulumi.Input[str],
|
|
400
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
401
|
+
password: Optional[pulumi.Input[str]] = None,
|
|
402
|
+
project: Optional[pulumi.Input[str]] = None,
|
|
403
|
+
service_name: Optional[pulumi.Input[str]] = None,
|
|
404
|
+
type: Optional[pulumi.Input[str]] = None,
|
|
405
|
+
username: Optional[pulumi.Input[str]] = None,
|
|
406
|
+
valkey_acl_categories: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
407
|
+
valkey_acl_channels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
408
|
+
valkey_acl_commands: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
409
|
+
valkey_acl_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'ValkeyUser':
|
|
410
|
+
"""
|
|
411
|
+
Get an existing ValkeyUser resource's state with the given name, id, and optional extra
|
|
412
|
+
properties used to qualify the lookup.
|
|
413
|
+
|
|
414
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
415
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
416
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
417
|
+
:param pulumi.Input[str] password: The password of the Valkey User.
|
|
418
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
419
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
420
|
+
:param pulumi.Input[str] type: Type of the user account. Tells whether the user is the primary account or a regular account.
|
|
421
|
+
:param pulumi.Input[str] username: The actual name of the Valkey User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
422
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] valkey_acl_categories: Defines command category rules. The field is required with`valkey_acl_commands` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
423
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] valkey_acl_channels: Defines the permitted pub/sub channel patterns. Changing this property forces recreation of the resource.
|
|
424
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] valkey_acl_commands: Defines rules for individual commands. The field is required with`valkey_acl_categories` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
425
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] valkey_acl_keys: Defines key access rules. The field is required with`valkey_acl_categories` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
426
|
+
"""
|
|
427
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
428
|
+
|
|
429
|
+
__props__ = _ValkeyUserState.__new__(_ValkeyUserState)
|
|
430
|
+
|
|
431
|
+
__props__.__dict__["password"] = password
|
|
432
|
+
__props__.__dict__["project"] = project
|
|
433
|
+
__props__.__dict__["service_name"] = service_name
|
|
434
|
+
__props__.__dict__["type"] = type
|
|
435
|
+
__props__.__dict__["username"] = username
|
|
436
|
+
__props__.__dict__["valkey_acl_categories"] = valkey_acl_categories
|
|
437
|
+
__props__.__dict__["valkey_acl_channels"] = valkey_acl_channels
|
|
438
|
+
__props__.__dict__["valkey_acl_commands"] = valkey_acl_commands
|
|
439
|
+
__props__.__dict__["valkey_acl_keys"] = valkey_acl_keys
|
|
440
|
+
return ValkeyUser(resource_name, opts=opts, __props__=__props__)
|
|
441
|
+
|
|
442
|
+
@property
|
|
443
|
+
@pulumi.getter
|
|
444
|
+
def password(self) -> pulumi.Output[str]:
|
|
445
|
+
"""
|
|
446
|
+
The password of the Valkey User.
|
|
447
|
+
"""
|
|
448
|
+
return pulumi.get(self, "password")
|
|
449
|
+
|
|
450
|
+
@property
|
|
451
|
+
@pulumi.getter
|
|
452
|
+
def project(self) -> pulumi.Output[str]:
|
|
453
|
+
"""
|
|
454
|
+
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
455
|
+
"""
|
|
456
|
+
return pulumi.get(self, "project")
|
|
457
|
+
|
|
458
|
+
@property
|
|
459
|
+
@pulumi.getter(name="serviceName")
|
|
460
|
+
def service_name(self) -> pulumi.Output[str]:
|
|
461
|
+
"""
|
|
462
|
+
The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
463
|
+
"""
|
|
464
|
+
return pulumi.get(self, "service_name")
|
|
465
|
+
|
|
466
|
+
@property
|
|
467
|
+
@pulumi.getter
|
|
468
|
+
def type(self) -> pulumi.Output[str]:
|
|
469
|
+
"""
|
|
470
|
+
Type of the user account. Tells whether the user is the primary account or a regular account.
|
|
471
|
+
"""
|
|
472
|
+
return pulumi.get(self, "type")
|
|
473
|
+
|
|
474
|
+
@property
|
|
475
|
+
@pulumi.getter
|
|
476
|
+
def username(self) -> pulumi.Output[str]:
|
|
477
|
+
"""
|
|
478
|
+
The actual name of the Valkey User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
479
|
+
"""
|
|
480
|
+
return pulumi.get(self, "username")
|
|
481
|
+
|
|
482
|
+
@property
|
|
483
|
+
@pulumi.getter(name="valkeyAclCategories")
|
|
484
|
+
def valkey_acl_categories(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
485
|
+
"""
|
|
486
|
+
Defines command category rules. The field is required with`valkey_acl_commands` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
487
|
+
"""
|
|
488
|
+
return pulumi.get(self, "valkey_acl_categories")
|
|
489
|
+
|
|
490
|
+
@property
|
|
491
|
+
@pulumi.getter(name="valkeyAclChannels")
|
|
492
|
+
def valkey_acl_channels(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
493
|
+
"""
|
|
494
|
+
Defines the permitted pub/sub channel patterns. Changing this property forces recreation of the resource.
|
|
495
|
+
"""
|
|
496
|
+
return pulumi.get(self, "valkey_acl_channels")
|
|
497
|
+
|
|
498
|
+
@property
|
|
499
|
+
@pulumi.getter(name="valkeyAclCommands")
|
|
500
|
+
def valkey_acl_commands(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
501
|
+
"""
|
|
502
|
+
Defines rules for individual commands. The field is required with`valkey_acl_categories` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
503
|
+
"""
|
|
504
|
+
return pulumi.get(self, "valkey_acl_commands")
|
|
505
|
+
|
|
506
|
+
@property
|
|
507
|
+
@pulumi.getter(name="valkeyAclKeys")
|
|
508
|
+
def valkey_acl_keys(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
509
|
+
"""
|
|
510
|
+
Defines key access rules. The field is required with`valkey_acl_categories` and `valkey_acl_keys`. Changing this property forces recreation of the resource.
|
|
511
|
+
"""
|
|
512
|
+
return pulumi.get(self, "valkey_acl_keys")
|
|
513
|
+
|