pulumi-aiven 6.13.0a1710156545__py3-none-any.whl → 6.31.0a1736849214__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.

Files changed (168) hide show
  1. pulumi_aiven/__init__.py +127 -0
  2. pulumi_aiven/_inputs.py +32615 -13711
  3. pulumi_aiven/_utilities.py +41 -5
  4. pulumi_aiven/account.py +32 -45
  5. pulumi_aiven/account_authentication.py +24 -9
  6. pulumi_aiven/account_team.py +35 -14
  7. pulumi_aiven/account_team_member.py +48 -39
  8. pulumi_aiven/account_team_project.py +40 -27
  9. pulumi_aiven/alloydbomni.py +1335 -0
  10. pulumi_aiven/alloydbomni_database.py +347 -0
  11. pulumi_aiven/alloydbomni_user.py +433 -0
  12. pulumi_aiven/aws_privatelink.py +44 -43
  13. pulumi_aiven/aws_vpc_peering_connection.py +72 -61
  14. pulumi_aiven/azure_privatelink.py +54 -53
  15. pulumi_aiven/azure_privatelink_connection_approval.py +136 -33
  16. pulumi_aiven/azure_vpc_peering_connection.py +86 -77
  17. pulumi_aiven/billing_group.py +33 -34
  18. pulumi_aiven/cassandra.py +145 -126
  19. pulumi_aiven/cassandra_user.py +59 -58
  20. pulumi_aiven/clickhouse.py +133 -114
  21. pulumi_aiven/clickhouse_database.py +58 -62
  22. pulumi_aiven/clickhouse_grant.py +135 -134
  23. pulumi_aiven/clickhouse_role.py +36 -49
  24. pulumi_aiven/clickhouse_user.py +50 -49
  25. pulumi_aiven/config/__init__.pyi +5 -0
  26. pulumi_aiven/config/vars.py +5 -0
  27. pulumi_aiven/connection_pool.py +67 -66
  28. pulumi_aiven/dragonfly.py +1256 -0
  29. pulumi_aiven/flink.py +104 -104
  30. pulumi_aiven/flink_application.py +58 -55
  31. pulumi_aiven/flink_application_deployment.py +178 -73
  32. pulumi_aiven/flink_application_version.py +179 -96
  33. pulumi_aiven/gcp_privatelink.py +69 -42
  34. pulumi_aiven/gcp_privatelink_connection_approval.py +78 -49
  35. pulumi_aiven/gcp_vpc_peering_connection.py +49 -48
  36. pulumi_aiven/get_account.py +20 -9
  37. pulumi_aiven/get_account_authentication.py +31 -5
  38. pulumi_aiven/get_account_team.py +18 -5
  39. pulumi_aiven/get_account_team_member.py +29 -14
  40. pulumi_aiven/get_account_team_project.py +19 -6
  41. pulumi_aiven/get_alloydbomni.py +499 -0
  42. pulumi_aiven/get_alloydbomni_database.py +168 -0
  43. pulumi_aiven/get_alloydbomni_user.py +210 -0
  44. pulumi_aiven/get_aws_privatelink.py +33 -24
  45. pulumi_aiven/get_aws_vpc_peering_connection.py +56 -33
  46. pulumi_aiven/get_azure_privatelink.py +37 -26
  47. pulumi_aiven/get_azure_vpc_peering_connection.py +77 -28
  48. pulumi_aiven/get_billing_group.py +31 -8
  49. pulumi_aiven/get_cassanda.py +55 -23
  50. pulumi_aiven/get_cassandra.py +55 -23
  51. pulumi_aiven/get_cassandra_user.py +42 -30
  52. pulumi_aiven/get_clickhouse.py +55 -23
  53. pulumi_aiven/get_clickhouse_database.py +35 -26
  54. pulumi_aiven/get_clickhouse_user.py +40 -29
  55. pulumi_aiven/get_connection_pool.py +43 -30
  56. pulumi_aiven/get_dragonfly.py +499 -0
  57. pulumi_aiven/get_external_identity.py +160 -0
  58. pulumi_aiven/get_flink.py +55 -23
  59. pulumi_aiven/get_flink_application.py +44 -31
  60. pulumi_aiven/get_flink_application_version.py +55 -37
  61. pulumi_aiven/get_gcp_privatelink.py +63 -7
  62. pulumi_aiven/get_gcp_vpc_peering_connection.py +39 -28
  63. pulumi_aiven/get_grafana.py +55 -23
  64. pulumi_aiven/get_influx_db.py +41 -5
  65. pulumi_aiven/get_influxdb_database.py +18 -5
  66. pulumi_aiven/get_influxdb_user.py +21 -5
  67. pulumi_aiven/get_kafka.py +59 -25
  68. pulumi_aiven/get_kafka_acl.py +50 -37
  69. pulumi_aiven/get_kafka_connect.py +54 -36
  70. pulumi_aiven/get_kafka_connector.py +44 -28
  71. pulumi_aiven/get_kafka_mirror_maker.py +50 -32
  72. pulumi_aiven/get_kafka_schema.py +35 -23
  73. pulumi_aiven/get_kafka_schema_configuration.py +32 -21
  74. pulumi_aiven/get_kafka_schema_registry_acl.py +37 -20
  75. pulumi_aiven/get_kafka_topic.py +70 -29
  76. pulumi_aiven/get_kafka_user.py +42 -30
  77. pulumi_aiven/get_m3_aggregator.py +51 -19
  78. pulumi_aiven/get_m3_db.py +55 -23
  79. pulumi_aiven/get_m3db_user.py +38 -28
  80. pulumi_aiven/get_mirror_maker_replication_flow.py +86 -25
  81. pulumi_aiven/get_my_sql.py +50 -18
  82. pulumi_aiven/get_mysql_database.py +31 -22
  83. pulumi_aiven/get_mysql_user.py +36 -23
  84. pulumi_aiven/get_open_search.py +50 -18
  85. pulumi_aiven/get_open_search_acl_config.py +27 -19
  86. pulumi_aiven/get_open_search_acl_rule.py +37 -25
  87. pulumi_aiven/get_opensearch_security_plugin_config.py +29 -19
  88. pulumi_aiven/get_opensearch_user.py +32 -22
  89. pulumi_aiven/get_organization.py +25 -17
  90. pulumi_aiven/get_organization_application_user.py +176 -0
  91. pulumi_aiven/get_organization_user.py +18 -5
  92. pulumi_aiven/get_organization_user_group.py +48 -14
  93. pulumi_aiven/get_organization_user_list.py +121 -0
  94. pulumi_aiven/get_organizational_unit.py +26 -14
  95. pulumi_aiven/get_pg.py +55 -23
  96. pulumi_aiven/get_pg_database.py +39 -28
  97. pulumi_aiven/get_pg_user.py +44 -31
  98. pulumi_aiven/get_project.py +43 -26
  99. pulumi_aiven/get_project_user.py +27 -19
  100. pulumi_aiven/get_project_vpc.py +31 -23
  101. pulumi_aiven/get_redis.py +50 -18
  102. pulumi_aiven/get_redis_user.py +40 -26
  103. pulumi_aiven/get_service_component.py +40 -22
  104. pulumi_aiven/get_service_integration.py +163 -53
  105. pulumi_aiven/get_service_integration_endpoint.py +128 -37
  106. pulumi_aiven/get_thanos.py +499 -0
  107. pulumi_aiven/get_transit_gateway_vpc_attachment.py +35 -22
  108. pulumi_aiven/get_valkey.py +499 -0
  109. pulumi_aiven/get_valkey_user.py +218 -0
  110. pulumi_aiven/grafana.py +188 -322
  111. pulumi_aiven/influx_db.py +127 -90
  112. pulumi_aiven/influxdb_database.py +40 -55
  113. pulumi_aiven/influxdb_user.py +47 -42
  114. pulumi_aiven/kafka.py +157 -144
  115. pulumi_aiven/kafka_acl.py +64 -57
  116. pulumi_aiven/kafka_connect.py +201 -332
  117. pulumi_aiven/kafka_connector.py +67 -60
  118. pulumi_aiven/kafka_mirror_maker.py +137 -320
  119. pulumi_aiven/kafka_native_acl.py +588 -0
  120. pulumi_aiven/kafka_schema.py +63 -58
  121. pulumi_aiven/kafka_schema_configuration.py +25 -24
  122. pulumi_aiven/kafka_schema_registry_acl.py +80 -35
  123. pulumi_aiven/kafka_topic.py +184 -65
  124. pulumi_aiven/kafka_user.py +59 -58
  125. pulumi_aiven/m3_aggregator.py +174 -310
  126. pulumi_aiven/m3_db.py +190 -326
  127. pulumi_aiven/m3db_user.py +51 -50
  128. pulumi_aiven/mirror_maker_replication_flow.py +215 -55
  129. pulumi_aiven/my_sql.py +188 -324
  130. pulumi_aiven/mysql_database.py +32 -51
  131. pulumi_aiven/mysql_user.py +37 -36
  132. pulumi_aiven/open_search.py +126 -107
  133. pulumi_aiven/open_search_acl_config.py +33 -36
  134. pulumi_aiven/open_search_acl_rule.py +55 -54
  135. pulumi_aiven/opensearch_security_plugin_config.py +69 -16
  136. pulumi_aiven/opensearch_user.py +30 -29
  137. pulumi_aiven/organization.py +18 -17
  138. pulumi_aiven/organization_application_user.py +345 -0
  139. pulumi_aiven/organization_application_user_token.py +711 -0
  140. pulumi_aiven/organization_group_project.py +349 -0
  141. pulumi_aiven/organization_permission.py +421 -0
  142. pulumi_aiven/organization_user.py +25 -46
  143. pulumi_aiven/organization_user_group.py +64 -23
  144. pulumi_aiven/organization_user_group_member.py +359 -0
  145. pulumi_aiven/organizational_unit.py +41 -36
  146. pulumi_aiven/outputs.py +38355 -21458
  147. pulumi_aiven/pg.py +92 -88
  148. pulumi_aiven/pg_database.py +52 -71
  149. pulumi_aiven/pg_user.py +80 -65
  150. pulumi_aiven/project.py +111 -102
  151. pulumi_aiven/project_user.py +44 -35
  152. pulumi_aiven/project_vpc.py +58 -29
  153. pulumi_aiven/provider.py +5 -0
  154. pulumi_aiven/pulumi-plugin.json +2 -1
  155. pulumi_aiven/redis.py +161 -297
  156. pulumi_aiven/redis_user.py +58 -57
  157. pulumi_aiven/service_integration.py +511 -165
  158. pulumi_aiven/service_integration_endpoint.py +466 -158
  159. pulumi_aiven/static_ip.py +21 -16
  160. pulumi_aiven/thanos.py +1262 -0
  161. pulumi_aiven/transit_gateway_vpc_attachment.py +44 -58
  162. pulumi_aiven/valkey.py +1256 -0
  163. pulumi_aiven/valkey_user.py +606 -0
  164. {pulumi_aiven-6.13.0a1710156545.dist-info → pulumi_aiven-6.31.0a1736849214.dist-info}/METADATA +7 -6
  165. pulumi_aiven-6.31.0a1736849214.dist-info/RECORD +169 -0
  166. {pulumi_aiven-6.13.0a1710156545.dist-info → pulumi_aiven-6.31.0a1736849214.dist-info}/WHEEL +1 -1
  167. pulumi_aiven-6.13.0a1710156545.dist-info/RECORD +0 -146
  168. {pulumi_aiven-6.13.0a1710156545.dist-info → pulumi_aiven-6.31.0a1736849214.dist-info}/top_level.txt +0 -0
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
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
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -50,7 +55,7 @@ class GetOrganizationResult:
50
55
  @pulumi.getter
