pulumi-aiven 6.15.0__py3-none-any.whl → 6.15.0a1715059046__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.

@@ -27,6 +27,8 @@ class PgDatabaseArgs:
27
27
  :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.
28
28
  :param pulumi.Input[str] lc_collate: Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
29
29
  :param pulumi.Input[str] lc_ctype: Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
30
+ :param pulumi.Input[bool] termination_protection: It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
31
+ recommended to enable this for any production databases containing critical data. The default value is `false`.
30
32
  """
31
33
  pulumi.set(__self__, "database_name", database_name)
32
34
  pulumi.set(__self__, "project", project)
@@ -101,6 +103,10 @@ class PgDatabaseArgs:
101
103
  @property
102
104
  @pulumi.getter(name="terminationProtection")
103
105
  def termination_protection(self) -> Optional[pulumi.Input[bool]]:
106
+ """
107
+ It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
108
+ recommended to enable this for any production databases containing critical data. The default value is `false`.
109
+ """
104
110
  return pulumi.get(self, "termination_protection")
105
111
 
106
112
  @termination_protection.setter
@@ -124,6 +130,8 @@ class _PgDatabaseState:
124
130
  :param pulumi.Input[str] lc_ctype: Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
125
131
  :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.
126
132
  :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.
133
+ :param pulumi.Input[bool] termination_protection: It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
134
+ recommended to enable this for any production databases containing critical data. The default value is `false`.
127
135
  """
128
136
  if database_name is not None:
129
137
  pulumi.set(__self__, "database_name", database_name)
@@ -201,6 +209,10 @@ class _PgDatabaseState:
201
209
  @property
202
210
  @pulumi.getter(name="terminationProtection")
203
211
  def termination_protection(self) -> Optional[pulumi.Input[bool]]:
212
+ """
213
+ It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
214
+ recommended to enable this for any production databases containing critical data. The default value is `false`.
215
+ """
204
216
  return pulumi.get(self, "termination_protection")
205
217
 
206
218
  @termination_protection.setter
@@ -248,6 +260,8 @@ class PgDatabase(pulumi.CustomResource):
248
260
  :param pulumi.Input[str] lc_ctype: Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
249
261
  :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.
250
262
  :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.
263
+ :param pulumi.Input[bool] termination_protection: It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
264
+ recommended to enable this for any production databases containing critical data. The default value is `false`.
251
265
  """
252
266
  ...
253
267
  @overload
@@ -346,6 +360,8 @@ class PgDatabase(pulumi.CustomResource):
346
360
  :param pulumi.Input[str] lc_ctype: Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
347
361
  :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.
348
362
  :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.
363
+ :param pulumi.Input[bool] termination_protection: It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
364
+ recommended to enable this for any production databases containing critical data. The default value is `false`.
349
365
  """
350
366
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
351
367
 
@@ -402,5 +418,9 @@ class PgDatabase(pulumi.CustomResource):
402
418
  @property
403
419
  @pulumi.getter(name="terminationProtection")
404
420
  def termination_protection(self) -> pulumi.Output[Optional[bool]]:
421
+ """
422
+ It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
423
+ recommended to enable this for any production databases containing critical data. The default value is `false`.
424
+ """
405
425
  return pulumi.get(self, "termination_protection")
406
426
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_aiven
3
- Version: 6.15.0
3
+ Version: 6.15.0a1715059046
4
4
  Summary: A Pulumi package for creating and managing Aiven cloud resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -1,5 +1,5 @@
1
- pulumi_aiven/__init__.py,sha256=0h2zG50QpZLUQoqA306HEacGVpiLolClybi7bGHtHSo,17963
2
- pulumi_aiven/_inputs.py,sha256=nlwaUKen1b0hKjdb8U1klU3HpYlts1Rw4CLOJs6mCnY,1007703
1
+ pulumi_aiven/__init__.py,sha256=6sfOeGhPMewe-c18YxiNqWS-lk8QjDv4Yc7ohAGw45o,17360
2
+ pulumi_aiven/_inputs.py,sha256=OKhUWVQ-9KdcbXo3iSs6WAISXXOfThw-Cp7fsNvR57A,999381
3
3
  pulumi_aiven/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
