pulumi-aiven 6.14.0a1714596828__py3-none-any.whl → 6.15.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-aiven might be problematic. Click here for more details.

@@ -0,0 +1,323 @@
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
+ from . import outputs
12
+ from ._inputs import *
13
+
14
+ __all__ = ['OrganizationApplicationUserArgs', 'OrganizationApplicationUser']
15
+
16
+ @pulumi.input_type
17
+ class OrganizationApplicationUserArgs:
18
+ def __init__(__self__, *,
19
+ organization_id: pulumi.Input[str],
20
+ name: Optional[pulumi.Input[str]] = None,
21
+ timeouts: Optional[pulumi.Input['OrganizationApplicationUserTimeoutsArgs']] = None):
22
+ """
23
+ The set of arguments for constructing a OrganizationApplicationUser resource.
24
+ :param pulumi.Input[str] organization_id: The ID of the organization the application user belongs to.
25
+ :param pulumi.Input[str] name: Name of the application user.
26
+ """
27
+ pulumi.set(__self__, "organization_id", organization_id)
28
+ if name is not None:
29
+ pulumi.set(__self__, "name", name)
30
+ if timeouts is not None:
31
+ pulumi.set(__self__, "timeouts", timeouts)
32
+
33
+ @property
34
+ @pulumi.getter(name="organizationId")
35
+ def organization_id(self) -> pulumi.Input[str]:
36
+ """
37
+ The ID of the organization the application user belongs to.
38
+ """
39
+ return pulumi.get(self, "organization_id")
40
+
41
+ @organization_id.setter
42
+ def organization_id(self, value: pulumi.Input[str]):
43
+ pulumi.set(self, "organization_id", value)
44
+
45
+ @property
46
+ @pulumi.getter
47
+ def name(self) -> Optional[pulumi.Input[str]]:
48
+ """
49
+ Name of the application user.
50
+ """
51
+ return pulumi.get(self, "name")
52
+
53
+ @name.setter
54
+ def name(self, value: Optional[pulumi.Input[str]]):
55
+ pulumi.set(self, "name", value)
56
+
57
+ @property
58
+ @pulumi.getter
59
+ def timeouts(self) -> Optional[pulumi.Input['OrganizationApplicationUserTimeoutsArgs']]:
60
+ return pulumi.get(self, "timeouts")
61
+
62
+ @timeouts.setter
63
+ def timeouts(self, value: Optional[pulumi.Input['OrganizationApplicationUserTimeoutsArgs']]):
64
+ pulumi.set(self, "timeouts", value)
65
+
66
+
67
+ @pulumi.input_type
68
+ class _OrganizationApplicationUserState:
69
+ def __init__(__self__, *,
70
+ email: Optional[pulumi.Input[str]] = None,
71
+ name: Optional[pulumi.Input[str]] = None,
72
+ organization_id: Optional[pulumi.Input[str]] = None,
73
+ timeouts: Optional[pulumi.Input['OrganizationApplicationUserTimeoutsArgs']] = None,
74
+ user_id: Optional[pulumi.Input[str]] = None):
75
+ """
76
+ Input properties used for looking up and filtering OrganizationApplicationUser resources.
77
+ :param pulumi.Input[str] email: An email address automatically generated by Aiven to help identify the application user.
78
+ No notifications are sent to this email.
79
+ :param pulumi.Input[str] name: Name of the application user.
80
+ :param pulumi.Input[str] organization_id: The ID of the organization the application user belongs to.
81
+ :param pulumi.Input[str] user_id: The ID of the application user.
82
+ """
83
+ if email is not None:
84
+ pulumi.set(__self__, "email", email)
85
+ if name is not None:
86
+ pulumi.set(__self__, "name", name)
87
+ if organization_id is not None:
88
+ pulumi.set(__self__, "organization_id", organization_id)
89
+ if timeouts is not None:
90
+ pulumi.set(__self__, "timeouts", timeouts)
91
+ if user_id is not None:
92
+ pulumi.set(__self__, "user_id", user_id)
93
+
94
+ @property
95
+ @pulumi.getter
96
+ def email(self) -> Optional[pulumi.Input[str]]:
97
+ """
98
+ An email address automatically generated by Aiven to help identify the application user.
99
+ No notifications are sent to this email.
100
+ """
101
+ return pulumi.get(self, "email")
102
+
103
+ @email.setter
104
+ def email(self, value: Optional[pulumi.Input[str]]):
105
+ pulumi.set(self, "email", value)
106
+
107
+ @property
108
+ @pulumi.getter
109
+ def name(self) -> Optional[pulumi.Input[str]]:
110
+ """
111
+ Name of the application user.
112
+ """
113
+ return pulumi.get(self, "name")
114
+
115
+ @name.setter
116
+ def name(self, value: Optional[pulumi.Input[str]]):
117
+ pulumi.set(self, "name", value)
118
+
119
+ @property
120
+ @pulumi.getter(name="organizationId")
121
+ def organization_id(self) -> Optional[pulumi.Input[str]]:
122
+ """
123
+ The ID of the organization the application user belongs to.
124
+ """
125
+ return pulumi.get(self, "organization_id")
126
+
127
+ @organization_id.setter
128
+ def organization_id(self, value: Optional[pulumi.Input[str]]):
129
+ pulumi.set(self, "organization_id", value)
130
+
131
+ @property
132
+ @pulumi.getter
133
+ def timeouts(self) -> Optional[pulumi.Input['OrganizationApplicationUserTimeoutsArgs']]:
134
+ return pulumi.get(self, "timeouts")
135
+
136
+ @timeouts.setter
137
+ def timeouts(self, value: Optional[pulumi.Input['OrganizationApplicationUserTimeoutsArgs']]):
138
+ pulumi.set(self, "timeouts", value)
139
+
140
+ @property
141
+ @pulumi.getter(name="userId")
142
+ def user_id(self) -> Optional[pulumi.Input[str]]:
143
+ """
144
+ The ID of the application user.
145
+ """
146
+ return pulumi.get(self, "user_id")
147
+
148
+ @user_id.setter
149
+ def user_id(self, value: Optional[pulumi.Input[str]]):
150
+ pulumi.set(self, "user_id", value)
151
+
152
+
153
+ class OrganizationApplicationUser(pulumi.CustomResource):
154
+ @overload
155
+ def __init__(__self__,
156
+ resource_name: str,
157
+ opts: Optional[pulumi.ResourceOptions] = None,
158
+ name: Optional[pulumi.Input[str]] = None,
159
+ organization_id: Optional[pulumi.Input[str]] = None,
160
+ timeouts: Optional[pulumi.Input[pulumi.InputType['OrganizationApplicationUserTimeoutsArgs']]] = None,
161
+ __props__=None):
162
+ """
163
+ Creates and manages an organization application user. [Application users](https://aiven.io/docs/platform/howto/manage-application-users) can be used for programmatic access to the platform.
164
+
165
+ ## Example Usage
166
+
167
+ ```python
168
+ import pulumi
169
+ import pulumi_aiven as aiven
170
+
171
+ tf_user = aiven.OrganizationApplicationUser("tf_user",
172
+ organization_id=main["id"],
173
+ name="app-terraform")
174
+ ```
175
+
176
+ ## Import
177
+
178
+ ```sh
179
+ $ pulumi import aiven:index/organizationApplicationUser:OrganizationApplicationUser example ORGANIZATION_ID/USER_ID
180
+ ```
181
+
182
+ :param str resource_name: The name of the resource.
183
+ :param pulumi.ResourceOptions opts: Options for the resource.
184
+ :param pulumi.Input[str] name: Name of the application user.
185
+ :param pulumi.Input[str] organization_id: The ID of the organization the application user belongs to.
186
+ """
187
+ ...
188
+ @overload
189
+ def __init__(__self__,
190
+ resource_name: str,
191
+ args: OrganizationApplicationUserArgs,
192
+ opts: Optional[pulumi.ResourceOptions] = None):
193
+ """
194
+ Creates and manages an organization application user. [Application users](https://aiven.io/docs/platform/howto/manage-application-users) can be used for programmatic access to the platform.
195
+
196
+ ## Example Usage
197
+
198
+ ```python
199
+ import pulumi
200
+ import pulumi_aiven as aiven
201
+
202
+ tf_user = aiven.OrganizationApplicationUser("tf_user",
203
+ organization_id=main["id"],
204
+ name="app-terraform")
205
+ ```
206
+
207
+ ## Import
208
+
209
+ ```sh
210
+ $ pulumi import aiven:index/organizationApplicationUser:OrganizationApplicationUser example ORGANIZATION_ID/USER_ID
211
+ ```
212
+
213
+ :param str resource_name: The name of the resource.
214
+ :param OrganizationApplicationUserArgs args: The arguments to use to populate this resource's properties.
215
+ :param pulumi.ResourceOptions opts: Options for the resource.
216
+ """
217
+ ...
218
+ def __init__(__self__, resource_name: str, *args, **kwargs):
219
+ resource_args, opts = _utilities.get_resource_args_opts(OrganizationApplicationUserArgs, pulumi.ResourceOptions, *args, **kwargs)
220
+ if resource_args is not None:
221
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
222
+ else:
223
+ __self__._internal_init(resource_name, *args, **kwargs)
224
+
225
+ def _internal_init(__self__,
226
+ resource_name: str,
227
+ opts: Optional[pulumi.ResourceOptions] = None,
228
+ name: Optional[pulumi.Input[str]] = None,
229
+ organization_id: Optional[pulumi.Input[str]] = None,
230
+ timeouts: Optional[pulumi.Input[pulumi.InputType['OrganizationApplicationUserTimeoutsArgs']]] = None,
231
+ __props__=None):
232
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
233
+ if not isinstance(opts, pulumi.ResourceOptions):
234
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
235
+ if opts.id is None:
236
+ if __props__ is not None:
237
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
238
+ __props__ = OrganizationApplicationUserArgs.__new__(OrganizationApplicationUserArgs)
239
+
240
+ __props__.__dict__["name"] = name
241
+ if organization_id is None and not opts.urn:
242
+ raise TypeError("Missing required property 'organization_id'")
243
+ __props__.__dict__["organization_id"] = organization_id
244
+ __props__.__dict__["timeouts"] = timeouts
245
+ __props__.__dict__["email"] = None
246
+ __props__.__dict__["user_id"] = None
247
+ super(OrganizationApplicationUser, __self__).__init__(
248
+ 'aiven:index/organizationApplicationUser:OrganizationApplicationUser',
249
+ resource_name,
250
+ __props__,
251
+ opts)
252
+
253
+ @staticmethod
254
+ def get(resource_name: str,
255
+ id: pulumi.Input[str],
256
+ opts: Optional[pulumi.ResourceOptions] = None,
257
+ email: Optional[pulumi.Input[str]] = None,
258
+ name: Optional[pulumi.Input[str]] = None,
259
+ organization_id: Optional[pulumi.Input[str]] = None,
260
+ timeouts: Optional[pulumi.Input[pulumi.InputType['OrganizationApplicationUserTimeoutsArgs']]] = None,
261
+ user_id: Optional[pulumi.Input[str]] = None) -> 'OrganizationApplicationUser':
262
+ """
263
+ Get an existing OrganizationApplicationUser resource's state with the given name, id, and optional extra
264
+ properties used to qualify the lookup.
265
+
266
+ :param str resource_name: The unique name of the resulting resource.
267
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
268
+ :param pulumi.ResourceOptions opts: Options for the resource.
269
+ :param pulumi.Input[str] email: An email address automatically generated by Aiven to help identify the application user.
270
+ No notifications are sent to this email.
271
+ :param pulumi.Input[str] name: Name of the application user.
272
+ :param pulumi.Input[str] organization_id: The ID of the organization the application user belongs to.
273
+ :param pulumi.Input[str] user_id: The ID of the application user.
274
+ """
275
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
276
+
277
+ __props__ = _OrganizationApplicationUserState.__new__(_OrganizationApplicationUserState)
278
+
279
+ __props__.__dict__["email"] = email
280
+ __props__.__dict__["name"] = name
281
+ __props__.__dict__["organization_id"] = organization_id
282
+ __props__.__dict__["timeouts"] = timeouts
283
+ __props__.__dict__["user_id"] = user_id
284
+ return OrganizationApplicationUser(resource_name, opts=opts, __props__=__props__)
285
+
286
+ @property
287
+ @pulumi.getter
288
+ def email(self) -> pulumi.Output[str]:
289
+ """
290
+ An email address automatically generated by Aiven to help identify the application user.
291
+ No notifications are sent to this email.
292
+ """
293
+ return pulumi.get(self, "email")
294
+
295
+ @property
296
+ @pulumi.getter
297
+ def name(self) -> pulumi.Output[str]:
298
+ """
299
+ Name of the application user.
300
+ """
301
+ return pulumi.get(self, "name")
302
+
303
+ @property
304
+ @pulumi.getter(name="organizationId")
305
+ def organization_id(self) -> pulumi.Output[str]:
306
+ """
307
+ The ID of the organization the application user belongs to.
308
+ """
309
+ return pulumi.get(self, "organization_id")
310
+
311
+ @property
312
+ @pulumi.getter
313
+ def timeouts(self) -> pulumi.Output[Optional['outputs.OrganizationApplicationUserTimeouts']]:
314
+ return pulumi.get(self, "timeouts")
315
+
316
+ @property
317
+ @pulumi.getter(name="userId")
318
+ def user_id(self) -> pulumi.Output[str]:
319
+ """
320
+ The ID of the application user.
321
+ """
322
+ return pulumi.get(self, "user_id")
323
+