51
56
  def id(self) -> Optional[str]:
52
57
  """
53
- Identifier of the organization.
58
+ ID of the organization.
54
59
  """
55
60
  return pulumi.get(self, "id")
56
61
 
@@ -66,7 +71,7 @@ class GetOrganizationResult:
66
71
  @pulumi.getter(name="tenantId")
67
72
  def tenant_id(self) -> str:
68
73
  """
69
- Tenant identifier of the organization.
74
+ Tenant ID of the organization.
70
75
  """
71
76
  return pulumi.get(self, "tenant_id")
72
77
 
@@ -96,21 +101,19 @@ def get_organization(id: Optional[str] = None,
96
101
  name: Optional[str] = None,
97
102
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetOrganizationResult:
98
103
  """
99
- Retrieves information about an organization from Aiven.
104
+ Gets information about an organization.
100
105
 
101
106
  ## Example Usage
102
107
 
103
- <!--Start PulumiCodeChooser -->
104
108
  ```python
105
109
  import pulumi
106
110
  import pulumi_aiven as aiven
107
111
 
108
- organization1 = aiven.get_organization(name="<ORGANIZATION_NAME>")
112
+ main = aiven.get_organization(name="Example organization")
109
113
  ```
110
- <!--End PulumiCodeChooser -->
111
114
 
112
115
 
113
- :param str id: Identifier of the organization.
116
+ :param str id: ID of the organization.
114
117
  :param str name: Name of the organization.
115
118
  """
116
119
  __args__ = dict()
@@ -125,28 +128,33 @@ def get_organization(id: Optional[str] = None,
125
128
  name=pulumi.get(__ret__, 'name'),
126
129
  tenant_id=pulumi.get(__ret__, 'tenant_id'),
127
130
  update_time=pulumi.get(__ret__, 'update_time'))
128
-
129
-
130
- @_utilities.lift_output_func(get_organization)
131
131
  def get_organization_output(id: Optional[pulumi.Input[Optional[str]]] = None,
132
132
  name: Optional[pulumi.Input[Optional[str]]] = None,
133
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetOrganizationResult]:
133
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetOrganizationResult]:
134
134
  """
135
- Retrieves information about an organization from Aiven.
135
+ Gets information about an organization.
136
136
 
137
137
  ## Example Usage
138
138
 
139
- <!--Start PulumiCodeChooser -->
140
139
  ```python
141
140
  import pulumi
142
141
  import pulumi_aiven as aiven
143
142
 
144
- organization1 = aiven.get_organization(name="<ORGANIZATION_NAME>")
143
+ main = aiven.get_organization(name="Example organization")
145
144
  ```
146
- <!--End PulumiCodeChooser -->
147
145
 
148
146
 
149
- :param str id: Identifier of the organization.
147
+ :param str id: ID of the organization.
150
148
  :param str name: Name of the organization.
151
149
  """