4
4
  pulumi_aiven/account.py,sha256=AgV088KZCyVC_ndgqWeFOeqb52-m9XtdPvjGSQ2LRrs,18274
5
5
  pulumi_aiven/account_authentication.py,sha256=vltk7XN7jXSO12BQ834AKPy1p1RGKqsX8jrMKOU_7K0,36871
@@ -15,9 +15,9 @@ pulumi_aiven/billing_group.py,sha256=32WUU61rJV4hMMho2xdZ6FT4mQBarzhUDHCcRDhvGpU
15
15
  pulumi_aiven/cassandra.py,sha256=7LK6JdNlAnJKudT-Ebo4kvyl4DT14AOJCW-svh1Doto,78026
16
16
  pulumi_aiven/cassandra_user.py,sha256=oD7ArA3pybc68ND_tQL4lG3YxVk37OSkpnp-c2-2MCs,18922
17
17
  pulumi_aiven/clickhouse.py,sha256=2N403DQENgGri5RIVLglZAvhm0nCNVgTu6pguB6BaPg,77668
18
- pulumi_aiven/clickhouse_database.py,sha256=Z16_Ddf9zKLCV16iO4S_9Wk5TEawdYJyO9nQq5IznxQ,14474
18
+ pulumi_aiven/clickhouse_database.py,sha256=wIumRQnXk9RudW2ieaIDYFVYCfI8Uvxi6iYGZezRmdQ,16741
19
19
  pulumi_aiven/clickhouse_grant.py,sha256=G52gABm-fNtzio74wy3ASxG9p0qCRFhBkyVA03uNVpw,25857
20
- pulumi_aiven/clickhouse_role.py,sha256=Lk9H_bkZcsvaktXIno8QEqNMQdqeqYVRqoE2a30xzW8,13175
20
+ pulumi_aiven/clickhouse_role.py,sha256=VsWUTH_cS0VOXZt3RmDfHzHaPpjl0q0dPe_9FHyiokY,13185
21
21
  pulumi_aiven/clickhouse_user.py,sha256=v4XaOVURXHPJ8FWww6IRKaXSTMGlmKznplNWK78ksb0,15886
22
22
  pulumi_aiven/connection_pool.py,sha256=3Vd_cbCNIZSSxP2ztuk_zm4CagEAYudGVKYmqCM6W1o,25462
23
23
  pulumi_aiven/dragonfly.py,sha256=6uoEhc4unuUJjlH1DEECEXMOn78K92-jh_LyFks5mHg,77724
@@ -78,7 +78,6 @@ pulumi_aiven/get_open_search_acl_rule.py,sha256=ALOv6HiP9C_pynlN0-kgQPh642Heccfu
78
78
  pulumi_aiven/get_opensearch_security_plugin_config.py,sha256=FdUNjCJduz412aQE85-cnXU4Ya2NwQOil1hEVThfnxM,7739
79
79
  pulumi_aiven/get_opensearch_user.py,sha256=jMvtCufiKwIUzAKXf9eFqEQujpfEmZJS3HH9_tZTgFc,7069
80
80
  pulumi_aiven/get_organization.py,sha256=NtZz1DpiyYUGkbTKum5oP27A_KYtLW_y0u6vbccaovI,4646
81
- pulumi_aiven/get_organization_application_user.py,sha256=0lZ9tqYCaOGzcvmy9_wPgSYEpGpzEcPPJbn5fsDK2YY,5740
82
81
  pulumi_aiven/get_organization_user.py,sha256=1hdtZ9xCzN9ci-yM7xKGiEfEYtgYhxYJuRncX4fxnhM,5050
