pulumi-aiven 6.13.0a1709702245__py3-none-any.whl → 6.31.0a1736831339__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 +32826 -13922
  3. pulumi_aiven/_utilities.py +41 -5
  4. pulumi_aiven/account.py +34 -43
  5. pulumi_aiven/account_authentication.py +24 -9
  6. pulumi_aiven/account_team.py +37 -12
  7. pulumi_aiven/account_team_member.py +48 -35
  8. pulumi_aiven/account_team_project.py +42 -25
  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 -39
  13. pulumi_aiven/aws_vpc_peering_connection.py +72 -57
  14. pulumi_aiven/azure_privatelink.py +54 -49
  15. pulumi_aiven/azure_privatelink_connection_approval.py +136 -33
  16. pulumi_aiven/azure_vpc_peering_connection.py +86 -73
  17. pulumi_aiven/billing_group.py +33 -30
  18. pulumi_aiven/cassandra.py +145 -122
  19. pulumi_aiven/cassandra_user.py +59 -54
  20. pulumi_aiven/clickhouse.py +133 -110
  21. pulumi_aiven/clickhouse_database.py +58 -58
  22. pulumi_aiven/clickhouse_grant.py +135 -130
  23. pulumi_aiven/clickhouse_role.py +36 -45
  24. pulumi_aiven/clickhouse_user.py +50 -45
  25. pulumi_aiven/config/__init__.pyi +5 -0
  26. pulumi_aiven/config/vars.py +5 -0
  27. pulumi_aiven/connection_pool.py +67 -62
  28. pulumi_aiven/dragonfly.py +1256 -0
  29. pulumi_aiven/flink.py +104 -100
  30. pulumi_aiven/flink_application.py +58 -51
  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 -44
  36. pulumi_aiven/get_account.py +20 -5
  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 -20
  45. pulumi_aiven/get_aws_vpc_peering_connection.py +56 -29
  46. pulumi_aiven/get_azure_privatelink.py +37 -22
  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 -19
  50. pulumi_aiven/get_cassandra.py +55 -19
  51. pulumi_aiven/get_cassandra_user.py +42 -26
  52. pulumi_aiven/get_clickhouse.py +55 -19
  53. pulumi_aiven/get_clickhouse_database.py +35 -22
  54. pulumi_aiven/get_clickhouse_user.py +40 -25
  55. pulumi_aiven/get_connection_pool.py +43 -26
  56. pulumi_aiven/get_dragonfly.py +499 -0
  57. pulumi_aiven/get_external_identity.py +160 -0
  58. pulumi_aiven/get_flink.py +55 -19
  59. pulumi_aiven/get_flink_application.py +44 -27
  60. pulumi_aiven/get_flink_application_version.py +55 -33
  61. pulumi_aiven/get_gcp_privatelink.py +63 -7
  62. pulumi_aiven/get_gcp_vpc_peering_connection.py +39 -24
  63. pulumi_aiven/get_grafana.py +55 -19
  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 -21
  68. pulumi_aiven/get_kafka_acl.py +50 -33
  69. pulumi_aiven/get_kafka_connect.py +54 -32
  70. pulumi_aiven/get_kafka_connector.py +44 -24
  71. pulumi_aiven/get_kafka_mirror_maker.py +50 -28
  72. pulumi_aiven/get_kafka_schema.py +35 -19
  73. pulumi_aiven/get_kafka_schema_configuration.py +32 -17
  74. pulumi_aiven/get_kafka_schema_registry_acl.py +37 -20
  75. pulumi_aiven/get_kafka_topic.py +70 -25
  76. pulumi_aiven/get_kafka_user.py +42 -26
  77. pulumi_aiven/get_m3_aggregator.py +51 -15
  78. pulumi_aiven/get_m3_db.py +55 -19
  79. pulumi_aiven/get_m3db_user.py +38 -24
  80. pulumi_aiven/get_mirror_maker_replication_flow.py +86 -21
  81. pulumi_aiven/get_my_sql.py +50 -14
  82. pulumi_aiven/get_mysql_database.py +31 -18
  83. pulumi_aiven/get_mysql_user.py +36 -19
  84. pulumi_aiven/get_open_search.py +50 -14
  85. pulumi_aiven/get_open_search_acl_config.py +27 -15
  86. pulumi_aiven/get_open_search_acl_rule.py +37 -21
  87. pulumi_aiven/get_opensearch_security_plugin_config.py +29 -15
  88. pulumi_aiven/get_opensearch_user.py +32 -18
  89. pulumi_aiven/get_organization.py +25 -13
  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 -19
  96. pulumi_aiven/get_pg_database.py +39 -24
  97. pulumi_aiven/get_pg_user.py +44 -27
  98. pulumi_aiven/get_project.py +43 -22
  99. pulumi_aiven/get_project_user.py +27 -15
  100. pulumi_aiven/get_project_vpc.py +31 -19
  101. pulumi_aiven/get_redis.py +50 -14
  102. pulumi_aiven/get_redis_user.py +40 -22
  103. pulumi_aiven/get_service_component.py +40 -18
  104. pulumi_aiven/get_service_integration.py +163 -49
  105. pulumi_aiven/get_service_integration_endpoint.py +128 -33
  106. pulumi_aiven/get_thanos.py +499 -0
  107. pulumi_aiven/get_transit_gateway_vpc_attachment.py +35 -18
  108. pulumi_aiven/get_valkey.py +499 -0
  109. pulumi_aiven/get_valkey_user.py +218 -0
  110. pulumi_aiven/grafana.py +188 -318
  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 -140
  115. pulumi_aiven/kafka_acl.py +64 -53
  116. pulumi_aiven/kafka_connect.py +201 -328
  117. pulumi_aiven/kafka_connector.py +67 -56
  118. pulumi_aiven/kafka_mirror_maker.py +139 -318
  119. pulumi_aiven/kafka_native_acl.py +588 -0
  120. pulumi_aiven/kafka_schema.py +65 -56
  121. pulumi_aiven/kafka_schema_configuration.py +25 -20
  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 -54
  125. pulumi_aiven/m3_aggregator.py +176 -308
  126. pulumi_aiven/m3_db.py +190 -322
  127. pulumi_aiven/m3db_user.py +51 -46
  128. pulumi_aiven/mirror_maker_replication_flow.py +217 -53
  129. pulumi_aiven/my_sql.py +190 -322
  130. pulumi_aiven/mysql_database.py +32 -47
  131. pulumi_aiven/mysql_user.py +37 -32
  132. pulumi_aiven/open_search.py +128 -105
  133. pulumi_aiven/open_search_acl_config.py +33 -32
  134. pulumi_aiven/open_search_acl_rule.py +55 -50
  135. pulumi_aiven/opensearch_security_plugin_config.py +69 -16
  136. pulumi_aiven/opensearch_user.py +30 -25
  137. pulumi_aiven/organization.py +18 -13
  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 -32
  146. pulumi_aiven/outputs.py +38509 -21612
  147. pulumi_aiven/pg.py +92 -88
  148. pulumi_aiven/pg_database.py +52 -67
  149. pulumi_aiven/pg_user.py +80 -61
  150. pulumi_aiven/project.py +111 -102
  151. pulumi_aiven/project_user.py +44 -31
  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 +163 -295
  156. pulumi_aiven/redis_user.py +58 -53
  157. pulumi_aiven/service_integration.py +511 -161
  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 -54
  162. pulumi_aiven/valkey.py +1256 -0
  163. pulumi_aiven/valkey_user.py +606 -0
  164. {pulumi_aiven-6.13.0a1709702245.dist-info → pulumi_aiven-6.31.0a1736831339.dist-info}/METADATA +7 -6
  165. pulumi_aiven-6.31.0a1736831339.dist-info/RECORD +169 -0
  166. {pulumi_aiven-6.13.0a1709702245.dist-info → pulumi_aiven-6.31.0a1736831339.dist-info}/WHEEL +1 -1
  167. pulumi_aiven-6.13.0a1709702245.dist-info/RECORD +0 -146
  168. {pulumi_aiven-6.13.0a1709702245.dist-info → pulumi_aiven-6.31.0a1736831339.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__ = [
@@ -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')))
pulumi_aiven/get_pg.py CHANGED
@@ -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
  from . import outputs
12
17
 
@@ -115,7 +120,7 @@ class GetPgResult:
115
120
  @pulumi.getter(name="additionalDiskSpace")
116
121
  def additional_disk_space(self) -> str:
117
122
  """
118
- Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing.
123
+ Add [disk storage](https://aiven.io/docs/platform/howto/add-storage-space) in increments of 30 GiB to scale your service. The maximum value depends on the service type and cloud provider. Removing additional storage causes the service nodes to go through a rolling restart and there might be a short downtime for services with no HA capabilities.
119
124
  """
120
125
  return pulumi.get(self, "additional_disk_space")
121
126
 
@@ -203,7 +208,7 @@ class GetPgResult:
203
208
  @pulumi.getter(name="pgUserConfigs")
204
209
  def pg_user_configs(self) -> Sequence['outputs.GetPgPgUserConfigResult']:
205
210
  """
206
- Pg user configurable settings
211
+ Pg user configurable settings. **Warning:** There's no way to reset advanced configuration options to default. Options that you add cannot be removed later
207
212
  """
208
213
  return pulumi.get(self, "pg_user_configs")
209
214
 
@@ -211,7 +216,7 @@ class GetPgResult:
211
216
  @pulumi.getter
212
217
  def pgs(self) -> Sequence['outputs.GetPgPgResult']:
213
218
  """
214
- PostgreSQL specific server provided values
219
+ Values provided by the PostgreSQL server.
215
220
  """
216
221
  return pulumi.get(self, "pgs")
217
222
 
@@ -219,7 +224,7 @@ class GetPgResult:
219
224
  @pulumi.getter
220
225
  def plan(self) -> str:
221
226
  """
222
- Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are `hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
227
+ Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are `hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available options can be seen from the [Aiven pricing page](https://aiven.io/pricing).
223
228
  """
224
229
  return pulumi.get(self, "plan")
225
230
 
@@ -227,7 +232,7 @@ class GetPgResult:
227
232
  @pulumi.getter
228
233
  def project(self) -> str:
229
234
  """
230
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
235
+ 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.
231
236
  """
232
237
  return pulumi.get(self, "project")
233
238
 
@@ -331,7 +336,7 @@ class GetPgResult:
331
336
  @pulumi.getter(name="techEmails")
332
337
  def tech_emails(self) -> Sequence['outputs.GetPgTechEmailResult']:
333
338
  """
334
- Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service instability.
339
+ The email addresses for [service contacts](https://aiven.io/docs/platform/howto/technical-emails), who will receive important alerts and updates about this service. You can also set email contacts at the project level.
335
340
  """
336
341
  return pulumi.get(self, "tech_emails")
337
342
 
@@ -385,7 +390,7 @@ def get_pg(project: Optional[str] = None,
385
390
  service_name: Optional[str] = None,
386
391
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPgResult:
387
392
  """
388
- The PG data source provides information about the existing Aiven PostgreSQL service.
393
+ Gets information about an Aiven for PostgreSQL® service.
389
394
 
390
395
  ## Example Usage
391
396
 
@@ -393,12 +398,12 @@ def get_pg(project: Optional[str] = None,
393
398
  import pulumi
394
399
  import pulumi_aiven as aiven
395
400
 
396
- pg = aiven.get_pg(project=data["aiven_project"]["pr1"]["project"],
397
- service_name="my-pg1")
401
+ example_postgres = aiven.get_pg(project=example_project["project"],
402
+ service_name="example-postgres-service")
398
403
  ```
399
404
 
400
405
 
401
- :param str project: Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
406
+ :param 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.
402
407
  :param str service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the service so name should be picked based on intended service usage rather than current attributes.
403
408
  """
404
409
  __args__ = dict()
@@ -437,14 +442,11 @@ def get_pg(project: Optional[str] = None,
437
442
  tags=pulumi.get(__ret__, 'tags'),
438
443
  tech_emails=pulumi.get(__ret__, 'tech_emails'),
439
444
  termination_protection=pulumi.get(__ret__, 'termination_protection'))
440
-
441
-
442
- @_utilities.lift_output_func(get_pg)
443
445
  def get_pg_output(project: Optional[pulumi.Input[str]] = None,
444
446
  service_name: Optional[pulumi.Input[str]] = None,
445
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPgResult]:
447
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPgResult]:
446
448
  """
447
- The PG data source provides information about the existing Aiven PostgreSQL service.
449
+ Gets information about an Aiven for PostgreSQL® service.
448
450
 
449
451
  ## Example Usage
450
452
 
@@ -452,12 +454,46 @@ def get_pg_output(project: Optional[pulumi.Input[str]] = None,
452
454
  import pulumi
453
455
  import pulumi_aiven as aiven
454
456
 
455
- pg = aiven.get_pg(project=data["aiven_project"]["pr1"]["project"],
456
- service_name="my-pg1")
457
+ example_postgres = aiven.get_pg(project=example_project["project"],
458
+ service_name="example-postgres-service")
457
459
  ```
458
460
 
459
461
 
460
- :param str project: Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
462
+ :param 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.
461
463
  :param str service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the service so name should be picked based on intended service usage rather than current attributes.
462
464
  """
463
- ...
465
+ __args__ = dict()
466
+ __args__['project'] = project
467
+ __args__['serviceName'] = service_name
468
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
469
+ __ret__ = pulumi.runtime.invoke_output('aiven:index/getPg:getPg', __args__, opts=opts, typ=GetPgResult)
470
+ return __ret__.apply(lambda __response__: GetPgResult(
471
+ additional_disk_space=pulumi.get(__response__, 'additional_disk_space'),
472
+ cloud_name=pulumi.get(__response__, 'cloud_name'),
473
+ components=pulumi.get(__response__, 'components'),
474
+ disk_space=pulumi.get(__response__, 'disk_space'),
475
+ disk_space_cap=pulumi.get(__response__, 'disk_space_cap'),
476
+ disk_space_default=pulumi.get(__response__, 'disk_space_default'),
477
+ disk_space_step=pulumi.get(__response__, 'disk_space_step'),
478
+ disk_space_used=pulumi.get(__response__, 'disk_space_used'),
479
+ id=pulumi.get(__response__, 'id'),
480
+ maintenance_window_dow=pulumi.get(__response__, 'maintenance_window_dow'),
481
+ maintenance_window_time=pulumi.get(__response__, 'maintenance_window_time'),
482
+ pg_user_configs=pulumi.get(__response__, 'pg_user_configs'),
483
+ pgs=pulumi.get(__response__, 'pgs'),
484
+ plan=pulumi.get(__response__, 'plan'),
485
+ project=pulumi.get(__response__, 'project'),
486
+ project_vpc_id=pulumi.get(__response__, 'project_vpc_id'),
487
+ service_host=pulumi.get(__response__, 'service_host'),
488
+ service_integrations=pulumi.get(__response__, 'service_integrations'),
489
+ service_name=pulumi.get(__response__, 'service_name'),
490
+ service_password=pulumi.get(__response__, 'service_password'),
491
+ service_port=pulumi.get(__response__, 'service_port'),
492
+ service_type=pulumi.get(__response__, 'service_type'),
493
+ service_uri=pulumi.get(__response__, 'service_uri'),
494
+ service_username=pulumi.get(__response__, 'service_username'),
495
+ state=pulumi.get(__response__, 'state'),
496
+ static_ips=pulumi.get(__response__, 'static_ips'),
497
+ tags=pulumi.get(__response__, 'tags'),
498
+ tech_emails=pulumi.get(__response__, 'tech_emails'),
499
+ termination_protection=pulumi.get(__response__, 'termination_protection')))
@@ -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__ = [
@@ -48,7 +53,7 @@ class GetPgDatabaseResult:
48
53
  @pulumi.getter(name="databaseName")
49
54
  def database_name(self) -> str:
50
55
  """
51
- The name of the service database. This property cannot be changed, doing so forces recreation of the resource.
56
+ The name of the service database. Changing this property forces recreation of the resource.
52
57
  """
53
58
  return pulumi.get(self, "database_name")
54
59
 
@@ -64,7 +69,7 @@ class GetPgDatabaseResult:
64
69
  @pulumi.getter(name="lcCollate")
65
70
  def lc_collate(self) -> str:
66
71
  """
67
- Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`. This property cannot be changed, doing so forces recreation of the resource.
72
+ 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.
68
73
  """
69
74
  return pulumi.get(self, "lc_collate")
70
75
 
@@ -72,7 +77,7 @@ class GetPgDatabaseResult:
72
77
  @pulumi.getter(name="lcCtype")
73
78
  def lc_ctype(self) -> str:
74
79
  """
75
- Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`. This property cannot be changed, doing so forces recreation of the resource.
80
+ Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
76
81
  """
77
82
  return pulumi.get(self, "lc_ctype")
78
83
 
@@ -80,7 +85,7 @@ class GetPgDatabaseResult:
80
85
  @pulumi.getter
81
86
  def project(self) -> str:
82
87
  """
83
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
88
+ 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.
84
89
  """
85
90
  return pulumi.get(self, "project")
86
91
 
@@ -88,7 +93,7 @@ class GetPgDatabaseResult:
88
93
  @pulumi.getter(name="serviceName")
89
94
  def service_name(self) -> str:
90
95
  """
91
- Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
96
+ 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.
92
97
  """
93
98
  return pulumi.get(self, "service_name")
94
99
 
@@ -118,7 +123,7 @@ def get_pg_database(database_name: Optional[str] = None,
118
123
  service_name: Optional[str] = None,
119
124
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPgDatabaseResult:
120
125
  """
121
- The PG Database data source provides information about the existing Aiven PostgreSQL Database.
126
+ Gets information about a database in an Aiven for PostgreSQL® service.
122
127
 
123
128
  ## Example Usage
124
129
 
@@ -126,15 +131,15 @@ def get_pg_database(database_name: Optional[str] = None,
126
131
  import pulumi
127
132
  import pulumi_aiven as aiven
128
133
 
129
- mydatabase = aiven.get_pg_database(project=aiven_project["myproject"]["project"],
130
- service_name=aiven_pg["mypg"]["service_name"],
131
- database_name="<DATABASE_NAME>")
134
+ main = aiven.get_pg_database(project=example_project["project"],
135
+ service_name=example_postgres["serviceName"],
136
+ database_name="example-database")
132
137
  ```
133
138
 
134
139
 
135
- :param str database_name: The name of the service database. This property cannot be changed, doing so forces recreation of the resource.
136
- :param str project: Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
137
- :param str service_name: Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
140
+ :param str database_name: The name of the service database. Changing this property forces recreation of the resource.
141
+ :param 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.
142
+ :param 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.
138
143
  """
139
144
  __args__ = dict()
140
145
  __args__['databaseName'] = database_name
@@ -151,15 +156,12 @@ def get_pg_database(database_name: Optional[str] = None,
151
156
  project=pulumi.get(__ret__, 'project'),
152
157
  service_name=pulumi.get(__ret__, 'service_name'),
153
158
  termination_protection=pulumi.get(__ret__, 'termination_protection'))
154
-
155
-
156
- @_utilities.lift_output_func(get_pg_database)
157
159
  def get_pg_database_output(database_name: Optional[pulumi.Input[str]] = None,
158
160
  project: Optional[pulumi.Input[str]] = None,
159
161
  service_name: Optional[pulumi.Input[str]] = None,
160
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPgDatabaseResult]:
162
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPgDatabaseResult]:
161
163
  """
162
- The PG Database data source provides information about the existing Aiven PostgreSQL Database.
164
+ Gets information about a database in an Aiven for PostgreSQL® service.
163
165
 
164
166
  ## Example Usage
165
167
 
@@ -167,14 +169,27 @@ def get_pg_database_output(database_name: Optional[pulumi.Input[str]] = None,
167
169
  import pulumi
168
170
  import pulumi_aiven as aiven
169
171
 
170
- mydatabase = aiven.get_pg_database(project=aiven_project["myproject"]["project"],
171
- service_name=aiven_pg["mypg"]["service_name"],
172
- database_name="<DATABASE_NAME>")
172
+ main = aiven.get_pg_database(project=example_project["project"],
173
+ service_name=example_postgres["serviceName"],
174
+ database_name="example-database")
173
175
  ```
174
176
 
175
177
 
176
- :param str database_name: The name of the service database. This property cannot be changed, doing so forces recreation of the resource.
177
- :param str project: Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
178
- :param str service_name: Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
178
+ :param str database_name: The name of the service database. Changing this property forces recreation of the resource.
179
+ :param 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.
180
+ :param 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.
179
181
  """
180
- ...
182
+ __args__ = dict()
183
+ __args__['databaseName'] = database_name
184
+ __args__['project'] = project
185
+ __args__['serviceName'] = service_name
186
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
187
+ __ret__ = pulumi.runtime.invoke_output('aiven:index/getPgDatabase:getPgDatabase', __args__, opts=opts, typ=GetPgDatabaseResult)
188
+ return __ret__.apply(lambda __response__: GetPgDatabaseResult(
189
+ database_name=pulumi.get(__response__, 'database_name'),
190
+ id=pulumi.get(__response__, 'id'),
191
+ lc_collate=pulumi.get(__response__, 'lc_collate'),
192
+ lc_ctype=pulumi.get(__response__, 'lc_ctype'),
193
+ project=pulumi.get(__response__, 'project'),
194
+ service_name=pulumi.get(__response__, 'service_name'),
195
+ termination_protection=pulumi.get(__response__, 'termination_protection')))