152
- ...
150
+ __args__ = dict()
151
+ __args__['id'] = id
152
+ __args__['name'] = name
153
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
154
+ __ret__ = pulumi.runtime.invoke_output('aiven:index/getOrganization:getOrganization', __args__, opts=opts, typ=GetOrganizationResult)
155
+ return __ret__.apply(lambda __response__: GetOrganizationResult(
156
+ create_time=pulumi.get(__response__, 'create_time'),
157
+ id=pulumi.get(__response__, 'id'),
158
+ name=pulumi.get(__response__, 'name'),
159
+ tenant_id=pulumi.get(__response__, 'tenant_id'),
160
+ update_time=pulumi.get(__response__, 'update_time')))
@@ -0,0 +1,176 @@
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 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
+
17
+ __all__ = [
18
+ 'GetOrganizationApplicationUserResult',
19
+ 'AwaitableGetOrganizationApplicationUserResult',
20
+ 'get_organization_application_user',
21
+ 'get_organization_application_user_output',
22
+ ]
23
+
24
+ @pulumi.output_type
25
+ class GetOrganizationApplicationUserResult:
26
+ """
27
+ A collection of values returned by getOrganizationApplicationUser.
28
+ """
29
+ def __init__(__self__, email=None, id=None, is_super_admin=None, name=None, organization_id=None, user_id=None):
30
+ if email and not isinstance(email, str):
31
+ raise TypeError("Expected argument 'email' to be a str")
32
+ pulumi.set(__self__, "email", email)
33
+ if id and not isinstance(id, str):
34
+ raise TypeError("Expected argument 'id' to be a str")
35
+ pulumi.set(__self__, "id", id)
36
+ if is_super_admin and not isinstance(is_super_admin, bool):
37
+ raise TypeError("Expected argument 'is_super_admin' to be a bool")
38
+ pulumi.set(__self__, "is_super_admin", is_super_admin)
39
+ if name and not isinstance(name, str):
40
+ raise TypeError("Expected argument 'name' to be a str")
41
+ pulumi.set(__self__, "name", name)
42
+ if organization_id and not isinstance(organization_id, str):
43
+ raise TypeError("Expected argument 'organization_id' to be a str")
44
+ pulumi.set(__self__, "organization_id", organization_id)
45
+ if user_id and not isinstance(user_id, str):
46
+ raise TypeError("Expected argument 'user_id' to be a str")
47
+ pulumi.set(__self__, "user_id", user_id)
48
+
49
+ @property
50
+ @pulumi.getter
51
+ def email(self) -> str:
52
+ """
53
+ An email address automatically generated by Aiven to help identify the application user. No notifications are sent to this email.
54
+ """
55
+ return pulumi.get(self, "email")
56
+
57
+ @property
58
+ @pulumi.getter
59
+ def id(self) -> str:
60
+ """
61
+ The provider-assigned unique ID for this managed resource.
62
+ """
63
+ return pulumi.get(self, "id")
64
+
65
+ @property
66
+ @pulumi.getter(name="isSuperAdmin")
67
+ def is_super_admin(self) -> bool:
68
+ """
69
+ Makes the application user a super admin. The super admin role has full access to an organization, its billing and settings, and all its organizational units, projects, and services.
70
+ """
71
+ return pulumi.get(self, "is_super_admin")
72
+
73
+ @property
74
+ @pulumi.getter
75
+ def name(self) -> str:
76
+ """
77
+ Name of the application user.
78
+ """
79
+ return pulumi.get(self, "name")
80
+
81
+ @property
82
+ @pulumi.getter(name="organizationId")
83
+ def organization_id(self) -> str:
84
+ """
85
+ The ID of the organization the application user belongs to.
86
+ """
87
+ return pulumi.get(self, "organization_id")
88
+
89
+ @property
90
+ @pulumi.getter(name="userId")
91
+ def user_id(self) -> str:
92
+ """
93
+ The ID of the application user.
94
+ """
95
+ return pulumi.get(self, "user_id")
96
+
97
+
98
+ class AwaitableGetOrganizationApplicationUserResult(GetOrganizationApplicationUserResult):
99
+ # pylint: disable=using-constant-test
100
+ def __await__(self):
101
+ if False:
102
+ yield self
103
+ return GetOrganizationApplicationUserResult(
104
+ email=self.email,
105
+ id=self.id,
106
+ is_super_admin=self.is_super_admin,
107
+ name=self.name,
108
+ organization_id=self.organization_id,
109
+ user_id=self.user_id)
110
+
111
+
112
+ def get_organization_application_user(organization_id: Optional[str] = None,
113
+ user_id: Optional[str] = None,
114
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetOrganizationApplicationUserResult:
115
+ """
116
+ Gets information about an application user.
117
+
118
+ ## Example Usage
119
+
120
+ ```python
121
+ import pulumi
122
+ import pulumi_aiven as aiven
123
+
124
+ tf_user = aiven.get_organization_application_user(organization_id=main["id"],
125
+ user_id="u123a456b7890c")
126
+ ```
127
+
128
+
129
+ :param str organization_id: The ID of the organization the application user belongs to.
130
+ :param str user_id: The ID of the application user.
131
+ """
132
+ __args__ = dict()
133
+ __args__['organizationId'] = organization_id
134
+ __args__['userId'] = user_id
135
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
136
+ __ret__ = pulumi.runtime.invoke('aiven:index/getOrganizationApplicationUser:getOrganizationApplicationUser', __args__, opts=opts, typ=GetOrganizationApplicationUserResult).value
137
+
138
+ return AwaitableGetOrganizationApplicationUserResult(
139
+ email=pulumi.get(__ret__, 'email'),
140
+ id=pulumi.get(__ret__, 'id'),
141
+ is_super_admin=pulumi.get(__ret__, 'is_super_admin'),
142
+ name=pulumi.get(__ret__, 'name'),
143
+ organization_id=pulumi.get(__ret__, 'organization_id'),
144
+ user_id=pulumi.get(__ret__, 'user_id'))
145
+ def get_organization_application_user_output(organization_id: Optional[pulumi.Input[str]] = None,
146
+ user_id: Optional[pulumi.Input[str]] = None,
147
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetOrganizationApplicationUserResult]:
148
+ """
149
+ Gets information about an application user.
150
+
151
+ ## Example Usage
152
+
153
+ ```python
154
+ import pulumi
155
+ import pulumi_aiven as aiven
156
+
157
+ tf_user = aiven.get_organization_application_user(organization_id=main["id"],
158
+ user_id="u123a456b7890c")
159
+ ```
160
+
161
+
162
+ :param str organization_id: The ID of the organization the application user belongs to.
163
+ :param str user_id: The ID of the application user.
164
+ """
165
+ __args__ = dict()
166
+ __args__['organizationId'] = organization_id
167
+ __args__['userId'] = user_id
168
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
169
+ __ret__ = pulumi.runtime.invoke_output('aiven:index/getOrganizationApplicationUser:getOrganizationApplicationUser', __args__, opts=opts, typ=GetOrganizationApplicationUserResult)
170
+ return __ret__.apply(lambda __response__: GetOrganizationApplicationUserResult(
171
+ email=pulumi.get(__response__, 'email'),
172
+ id=pulumi.get(__response__, 'id'),
173
+ is_super_admin=pulumi.get(__response__, 'is_super_admin'),
174
+ name=pulumi.get(__response__, 'name'),
175
+ organization_id=pulumi.get(__response__, 'organization_id'),
176
+ user_id=pulumi.get(__response__, 'user_id')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
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
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -117,13 +122,10 @@ def get_organization_user(organization_id: Optional[str] = None,
117
122
  organization_id=pulumi.get(__ret__, 'organization_id'),
118
123
  user_email=pulumi.get(__ret__, 'user_email'),
119
124
  user_id=pulumi.get(__ret__, 'user_id'))
120
-
121
-
122
- @_utilities.lift_output_func(get_organization_user)
123
125
  def get_organization_user_output(organization_id: Optional[pulumi.Input[str]] = None,
124
126
  user_email: Optional[pulumi.Input[Optional[str]]] = None,
125
127
  user_id: Optional[pulumi.Input[Optional[str]]] = None,
126
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetOrganizationUserResult]:
128
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetOrganizationUserResult]:
127
129
  """
128
130
  The Organization User data source provides information about the existing Aiven Organization User.
129
131
 
@@ -132,4 +134,15 @@ def get_organization_user_output(organization_id: Optional[pulumi.Input[str]] =
132
134
  :param str user_email: This is a user email address
133
135
  :param str user_id: The unique organization user ID
134
136
  """
135
- ...
137
+ __args__ = dict()
138
+ __args__['organizationId'] = organization_id
139
+ __args__['userEmail'] = user_email
140
+ __args__['userId'] = user_id
141
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
142
+ __ret__ = pulumi.runtime.invoke_output('aiven:index/getOrganizationUser:getOrganizationUser', __args__, opts=opts, typ=GetOrganizationUserResult)
143
+ return __ret__.apply(lambda __response__: GetOrganizationUserResult(
144
+ create_time=pulumi.get(__response__, 'create_time'),
145
+ id=pulumi.get(__response__, 'id'),
146
+ organization_id=pulumi.get(__response__, 'organization_id'),
147
+ user_email=pulumi.get(__response__, 'user_email'),
148
+ user_id=pulumi.get(__response__, 'user_id')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
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
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -56,7 +61,7 @@ class GetOrganizationUserGroupResult:
56
61
  @pulumi.getter
57
62
  def description(self) -> str:
58
63
  """
59
- The description of the user group. This property cannot be changed, doing so forces recreation of the resource.
64
+ The description of the user group. Changing this property forces recreation of the resource.
60
65
  """
61
66
  return pulumi.get(self, "description")
62
67
 
@@ -80,7 +85,7 @@ class GetOrganizationUserGroupResult:
80
85
  @pulumi.getter
81
86
  def name(self) -> str:
82
87
  """
83
- The name of the user group. This property cannot be changed, doing so forces recreation of the resource.
88
+ The name of the user group. Changing this property forces recreation of the resource.
84
89
  """
85
90
  return pulumi.get(self, "name")
86
91
 
@@ -88,7 +93,7 @@ class GetOrganizationUserGroupResult:
88
93
  @pulumi.getter(name="organizationId")
89
94
  def organization_id(self) -> str:
90
95
  """
91
- The ID of the organization. This property cannot be changed, doing so forces recreation of the resource.
96
+ The ID of the organization. Changing this property forces recreation of the resource.
92
97
  """
93
98
  return pulumi.get(self, "organization_id")
94
99
 
@@ -120,11 +125,21 @@ def get_organization_user_group(name: Optional[str] = None,
120
125
  organization_id: Optional[str] = None,
121
126
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetOrganizationUserGroupResult:
122
127
  """
123
- Provides information about an existing user group in an organization.
128
+ Gets information about an existing user group in an organization.
124
129
 
130
+ ## Example Usage
125
131
 
126
- :param str name: The name of the user group. This property cannot be changed, doing so forces recreation of the resource.
127
- :param str organization_id: The ID of the organization. This property cannot be changed, doing so forces recreation of the resource.
132
+ ```python
133
+ import pulumi
134
+ import pulumi_aiven as aiven
135
+
136
+ example = aiven.get_organization_user_group(name="Example group",
137
+ organization_id=main["id"])
138
+ ```
139
+
140
+
141
+ :param str name: The name of the user group. Changing this property forces recreation of the resource.
142
+ :param str organization_id: The ID of the organization. Changing this property forces recreation of the resource.
128
143
  """
129
144
  __args__ = dict()
130
145
  __args__['name'] = name
@@ -140,17 +155,36 @@ def get_organization_user_group(name: Optional[str] = None,
140
155
  name=pulumi.get(__ret__, 'name'),
141
156
  organization_id=pulumi.get(__ret__, 'organization_id'),
142
157
  update_time=pulumi.get(__ret__, 'update_time'))
143
-
144
-
145
- @_utilities.lift_output_func(get_organization_user_group)
146
158
  def get_organization_user_group_output(name: Optional[pulumi.Input[str]] = None,
147
159
  organization_id: Optional[pulumi.Input[str]] = None,
148
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetOrganizationUserGroupResult]:
160
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetOrganizationUserGroupResult]:
149
161
  """
150
- Provides information about an existing user group in an organization.
162
+ Gets information about an existing user group in an organization.
163
+
164
+ ## Example Usage
151
165
 
166
+ ```python
167
+ import pulumi
168
+ import pulumi_aiven as aiven
152
169
 
153
- :param str name: The name of the user group. This property cannot be changed, doing so forces recreation of the resource.
154
- :param str organization_id: The ID of the organization. This property cannot be changed, doing so forces recreation of the resource.
170
+ example = aiven.get_organization_user_group(name="Example group",
171
+ organization_id=main["id"])
172
+ ```
173
+
174
+
175
+ :param str name: The name of the user group. Changing this property forces recreation of the resource.
176
+ :param str organization_id: The ID of the organization. Changing this property forces recreation of the resource.
155
177
  """
156
- ...
178
+ __args__ = dict()
179
+ __args__['name'] = name
180
+ __args__['organizationId'] = organization_id
181
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
182
+ __ret__ = pulumi.runtime.invoke_output('aiven:index/getOrganizationUserGroup:getOrganizationUserGroup', __args__, opts=opts, typ=GetOrganizationUserGroupResult)
183
+ return __ret__.apply(lambda __response__: GetOrganizationUserGroupResult(
184
+ create_time=pulumi.get(__response__, 'create_time'),
185
+ description=pulumi.get(__response__, 'description'),
186
+ group_id=pulumi.get(__response__, 'group_id'),
187
+ id=pulumi.get(__response__, 'id'),
188
+ name=pulumi.get(__response__, 'name'),
189
+ organization_id=pulumi.get(__response__, 'organization_id'),
190
+ update_time=pulumi.get(__response__, 'update_time')))
@@ -0,0 +1,121 @@
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 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
+ 'GetOrganizationUserListResult',
20
+ 'AwaitableGetOrganizationUserListResult',
21
+ 'get_organization_user_list',
22
+ 'get_organization_user_list_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetOrganizationUserListResult:
27
+ """
28
+ A collection of values returned by getOrganizationUserList.
29
+ """
30
+ def __init__(__self__, id=None, name=None, users=None):
31
+ if id and not isinstance(id, str):
32
+ raise TypeError("Expected argument 'id' to be a str")
33
+ pulumi.set(__self__, "id", id)
34
+ if name and not isinstance(name, str):
35
+ raise TypeError("Expected argument 'name' to be a str")
36
+ pulumi.set(__self__, "name", name)
37
+ if users and not isinstance(users, list):
38
+ raise TypeError("Expected argument 'users' to be a list")
39
+ pulumi.set(__self__, "users", users)
40
+
41
+ @property
42
+ @pulumi.getter
43
+ def id(self) -> Optional[str]:
44
+ """
45
+ Organization id. Example: `org12345678`.
46
+ """
47
+ return pulumi.get(self, "id")
48
+
49
+ @property
50
+ @pulumi.getter
51
+ def name(self) -> Optional[str]:
52
+ """
53
+ Organization name. Example: `aiven`.
54
+ """
55
+ return pulumi.get(self, "name")
56
+
57
+ @property
58
+ @pulumi.getter
59
+ def users(self) -> Sequence['outputs.GetOrganizationUserListUserResult']:
60
+ """
61
+ List of users of the organization
62
+ """
63
+ return pulumi.get(self, "users")
64
+
65
+
66
+ class AwaitableGetOrganizationUserListResult(GetOrganizationUserListResult):
67
+ # pylint: disable=using-constant-test
68
+ def __await__(self):
69
+ if False:
70
+ yield self
71
+ return GetOrganizationUserListResult(
72
+ id=self.id,
73
+ name=self.name,
74
+ users=self.users)
75
+
76
+
77
+ def get_organization_user_list(id: Optional[str] = None,
78
+ name: Optional[str] = None,
79
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetOrganizationUserListResult:
80
+ """
81
+ List of users of the organization.
82
+
83
+ **This resource is in the beta stage and may change without notice.** Set
84
+ the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
85
+
86
+
87
+ :param str id: Organization id. Example: `org12345678`.
88
+ :param str name: Organization name. Example: `aiven`.
89
+ """
90
+ __args__ = dict()
91
+ __args__['id'] = id
92
+ __args__['name'] = name
93
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
94
+ __ret__ = pulumi.runtime.invoke('aiven:index/getOrganizationUserList:getOrganizationUserList', __args__, opts=opts, typ=GetOrganizationUserListResult).value
95
+
96
+ return AwaitableGetOrganizationUserListResult(
97
+ id=pulumi.get(__ret__, 'id'),
98
+ name=pulumi.get(__ret__, 'name'),
99
+ users=pulumi.get(__ret__, 'users'))
100
+ def get_organization_user_list_output(id: Optional[pulumi.Input[Optional[str]]] = None,
101
+ name: Optional[pulumi.Input[Optional[str]]] = None,
102
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetOrganizationUserListResult]:
103
+ """
104
+ List of users of the organization.
105
+
106
+ **This resource is in the beta stage and may change without notice.** Set
107
+ the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
108
+
109
+
110
+ :param str id: Organization id. Example: `org12345678`.
111
+ :param str name: Organization name. Example: `aiven`.
112
+ """
113
+ __args__ = dict()
114
+ __args__['id'] = id
115
+ __args__['name'] = name
116
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
117
+ __ret__ = pulumi.runtime.invoke_output('aiven:index/getOrganizationUserList:getOrganizationUserList', __args__, opts=opts, typ=GetOrganizationUserListResult)
118
+ return __ret__.apply(lambda __response__: GetOrganizationUserListResult(
119
+ id=pulumi.get(__response__, 'id'),
120
+ name=pulumi.get(__response__, 'name'),
121
+ users=pulumi.get(__response__, 'users')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
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
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -45,7 +50,7 @@ class GetOrganizationalUnitResult:
45
50
  @pulumi.getter(name="createTime")
46
51
  def create_time(self) -> str:
47
52
  """
48
- Time of creation
53
+ Time of creation.
49
54
  """
50
55
  return pulumi.get(self, "create_time")
51
56
 
@@ -61,7 +66,7 @@ class GetOrganizationalUnitResult:
61
66
  @pulumi.getter
62
67
  def name(self) -> str:
63
68
  """
64
- Organizational Unit name
69
+ The name of the organizational unit.
65
70
  """
66
71
  return pulumi.get(self, "name")
67
72
 
@@ -69,7 +74,7 @@ class GetOrganizationalUnitResult:
69
74
  @pulumi.getter(name="parentId")
70
75
  def parent_id(self) -> str:
71
76
  """
72
- Parent ID
77
+ The ID of the organization that the unit is created in.
73
78
  """
74
79
  return pulumi.get(self, "parent_id")
75
80
 
@@ -77,7 +82,7 @@ class GetOrganizationalUnitResult:
77
82
  @pulumi.getter(name="tenantId")
78
83
  def tenant_id(self) -> str:
79
84
  """
80
- Tenant ID
85
+ Tenant ID.
81
86
  """
82
87
  return pulumi.get(self, "tenant_id")
83
88
 
@@ -85,7 +90,7 @@ class GetOrganizationalUnitResult:
85
90
  @pulumi.getter(name="updateTime")
86
91
  def update_time(self) -> str:
87
92
  """
88
- Time of last update
93
+ Time of last update.
89
94
  """
90
95
  return pulumi.get(self, "update_time")
91
96
 
@@ -107,10 +112,10 @@ class AwaitableGetOrganizationalUnitResult(GetOrganizationalUnitResult):
107
112
  def get_organizational_unit(name: Optional[str] = None,
108
113
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetOrganizationalUnitResult:
109
114
  """
110
- The Organizational Unit data source provides information about the existing Aiven Organizational Unit.
115
+ Gets information about an organizational unit.
111
116
 
112
117
 
113
- :param str name: Organizational Unit name
118
+ :param str name: The name of the organizational unit.
114
119
  """
115
120
  __args__ = dict()
116
121
  __args__['name'] = name
@@ -124,15 +129,22 @@ def get_organizational_unit(name: Optional[str] = None,
124
129
  parent_id=pulumi.get(__ret__, 'parent_id'),
125
130
  tenant_id=pulumi.get(__ret__, 'tenant_id'),
126
131
  update_time=pulumi.get(__ret__, 'update_time'))
127
-
128
-
129
- @_utilities.lift_output_func(get_organizational_unit)
130
132
  def get_organizational_unit_output(name: Optional[pulumi.Input[str]] = None,
131
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetOrganizationalUnitResult]:
133
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetOrganizationalUnitResult]:
132
134
  """
133
- The Organizational Unit data source provides information about the existing Aiven Organizational Unit.
135
+ Gets information about an organizational unit.
134
136
 
135
137
 
136
- :param str name: Organizational Unit name
138
+ :param str name: The name of the organizational unit.
137
139
  """
138
- ...
140
+ __args__ = dict()
141
+ __args__['name'] = name
142
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
143
+ __ret__ = pulumi.runtime.invoke_output('aiven:index/getOrganizationalUnit:getOrganizationalUnit', __args__, opts=opts, typ=GetOrganizationalUnitResult)
144
+ return __ret__.apply(lambda __response__: GetOrganizationalUnitResult(
145
+ create_time=pulumi.get(__response__, 'create_time'),
146
+ id=pulumi.get(__response__, 'id'),
147
+ name=pulumi.get(__response__, 'name'),
148
+ parent_id=pulumi.get(__response__, 'parent_id'),
149
+ tenant_id=pulumi.get(__response__, 'tenant_id'),
150
+ update_time=pulumi.get(__response__, 'update_time')))