83
82
  pulumi_aiven/get_organization_user_group.py,sha256=jFvrv0G0CnTENs0YSLFrPotJW-1RQJ0IC5AdTVvNR3E,6462
84
83
  pulumi_aiven/get_organizational_unit.py,sha256=wuiMG9iefxZluA84PqT9iwArghn7JcH1PdF12jei8uE,4697
@@ -96,7 +95,7 @@ pulumi_aiven/get_service_integration_endpoint.py,sha256=lq4NjVNKEJzVE2qIey3OypQu
96
95
  pulumi_aiven/get_transit_gateway_vpc_attachment.py,sha256=7KYmjS-lxR5ipZNCkfLQMm0j8AFfRFe-TiTB9kzWY9s,9117
97
96
  pulumi_aiven/grafana.py,sha256=YMBstRgct1Y8Dou5dDuIrgja34ixPSyQYtBC0TqT_Xc,77620
98
97
  pulumi_aiven/influx_db.py,sha256=Umimggf7YJXJy-bT85RblUtAgf6n62s2VYIdPbDbQXs,79426
99
- pulumi_aiven/influxdb_database.py,sha256=-W78tVLUInwbQS0iHcBC5uToGVOQykTl3WlmO8HAUBQ,14040
98
+ pulumi_aiven/influxdb_database.py,sha256=DUJquUNzU81LkOwMDvecHaAaK2KOcYXO9ToDCPBsRqg,16069
100
99
  pulumi_aiven/influxdb_user.py,sha256=SptXu0v0R8S_pFs-veNOZkeIvTrCWnCsAZMHb0Z3rjY,18226
101
100
  pulumi_aiven/kafka.py,sha256=VDbez_3PeMw9Gs-FP9pFh0CBD8fh-8nuNaqDp-33ftw,84657
102
101
  pulumi_aiven/kafka_acl.py,sha256=GLGuq8vGGI55_rjZ6Op6bZcAPTc1Iejgzr0DjS_S2sw,18524
@@ -106,14 +105,14 @@ pulumi_aiven/kafka_mirror_maker.py,sha256=nQTPFV-zIhwyokmQbzuaJTnUyC0y6E_kMC66Dt
106
105
  pulumi_aiven/kafka_schema.py,sha256=dzVrDdWK7QzIlVTSKrRpemuYo0SmDeuygkiVHRWlnnc,22597
107
106
  pulumi_aiven/kafka_schema_configuration.py,sha256=kJVMjKWs19pf0m16wtUnTboIkHj5-5Mqo7yvD6qHUwk,14026
108
107
  pulumi_aiven/kafka_schema_registry_acl.py,sha256=unoLvRS6Xx7oaKmYlyN3_laQrHAmMD4pj7SkZDlxqIE,19435
109
- pulumi_aiven/kafka_topic.py,sha256=elP1YmNuQUBtvdYrJPiEJDpHJq8jtmpMCDo96SY36t8,23039
108
+ pulumi_aiven/kafka_topic.py,sha256=Hge8XdymVan3iCnfzqNwkWedjYcWyHAbSCKC9jend6o,24550
110
109
  pulumi_aiven/kafka_user.py,sha256=EmDWeof7mZkmvaqEUXyX3Movvun9Tjzq3-zyM_qi7C0,18410
111
110
  pulumi_aiven/m3_aggregator.py,sha256=R3tJboDK4DBedihqQtqPIQhFzzW6QMPu3Kz7eAAFSa4,78198
112
111
  pulumi_aiven/m3_db.py,sha256=s1OgStCLeFTlimSbNHTYxXtil3lAC3VBsSDAtQdHnhI,77264
113
112
  pulumi_aiven/m3db_user.py,sha256=5svsu5nO-CwdR3Cp-OHej55L19fERWCjMFe3BUi9Zbg,16224
114
113
  pulumi_aiven/mirror_maker_replication_flow.py,sha256=54VhbUgpBfpI57LT5iU7PgaISAh-su5Bhun0NKQeBnQ,40172
115
114
  pulumi_aiven/my_sql.py,sha256=KY0K4FLYM7kTWibJMbcxkOtvz4XE53B2hfi1SeN-2Qg,77858
116
- pulumi_aiven/mysql_database.py,sha256=V-PIDNBgrVHMCko7rVqi57vvoIjL8304E2RgawjrgHE,14754
115
+ pulumi_aiven/mysql_database.py,sha256=2ppKNtTVGnZUcIo2MtQ5f8CxNkdrx4LJXl-RiwaBDis,16783
117
116
  pulumi_aiven/mysql_user.py,sha256=oiWZ0B1KJYCSl21uB61I-hB2gdmhzGiXNXx7xqLjs8M,21065
118
117
  pulumi_aiven/open_search.py,sha256=Zed1LfajTCo5w9wTDM3BWovZRTVLLuOH5JZ1DLP1H0s,80065
119
118
  pulumi_aiven/open_search_acl_config.py,sha256=t5lPy7nN2_08a9LK-4H-hwNS1PpS8aRoujLAoEbT_-o,17912
@@ -121,16 +120,14 @@ pulumi_aiven/open_search_acl_rule.py,sha256=_8D_sLAiM29SNMMjl1fLUzae8tgNQhLPmWaJ
121
120
  pulumi_aiven/opensearch_security_plugin_config.py,sha256=HpnFd2__mtiAwwOh9PFboST9zs8tRWruKvl_PFEaQKs,18636
122
121
  pulumi_aiven/opensearch_user.py,sha256=N7mlHAEAKFXNrwzCJ-j-VBHD5pCHHk-UHoove-Y5Rjc,16488
123
122
  pulumi_aiven/organization.py,sha256=440RPNMMC4u9SrVovSjpXzOd9bk6HgBT4V9t24v2V5A,10891
124
- pulumi_aiven/organization_application_user.py,sha256=raxJsj-Zn43lJ-GbM59hwzmxalfY2xN6tri6c3Q1P_U,13082
125
- pulumi_aiven/organization_application_user_token.py,sha256=vavSryZ82e8CtSZn1jiTzoz33kroC6N--2lRxZ3EaTk,32786
126
123
  pulumi_aiven/organization_group_project.py,sha256=3eh9eXSwQ1q-eJi3HOoAqG_c-Svuo1jfC7uGBFLwiOs,13476
127
124
  pulumi_aiven/organization_user.py,sha256=0XAWD_j5GtN-YZz2vkCNOZLftYjQFSACR9Bxk4Kvbcg,16135
128
125
  pulumi_aiven/organization_user_group.py,sha256=XTBcIrCH9uxRZewjGcMeWyEi91Zel3BrkIC0GcaNdfI,14704
129
126
  pulumi_aiven/organization_user_group_member.py,sha256=hQNwloGq0KpEuSb0RCirDyA0bygxUSCM80_o-yOzb3o,14096
130
127
  pulumi_aiven/organizational_unit.py,sha256=dgHOIJKfjAhuLeRsOI9vLYRwVfteIFrWKXe_kTBU-JU,11475
131
- pulumi_aiven/outputs.py,sha256=Ahr3zytMG20lWGihd8AbVRlo244KBcyL1jPq_r698GI,1652442
128
+ pulumi_aiven/outputs.py,sha256=qQFHbTc3nLoyAA5n5SiMBd1E0R2VnFcphjNk7cUCTc0,1645406
132
129
  pulumi_aiven/pg.py,sha256=pOsirgL0ryQZmRHSfeTydDcXAxhTyI4AJXzsRn_cz0I,77421
133
- pulumi_aiven/pg_database.py,sha256=qsYKZAioLzv2bzYAFVxLumkEV-2e031ysC77h9HkqLA,20021
130
+ pulumi_aiven/pg_database.py,sha256=SsLBisN7zYYy_jRXgS3Yc_ojEbNI5WqvqWKiYg4x4SQ,22050
134
131
  pulumi_aiven/pg_user.py,sha256=O25YPH3N19lRc_QoLgw9NK9i8W2jys0dejq37f3EaXo,20775
135
132
  pulumi_aiven/project.py,sha256=ArAEa2FDbKM-PkMxzPJascIcYq7BzSs5L0HPjAw7CAw,47105
136
133
  pulumi_aiven/project_user.py,sha256=CAxxa2QCsyk1Apm-Mf7BZv5YeFbKbx8LxUEjtG5NUJA,13182
@@ -147,7 +144,7 @@ pulumi_aiven/transit_gateway_vpc_attachment.py,sha256=CCP3cTy2oJVGieXjKEXi44-MFF
147
144
  pulumi_aiven/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
148
145
  pulumi_aiven/config/__init__.pyi,sha256=i0kRcMqRhHZqXZfs-7cXU-bEhaP2QAJDGjuUhIMDgqY,465
149
146
  pulumi_aiven/config/vars.py,sha256=hQgM94csEU3YnUsOUTPc-JvxssBTpi2DURZx6QWdLUk,658
150
- pulumi_aiven-6.15.0.dist-info/METADATA,sha256=Zfp4Es7-Z5UM_xIewyBIrcKKkx2Mrf1riGbmp5ctgLM,2521
151
- pulumi_aiven-6.15.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
152
- pulumi_aiven-6.15.0.dist-info/top_level.txt,sha256=4rjz_Hec4Y2PFX4LhJ-JcnMU5H7z-y7r1yiK_xEduWU,13
153
- pulumi_aiven-6.15.0.dist-info/RECORD,,
147
+ pulumi_aiven-6.15.0a1715059046.dist-info/METADATA,sha256=tfDtB49CEgbQ8pGEDt6dEd5anIC4v9pu4t8ZhuiKT08,2532
148
+ pulumi_aiven-6.15.0a1715059046.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
149
+ pulumi_aiven-6.15.0a1715059046.dist-info/top_level.txt,sha256=4rjz_Hec4Y2PFX4LhJ-JcnMU5H7z-y7r1yiK_xEduWU,13
150
+ pulumi_aiven-6.15.0a1715059046.dist-info/RECORD,,
@@ -1,156 +0,0 @@
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__ = [
13
- 'GetOrganizationApplicationUserResult',
14
- 'AwaitableGetOrganizationApplicationUserResult',
15
- 'get_organization_application_user',
16
- 'get_organization_application_user_output',
17
- ]
18
-
19
- @pulumi.output_type
20
- class GetOrganizationApplicationUserResult:
21
- """
22
- A collection of values returned by getOrganizationApplicationUser.
23
- """
24
- def __init__(__self__, email=None, id=None, name=None, organization_id=None, user_id=None):
25
- if email and not isinstance(email, str):
26
- raise TypeError("Expected argument 'email' to be a str")
27
- pulumi.set(__self__, "email", email)
28
- if id and not isinstance(id, str):
29
- raise TypeError("Expected argument 'id' to be a str")
30
- pulumi.set(__self__, "id", id)
31
- if name and not isinstance(name, str):
32
- raise TypeError("Expected argument 'name' to be a str")
33
- pulumi.set(__self__, "name", name)
34
- if organization_id and not isinstance(organization_id, str):
35
- raise TypeError("Expected argument 'organization_id' to be a str")
36
- pulumi.set(__self__, "organization_id", organization_id)
37
- if user_id and not isinstance(user_id, str):
38
- raise TypeError("Expected argument 'user_id' to be a str")
39
- pulumi.set(__self__, "user_id", user_id)
40
-
41
- @property
42
- @pulumi.getter
43
- def email(self) -> str:
44
- """
45
- The auto-generated email address of the application user.
46
- """
47
- return pulumi.get(self, "email")
48
-
49
- @property
50
- @pulumi.getter
51
- def id(self) -> str:
52
- """
53
- The provider-assigned unique ID for this managed resource.
54
- """
55
- return pulumi.get(self, "id")
56
-
57
- @property
58
- @pulumi.getter
59
- def name(self) -> str:
60
- """
61
- Name of the application user.
62
- """
63
- return pulumi.get(self, "name")
64
-
65
- @property
66
- @pulumi.getter(name="organizationId")
67
- def organization_id(self) -> str:
68
- """
69
- The ID of the organization the application user belongs to.
70
- """
71
- return pulumi.get(self, "organization_id")
72
-
73
- @property
74
- @pulumi.getter(name="userId")
75
- def user_id(self) -> str:
76
- """
77
- The ID of the application user.
78
- """
79
- return pulumi.get(self, "user_id")
80
-
81
-
82
- class AwaitableGetOrganizationApplicationUserResult(GetOrganizationApplicationUserResult):
83
- # pylint: disable=using-constant-test
84
- def __await__(self):
85
- if False:
86
- yield self
87
- return GetOrganizationApplicationUserResult(
88
- email=self.email,
89
- id=self.id,
90
- name=self.name,
91
- organization_id=self.organization_id,
92
- user_id=self.user_id)
93
-
94
-
95
- def get_organization_application_user(organization_id: Optional[str] = None,
96
- user_id: Optional[str] = None,
97
- opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetOrganizationApplicationUserResult:
98
- """
99
- Gets information about an application user.
100
-
101
- **This data source is in the limited availability stage and may change without notice.** To enable this feature, contact the sales team. After it's enabled, set
102
- the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the data source.
103
-
104
- ## Example Usage
105
-
106
- ```python
107
- import pulumi
108
- import pulumi_aiven as aiven
109
-
110
- tf_user = aiven.get_organization_application_user(organization_id=main["id"],
111
- user_id="u123a456b7890c")
112
- ```
113
-
114
-
115
- :param str organization_id: The ID of the organization the application user belongs to.
116
- :param str user_id: The ID of the application user.
117
- """
118
- __args__ = dict()
119
- __args__['organizationId'] = organization_id
120
- __args__['userId'] = user_id
121
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
122
- __ret__ = pulumi.runtime.invoke('aiven:index/getOrganizationApplicationUser:getOrganizationApplicationUser', __args__, opts=opts, typ=GetOrganizationApplicationUserResult).value
123
-
124
- return AwaitableGetOrganizationApplicationUserResult(
125
- email=pulumi.get(__ret__, 'email'),
126
- id=pulumi.get(__ret__, 'id'),
127
- name=pulumi.get(__ret__, 'name'),
128
- organization_id=pulumi.get(__ret__, 'organization_id'),
129
- user_id=pulumi.get(__ret__, 'user_id'))
130
-
131
-
132
- @_utilities.lift_output_func(get_organization_application_user)
133
- def get_organization_application_user_output(organization_id: Optional[pulumi.Input[str]] = None,
134
- user_id: Optional[pulumi.Input[str]] = None,
135
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetOrganizationApplicationUserResult]:
136
- """
137
- Gets information about an application user.
138
-
139
- **This data source is in the limited availability stage and may change without notice.** To enable this feature, contact the sales team. After it's enabled, set
140
- the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the data source.
141
-
142
- ## Example Usage
143
-
144
- ```python
145
- import pulumi
146
- import pulumi_aiven as aiven
147
-
148
- tf_user = aiven.get_organization_application_user(organization_id=main["id"],
149
- user_id="u123a456b7890c")
150
- ```
151
-
152
-
153
- :param str organization_id: The ID of the organization the application user belongs to.
154
- :param str user_id: The ID of the application user.
155
- """
156
- ...
@@ -1,323 +0,0 @@
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
-