pulumi-aiven 6.13.0a1710156545__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.
- pulumi_aiven/__init__.py +127 -0
- pulumi_aiven/_inputs.py +32615 -13711
- pulumi_aiven/_utilities.py +41 -5
- pulumi_aiven/account.py +32 -45
- pulumi_aiven/account_authentication.py +24 -9
- pulumi_aiven/account_team.py +35 -14
- pulumi_aiven/account_team_member.py +48 -39
- pulumi_aiven/account_team_project.py +40 -27
- pulumi_aiven/alloydbomni.py +1335 -0
- pulumi_aiven/alloydbomni_database.py +347 -0
- pulumi_aiven/alloydbomni_user.py +433 -0
- pulumi_aiven/aws_privatelink.py +44 -43
- pulumi_aiven/aws_vpc_peering_connection.py +72 -61
- pulumi_aiven/azure_privatelink.py +54 -53
- pulumi_aiven/azure_privatelink_connection_approval.py +136 -33
- pulumi_aiven/azure_vpc_peering_connection.py +86 -77
- pulumi_aiven/billing_group.py +33 -34
- pulumi_aiven/cassandra.py +145 -126
- pulumi_aiven/cassandra_user.py +59 -58
- pulumi_aiven/clickhouse.py +133 -114
- pulumi_aiven/clickhouse_database.py +58 -62
- pulumi_aiven/clickhouse_grant.py +135 -134
- pulumi_aiven/clickhouse_role.py +36 -49
- pulumi_aiven/clickhouse_user.py +50 -49
- pulumi_aiven/config/__init__.pyi +5 -0
- pulumi_aiven/config/vars.py +5 -0
- pulumi_aiven/connection_pool.py +67 -66
- pulumi_aiven/dragonfly.py +1256 -0
- pulumi_aiven/flink.py +104 -104
- pulumi_aiven/flink_application.py +58 -55
- pulumi_aiven/flink_application_deployment.py +178 -73
- pulumi_aiven/flink_application_version.py +179 -96
- pulumi_aiven/gcp_privatelink.py +69 -42
- pulumi_aiven/gcp_privatelink_connection_approval.py +78 -49
- pulumi_aiven/gcp_vpc_peering_connection.py +49 -48
- pulumi_aiven/get_account.py +20 -9
- pulumi_aiven/get_account_authentication.py +31 -5
- pulumi_aiven/get_account_team.py +18 -5
- pulumi_aiven/get_account_team_member.py +29 -14
- pulumi_aiven/get_account_team_project.py +19 -6
- pulumi_aiven/get_alloydbomni.py +499 -0
- pulumi_aiven/get_alloydbomni_database.py +168 -0
- pulumi_aiven/get_alloydbomni_user.py +210 -0
- pulumi_aiven/get_aws_privatelink.py +33 -24
- pulumi_aiven/get_aws_vpc_peering_connection.py +56 -33
- pulumi_aiven/get_azure_privatelink.py +37 -26
- pulumi_aiven/get_azure_vpc_peering_connection.py +77 -28
- pulumi_aiven/get_billing_group.py +31 -8
- pulumi_aiven/get_cassanda.py +55 -23
- pulumi_aiven/get_cassandra.py +55 -23
- pulumi_aiven/get_cassandra_user.py +42 -30
- pulumi_aiven/get_clickhouse.py +55 -23
- pulumi_aiven/get_clickhouse_database.py +35 -26
- pulumi_aiven/get_clickhouse_user.py +40 -29
- pulumi_aiven/get_connection_pool.py +43 -30
- pulumi_aiven/get_dragonfly.py +499 -0
- pulumi_aiven/get_external_identity.py +160 -0
- pulumi_aiven/get_flink.py +55 -23
- pulumi_aiven/get_flink_application.py +44 -31
- pulumi_aiven/get_flink_application_version.py +55 -37
- pulumi_aiven/get_gcp_privatelink.py +63 -7
- pulumi_aiven/get_gcp_vpc_peering_connection.py +39 -28
- pulumi_aiven/get_grafana.py +55 -23
- pulumi_aiven/get_influx_db.py +41 -5
- pulumi_aiven/get_influxdb_database.py +18 -5
- pulumi_aiven/get_influxdb_user.py +21 -5
- pulumi_aiven/get_kafka.py +59 -25
- pulumi_aiven/get_kafka_acl.py +50 -37
- pulumi_aiven/get_kafka_connect.py +54 -36
- pulumi_aiven/get_kafka_connector.py +44 -28
- pulumi_aiven/get_kafka_mirror_maker.py +50 -32
- pulumi_aiven/get_kafka_schema.py +35 -23
- pulumi_aiven/get_kafka_schema_configuration.py +32 -21
- pulumi_aiven/get_kafka_schema_registry_acl.py +37 -20
- pulumi_aiven/get_kafka_topic.py +70 -29
- pulumi_aiven/get_kafka_user.py +42 -30
- pulumi_aiven/get_m3_aggregator.py +51 -19
- pulumi_aiven/get_m3_db.py +55 -23
- pulumi_aiven/get_m3db_user.py +38 -28
- pulumi_aiven/get_mirror_maker_replication_flow.py +86 -25
- pulumi_aiven/get_my_sql.py +50 -18
- pulumi_aiven/get_mysql_database.py +31 -22
- pulumi_aiven/get_mysql_user.py +36 -23
- pulumi_aiven/get_open_search.py +50 -18
- pulumi_aiven/get_open_search_acl_config.py +27 -19
- pulumi_aiven/get_open_search_acl_rule.py +37 -25
- pulumi_aiven/get_opensearch_security_plugin_config.py +29 -19
- pulumi_aiven/get_opensearch_user.py +32 -22
- pulumi_aiven/get_organization.py +25 -17
- pulumi_aiven/get_organization_application_user.py +176 -0
- pulumi_aiven/get_organization_user.py +18 -5
- pulumi_aiven/get_organization_user_group.py +48 -14
- pulumi_aiven/get_organization_user_list.py +121 -0
- pulumi_aiven/get_organizational_unit.py +26 -14
- pulumi_aiven/get_pg.py +55 -23
- pulumi_aiven/get_pg_database.py +39 -28
- pulumi_aiven/get_pg_user.py +44 -31
- pulumi_aiven/get_project.py +43 -26
- pulumi_aiven/get_project_user.py +27 -19
- pulumi_aiven/get_project_vpc.py +31 -23
- pulumi_aiven/get_redis.py +50 -18
- pulumi_aiven/get_redis_user.py +40 -26
- pulumi_aiven/get_service_component.py +40 -22
- pulumi_aiven/get_service_integration.py +163 -53
- pulumi_aiven/get_service_integration_endpoint.py +128 -37
- pulumi_aiven/get_thanos.py +499 -0
- pulumi_aiven/get_transit_gateway_vpc_attachment.py +35 -22
- pulumi_aiven/get_valkey.py +499 -0
- pulumi_aiven/get_valkey_user.py +218 -0
- pulumi_aiven/grafana.py +188 -322
- pulumi_aiven/influx_db.py +127 -90
- pulumi_aiven/influxdb_database.py +40 -55
- pulumi_aiven/influxdb_user.py +47 -42
- pulumi_aiven/kafka.py +157 -144
- pulumi_aiven/kafka_acl.py +64 -57
- pulumi_aiven/kafka_connect.py +201 -332
- pulumi_aiven/kafka_connector.py +67 -60
- pulumi_aiven/kafka_mirror_maker.py +137 -320
- pulumi_aiven/kafka_native_acl.py +588 -0
- pulumi_aiven/kafka_schema.py +63 -58
- pulumi_aiven/kafka_schema_configuration.py +25 -24
- pulumi_aiven/kafka_schema_registry_acl.py +80 -35
- pulumi_aiven/kafka_topic.py +184 -65
- pulumi_aiven/kafka_user.py +59 -58
- pulumi_aiven/m3_aggregator.py +174 -310
- pulumi_aiven/m3_db.py +190 -326
- pulumi_aiven/m3db_user.py +51 -50
- pulumi_aiven/mirror_maker_replication_flow.py +215 -55
- pulumi_aiven/my_sql.py +188 -324
- pulumi_aiven/mysql_database.py +32 -51
- pulumi_aiven/mysql_user.py +37 -36
- pulumi_aiven/open_search.py +126 -107
- pulumi_aiven/open_search_acl_config.py +33 -36
- pulumi_aiven/open_search_acl_rule.py +55 -54
- pulumi_aiven/opensearch_security_plugin_config.py +69 -16
- pulumi_aiven/opensearch_user.py +30 -29
- pulumi_aiven/organization.py +18 -17
- pulumi_aiven/organization_application_user.py +345 -0
- pulumi_aiven/organization_application_user_token.py +711 -0
- pulumi_aiven/organization_group_project.py +349 -0
- pulumi_aiven/organization_permission.py +421 -0
- pulumi_aiven/organization_user.py +25 -46
- pulumi_aiven/organization_user_group.py +64 -23
- pulumi_aiven/organization_user_group_member.py +359 -0
- pulumi_aiven/organizational_unit.py +41 -36
- pulumi_aiven/outputs.py +38355 -21458
- pulumi_aiven/pg.py +92 -88
- pulumi_aiven/pg_database.py +52 -71
- pulumi_aiven/pg_user.py +80 -65
- pulumi_aiven/project.py +111 -102
- pulumi_aiven/project_user.py +44 -35
- pulumi_aiven/project_vpc.py +58 -29
- pulumi_aiven/provider.py +5 -0
- pulumi_aiven/pulumi-plugin.json +2 -1
- pulumi_aiven/redis.py +161 -297
- pulumi_aiven/redis_user.py +58 -57
- pulumi_aiven/service_integration.py +511 -165
- pulumi_aiven/service_integration_endpoint.py +466 -158
- pulumi_aiven/static_ip.py +21 -16
- pulumi_aiven/thanos.py +1262 -0
- pulumi_aiven/transit_gateway_vpc_attachment.py +44 -58
- pulumi_aiven/valkey.py +1256 -0
- pulumi_aiven/valkey_user.py +606 -0
- {pulumi_aiven-6.13.0a1710156545.dist-info → pulumi_aiven-6.31.0a1736831339.dist-info}/METADATA +7 -6
- pulumi_aiven-6.31.0a1736831339.dist-info/RECORD +169 -0
- {pulumi_aiven-6.13.0a1710156545.dist-info → pulumi_aiven-6.31.0a1736831339.dist-info}/WHEEL +1 -1
- pulumi_aiven-6.13.0a1710156545.dist-info/RECORD +0 -146
- {pulumi_aiven-6.13.0a1710156545.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__ = ['OpenSearchAclConfigArgs', 'OpenSearchAclConfig']
|
|
@@ -20,8 +25,8 @@ class OpenSearchAclConfigArgs:
|
|
|
20
25
|
extended_acl: Optional[pulumi.Input[bool]] = None):
|
|
21
26
|
"""
|
|
22
27
|
The set of arguments for constructing a OpenSearchAclConfig resource.
|
|
23
|
-
:param pulumi.Input[str] project:
|
|
24
|
-
:param pulumi.Input[str] service_name:
|
|
28
|
+
: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.
|
|
29
|
+
: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.
|
|
25
30
|
:param pulumi.Input[bool] enabled: Enable OpenSearch ACLs. When disabled authenticated service users have unrestricted access. The default value is `true`.
|
|
26
31
|
:param pulumi.Input[bool] extended_acl: Index rules can be applied in a limited fashion to the _mget, _msearch and _bulk APIs (and only those) by enabling the ExtendedAcl option for the service. When it is enabled, users can use these APIs as long as all operations only target indexes they have been granted access to. The default value is `true`.
|
|
27
32
|
"""
|
|
@@ -36,7 +41,7 @@ class OpenSearchAclConfigArgs:
|
|
|
36
41
|
@pulumi.getter
|
|
37
42
|
def project(self) -> pulumi.Input[str]:
|
|
38
43
|
"""
|
|
39
|
-
|
|
44
|
+
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.
|
|
40
45
|
"""
|
|
41
46
|
return pulumi.get(self, "project")
|
|
42
47
|
|
|
@@ -48,7 +53,7 @@ class OpenSearchAclConfigArgs:
|
|
|
48
53
|
@pulumi.getter(name="serviceName")
|
|
49
54
|
def service_name(self) -> pulumi.Input[str]:
|
|
50
55
|
"""
|
|
51
|
-
|
|
56
|
+
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.
|
|
52
57
|
"""
|
|
53
58
|
return pulumi.get(self, "service_name")
|
|
54
59
|
|
|
@@ -92,8 +97,8 @@ class _OpenSearchAclConfigState:
|
|
|
92
97
|
Input properties used for looking up and filtering OpenSearchAclConfig resources.
|
|
93
98
|
:param pulumi.Input[bool] enabled: Enable OpenSearch ACLs. When disabled authenticated service users have unrestricted access. The default value is `true`.
|
|
94
99
|
:param pulumi.Input[bool] extended_acl: Index rules can be applied in a limited fashion to the _mget, _msearch and _bulk APIs (and only those) by enabling the ExtendedAcl option for the service. When it is enabled, users can use these APIs as long as all operations only target indexes they have been granted access to. The default value is `true`.
|
|
95
|
-
:param pulumi.Input[str] project:
|
|
96
|
-
:param pulumi.Input[str] service_name:
|
|
100
|
+
: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.
|
|
101
|
+
: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.
|
|
97
102
|
"""
|
|
98
103
|
if enabled is not None:
|
|
99
104
|
pulumi.set(__self__, "enabled", enabled)
|
|
@@ -132,7 +137,7 @@ class _OpenSearchAclConfigState:
|
|
|
132
137
|
@pulumi.getter
|
|
133
138
|
def project(self) -> Optional[pulumi.Input[str]]:
|
|
134
139
|
"""
|
|
135
|
-
|
|
140
|
+
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.
|
|
136
141
|
"""
|
|
137
142
|
return pulumi.get(self, "project")
|
|
138
143
|
|
|
@@ -144,7 +149,7 @@ class _OpenSearchAclConfigState:
|
|
|
144
149
|
@pulumi.getter(name="serviceName")
|
|
145
150
|
def service_name(self) -> Optional[pulumi.Input[str]]:
|
|
146
151
|
"""
|
|
147
|
-
|
|
152
|
+
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.
|
|
148
153
|
"""
|
|
149
154
|
return pulumi.get(self, "service_name")
|
|
150
155
|
|
|
@@ -168,43 +173,39 @@ class OpenSearchAclConfig(pulumi.CustomResource):
|
|
|
168
173
|
|
|
169
174
|
## Example Usage
|
|
170
175
|
|
|
171
|
-
<!--Start PulumiCodeChooser -->
|
|
172
176
|
```python
|
|
173
177
|
import pulumi
|
|
174
178
|
import pulumi_aiven as aiven
|
|
175
179
|
|
|
176
|
-
|
|
180
|
+
foo = aiven.get_project(project="example_project")
|
|
177
181
|
bar = aiven.OpenSearch("bar",
|
|
178
|
-
project=
|
|
182
|
+
project=foo.project,
|
|
179
183
|
cloud_name="google-europe-west1",
|
|
180
184
|
plan="startup-4",
|
|
181
185
|
service_name="example_service_name",
|
|
182
186
|
maintenance_window_dow="monday",
|
|
183
187
|
maintenance_window_time="10:00:00")
|
|
184
|
-
foo_opensearch_user = aiven.OpensearchUser("
|
|
188
|
+
foo_opensearch_user = aiven.OpensearchUser("foo",
|
|
185
189
|
service_name=bar.service_name,
|
|
186
|
-
project=
|
|
190
|
+
project=foo.project,
|
|
187
191
|
username="user-example")
|
|
188
|
-
foo_open_search_acl_config = aiven.OpenSearchAclConfig("
|
|
189
|
-
project=
|
|
192
|
+
foo_open_search_acl_config = aiven.OpenSearchAclConfig("foo",
|
|
193
|
+
project=foo.project,
|
|
190
194
|
service_name=bar.service_name,
|
|
191
195
|
enabled=True,
|
|
192
196
|
extended_acl=False)
|
|
193
197
|
```
|
|
194
|
-
<!--End PulumiCodeChooser -->
|
|
195
198
|
|
|
196
199
|
## Import
|
|
197
200
|
|
|
198
|
-
|
|
199
|
-
$ pulumi import aiven:index/openSearchAclConfig:OpenSearchAclConfig foo project/service_name
|
|
200
|
-
```
|
|
201
|
+
TERRAFORM IMPORT AIVEN_OPENSEARCH_ACL_CONFIG.FOO project/service_name
|
|
201
202
|
|
|
202
203
|
:param str resource_name: The name of the resource.
|
|
203
204
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
204
205
|
:param pulumi.Input[bool] enabled: Enable OpenSearch ACLs. When disabled authenticated service users have unrestricted access. The default value is `true`.
|
|
205
206
|
:param pulumi.Input[bool] extended_acl: Index rules can be applied in a limited fashion to the _mget, _msearch and _bulk APIs (and only those) by enabling the ExtendedAcl option for the service. When it is enabled, users can use these APIs as long as all operations only target indexes they have been granted access to. The default value is `true`.
|
|
206
|
-
:param pulumi.Input[str] project:
|
|
207
|
-
:param pulumi.Input[str] service_name:
|
|
207
|
+
: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.
|
|
208
|
+
: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.
|
|
208
209
|
"""
|
|
209
210
|
...
|
|
210
211
|
@overload
|
|
@@ -217,36 +218,32 @@ class OpenSearchAclConfig(pulumi.CustomResource):
|
|
|
217
218
|
|
|
218
219
|
## Example Usage
|
|
219
220
|
|
|
220
|
-
<!--Start PulumiCodeChooser -->
|
|
221
221
|
```python
|
|
222
222
|
import pulumi
|
|
223
223
|
import pulumi_aiven as aiven
|
|
224
224
|
|
|
225
|
-
|
|
225
|
+
foo = aiven.get_project(project="example_project")
|
|
226
226
|
bar = aiven.OpenSearch("bar",
|
|
227
|
-
project=
|
|
227
|
+
project=foo.project,
|
|
228
228
|
cloud_name="google-europe-west1",
|
|
229
229
|
plan="startup-4",
|
|
230
230
|
service_name="example_service_name",
|
|
231
231
|
maintenance_window_dow="monday",
|
|
232
232
|
maintenance_window_time="10:00:00")
|
|
233
|
-
foo_opensearch_user = aiven.OpensearchUser("
|
|
233
|
+
foo_opensearch_user = aiven.OpensearchUser("foo",
|
|
234
234
|
service_name=bar.service_name,
|
|
235
|
-
project=
|
|
235
|
+
project=foo.project,
|
|
236
236
|
username="user-example")
|
|
237
|
-
foo_open_search_acl_config = aiven.OpenSearchAclConfig("
|
|
238
|
-
project=
|
|
237
|
+
foo_open_search_acl_config = aiven.OpenSearchAclConfig("foo",
|
|
238
|
+
project=foo.project,
|
|
239
239
|
service_name=bar.service_name,
|
|
240
240
|
enabled=True,
|
|
241
241
|
extended_acl=False)
|
|
242
242
|
```
|
|
243
|
-
<!--End PulumiCodeChooser -->
|
|
244
243
|
|
|
245
244
|
## Import
|
|
246
245
|
|
|
247
|
-
|
|
248
|
-
$ pulumi import aiven:index/openSearchAclConfig:OpenSearchAclConfig foo project/service_name
|
|
249
|
-
```
|
|
246
|
+
TERRAFORM IMPORT AIVEN_OPENSEARCH_ACL_CONFIG.FOO project/service_name
|
|
250
247
|
|
|
251
248
|
:param str resource_name: The name of the resource.
|
|
252
249
|
:param OpenSearchAclConfigArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -307,8 +304,8 @@ class OpenSearchAclConfig(pulumi.CustomResource):
|
|
|
307
304
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
308
305
|
:param pulumi.Input[bool] enabled: Enable OpenSearch ACLs. When disabled authenticated service users have unrestricted access. The default value is `true`.
|
|
309
306
|
:param pulumi.Input[bool] extended_acl: Index rules can be applied in a limited fashion to the _mget, _msearch and _bulk APIs (and only those) by enabling the ExtendedAcl option for the service. When it is enabled, users can use these APIs as long as all operations only target indexes they have been granted access to. The default value is `true`.
|
|
310
|
-
:param pulumi.Input[str] project:
|
|
311
|
-
:param pulumi.Input[str] service_name:
|
|
307
|
+
: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.
|
|
308
|
+
: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.
|
|
312
309
|
"""
|
|
313
310
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
314
311
|
|
|
@@ -340,7 +337,7 @@ class OpenSearchAclConfig(pulumi.CustomResource):
|
|
|
340
337
|
@pulumi.getter
|
|
341
338
|
def project(self) -> pulumi.Output[str]:
|
|
342
339
|
"""
|
|
343
|
-
|
|
340
|
+
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.
|
|
344
341
|
"""
|
|
345
342
|
return pulumi.get(self, "project")
|
|
346
343
|
|
|
@@ -348,7 +345,7 @@ class OpenSearchAclConfig(pulumi.CustomResource):
|
|
|
348
345
|
@pulumi.getter(name="serviceName")
|
|
349
346
|
def service_name(self) -> pulumi.Output[str]:
|
|
350
347
|
"""
|
|
351
|
-
|
|
348
|
+
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.
|
|
352
349
|
"""
|
|
353
350
|
return pulumi.get(self, "service_name")
|
|
354
351
|
|
|
@@ -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__ = ['OpenSearchAclRuleArgs', 'OpenSearchAclRule']
|
|
@@ -21,11 +26,11 @@ class OpenSearchAclRuleArgs:
|
|
|
21
26
|
username: pulumi.Input[str]):
|
|
22
27
|
"""
|
|
23
28
|
The set of arguments for constructing a OpenSearchAclRule resource.
|
|
24
|
-
:param pulumi.Input[str] index: The index pattern for this ACL entry. Maximum length: `249`.
|
|
29
|
+
:param pulumi.Input[str] index: The index pattern for this ACL entry. Maximum length: `249`. Changing this property forces recreation of the resource.
|
|
25
30
|
:param pulumi.Input[str] permission: The permissions for this ACL entry. The possible values are `deny`, `admin`, `read`, `readwrite` and `write`.
|
|
26
|
-
:param pulumi.Input[str] project:
|
|
27
|
-
:param pulumi.Input[str] service_name:
|
|
28
|
-
:param pulumi.Input[str] username: The username for the ACL entry. Maximum length: `40`. To set up proper dependencies please refer to this variable as a reference.
|
|
31
|
+
: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.
|
|
32
|
+
: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.
|
|
33
|
+
:param pulumi.Input[str] username: The username for the ACL entry. Maximum length: `40`. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
29
34
|
"""
|
|
30
35
|
pulumi.set(__self__, "index", index)
|
|
31
36
|
pulumi.set(__self__, "permission", permission)
|
|
@@ -37,7 +42,7 @@ class OpenSearchAclRuleArgs:
|
|
|
37
42
|
@pulumi.getter
|
|
38
43
|
def index(self) -> pulumi.Input[str]:
|
|
39
44
|
"""
|
|
40
|
-
The index pattern for this ACL entry. Maximum length: `249`.
|
|
45
|
+
The index pattern for this ACL entry. Maximum length: `249`. Changing this property forces recreation of the resource.
|
|
41
46
|
"""
|
|
42
47
|
return pulumi.get(self, "index")
|
|
43
48
|
|
|
@@ -61,7 +66,7 @@ class OpenSearchAclRuleArgs:
|
|
|
61
66
|
@pulumi.getter
|
|
62
67
|
def project(self) -> pulumi.Input[str]:
|
|
63
68
|
"""
|
|
64
|
-
|
|
69
|
+
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.
|
|
65
70
|
"""
|
|
66
71
|
return pulumi.get(self, "project")
|
|
67
72
|
|
|
@@ -73,7 +78,7 @@ class OpenSearchAclRuleArgs:
|
|
|
73
78
|
@pulumi.getter(name="serviceName")
|
|
74
79
|
def service_name(self) -> pulumi.Input[str]:
|
|
75
80
|
"""
|
|
76
|
-
|
|
81
|
+
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.
|
|
77
82
|
"""
|
|
78
83
|
return pulumi.get(self, "service_name")
|
|
79
84
|
|
|
@@ -85,7 +90,7 @@ class OpenSearchAclRuleArgs:
|
|
|
85
90
|
@pulumi.getter
|
|
86
91
|
def username(self) -> pulumi.Input[str]:
|
|
87
92
|
"""
|
|
88
|
-
The username for the ACL entry. Maximum length: `40`. To set up proper dependencies please refer to this variable as a reference.
|
|
93
|
+
The username for the ACL entry. Maximum length: `40`. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
89
94
|
"""
|
|
90
95
|
return pulumi.get(self, "username")
|
|
91
96
|
|
|
@@ -104,11 +109,11 @@ class _OpenSearchAclRuleState:
|
|
|
104
109
|
username: Optional[pulumi.Input[str]] = None):
|
|
105
110
|
"""
|
|
106
111
|
Input properties used for looking up and filtering OpenSearchAclRule resources.
|
|
107
|
-
:param pulumi.Input[str] index: The index pattern for this ACL entry. Maximum length: `249`.
|
|
112
|
+
:param pulumi.Input[str] index: The index pattern for this ACL entry. Maximum length: `249`. Changing this property forces recreation of the resource.
|
|
108
113
|
:param pulumi.Input[str] permission: The permissions for this ACL entry. The possible values are `deny`, `admin`, `read`, `readwrite` and `write`.
|
|
109
|
-
:param pulumi.Input[str] project:
|
|
110
|
-
:param pulumi.Input[str] service_name:
|
|
111
|
-
:param pulumi.Input[str] username: The username for the ACL entry. Maximum length: `40`. To set up proper dependencies please refer to this variable as a reference.
|
|
114
|
+
: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.
|
|
115
|
+
: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.
|
|
116
|
+
:param pulumi.Input[str] username: The username for the ACL entry. Maximum length: `40`. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
112
117
|
"""
|
|
113
118
|
if index is not None:
|
|
114
119
|
pulumi.set(__self__, "index", index)
|
|
@@ -125,7 +130,7 @@ class _OpenSearchAclRuleState:
|
|
|
125
130
|
@pulumi.getter
|
|
126
131
|
def index(self) -> Optional[pulumi.Input[str]]:
|
|
127
132
|
"""
|
|
128
|
-
The index pattern for this ACL entry. Maximum length: `249`.
|
|
133
|
+
The index pattern for this ACL entry. Maximum length: `249`. Changing this property forces recreation of the resource.
|
|
129
134
|
"""
|
|
130
135
|
return pulumi.get(self, "index")
|
|
131
136
|
|
|
@@ -149,7 +154,7 @@ class _OpenSearchAclRuleState:
|
|
|
149
154
|
@pulumi.getter
|
|
150
155
|
def project(self) -> Optional[pulumi.Input[str]]:
|
|
151
156
|
"""
|
|
152
|
-
|
|
157
|
+
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.
|
|
153
158
|
"""
|
|
154
159
|
return pulumi.get(self, "project")
|
|
155
160
|
|
|
@@ -161,7 +166,7 @@ class _OpenSearchAclRuleState:
|
|
|
161
166
|
@pulumi.getter(name="serviceName")
|
|
162
167
|
def service_name(self) -> Optional[pulumi.Input[str]]:
|
|
163
168
|
"""
|
|
164
|
-
|
|
169
|
+
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.
|
|
165
170
|
"""
|
|
166
171
|
return pulumi.get(self, "service_name")
|
|
167
172
|
|
|
@@ -173,7 +178,7 @@ class _OpenSearchAclRuleState:
|
|
|
173
178
|
@pulumi.getter
|
|
174
179
|
def username(self) -> Optional[pulumi.Input[str]]:
|
|
175
180
|
"""
|
|
176
|
-
The username for the ACL entry. Maximum length: `40`. To set up proper dependencies please refer to this variable as a reference.
|
|
181
|
+
The username for the ACL entry. Maximum length: `40`. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
177
182
|
"""
|
|
178
183
|
return pulumi.get(self, "username")
|
|
179
184
|
|
|
@@ -198,22 +203,21 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
198
203
|
|
|
199
204
|
## Example Usage
|
|
200
205
|
|
|
201
|
-
<!--Start PulumiCodeChooser -->
|
|
202
206
|
```python
|
|
203
207
|
import pulumi
|
|
204
208
|
import pulumi_aiven as aiven
|
|
205
209
|
|
|
206
|
-
os_user = aiven.OpensearchUser("
|
|
207
|
-
project=
|
|
208
|
-
service_name=
|
|
210
|
+
os_user = aiven.OpensearchUser("os_user",
|
|
211
|
+
project=aiven_project_name,
|
|
212
|
+
service_name=os_test["serviceName"],
|
|
209
213
|
username="documentation-user-1")
|
|
210
|
-
os_user2 = aiven.OpensearchUser("
|
|
211
|
-
project=
|
|
212
|
-
service_name=
|
|
214
|
+
os_user2 = aiven.OpensearchUser("os_user_2",
|
|
215
|
+
project=aiven_project_name,
|
|
216
|
+
service_name=os_test["serviceName"],
|
|
213
217
|
username="documentation-user-2")
|
|
214
|
-
os_acls_config = aiven.OpenSearchAclConfig("
|
|
215
|
-
project=
|
|
216
|
-
service_name=
|
|
218
|
+
os_acls_config = aiven.OpenSearchAclConfig("os_acls_config",
|
|
219
|
+
project=aiven_project_name,
|
|
220
|
+
service_name=os_test["serviceName"],
|
|
217
221
|
enabled=True,
|
|
218
222
|
extended_acl=False)
|
|
219
223
|
acl_rules = [
|
|
@@ -246,7 +250,7 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
246
250
|
os_acl_rule = []
|
|
247
251
|
def create_os_acl_rule(range_body):
|
|
248
252
|
for range in [{"key": k, "value": v} for [k, v] in enumerate(range_body)]:
|
|
249
|
-
os_acl_rule.append(aiven.OpenSearchAclRule(f"
|
|
253
|
+
os_acl_rule.append(aiven.OpenSearchAclRule(f"os_acl_rule-{range['key']}",
|
|
250
254
|
project=os_acls_config.project,
|
|
251
255
|
service_name=os_acls_config.service_name,
|
|
252
256
|
username=range["value"]["username"],
|
|
@@ -255,21 +259,20 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
255
259
|
|
|
256
260
|
pulumi.Output.all({i: v for i, v in acl_rules}).apply(lambda resolved_outputs: create_os_acl_rule(resolved_outputs[0]))
|
|
257
261
|
```
|
|
258
|
-
<!--End PulumiCodeChooser -->
|
|
259
262
|
|
|
260
263
|
## Import
|
|
261
264
|
|
|
262
265
|
```sh
|
|
263
|
-
$ pulumi import aiven:index/openSearchAclRule:OpenSearchAclRule os_acl_rule
|
|
266
|
+
$ pulumi import aiven:index/openSearchAclRule:OpenSearchAclRule os_acl_rule PROJECT/SERVICE_NAME/USERNAME/INDEX
|
|
264
267
|
```
|
|
265
268
|
|
|
266
269
|
:param str resource_name: The name of the resource.
|
|
267
270
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
268
|
-
:param pulumi.Input[str] index: The index pattern for this ACL entry. Maximum length: `249`.
|
|
271
|
+
:param pulumi.Input[str] index: The index pattern for this ACL entry. Maximum length: `249`. Changing this property forces recreation of the resource.
|
|
269
272
|
:param pulumi.Input[str] permission: The permissions for this ACL entry. The possible values are `deny`, `admin`, `read`, `readwrite` and `write`.
|
|
270
|
-
:param pulumi.Input[str] project:
|
|
271
|
-
:param pulumi.Input[str] service_name:
|
|
272
|
-
:param pulumi.Input[str] username: The username for the ACL entry. Maximum length: `40`. To set up proper dependencies please refer to this variable as a reference.
|
|
273
|
+
: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.
|
|
274
|
+
: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.
|
|
275
|
+
:param pulumi.Input[str] username: The username for the ACL entry. Maximum length: `40`. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
273
276
|
"""
|
|
274
277
|
...
|
|
275
278
|
@overload
|
|
@@ -282,22 +285,21 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
282
285
|
|
|
283
286
|
## Example Usage
|
|
284
287
|
|
|
285
|
-
<!--Start PulumiCodeChooser -->
|
|
286
288
|
```python
|
|
287
289
|
import pulumi
|
|
288
290
|
import pulumi_aiven as aiven
|
|
289
291
|
|
|
290
|
-
os_user = aiven.OpensearchUser("
|
|
291
|
-
project=
|
|
292
|
-
service_name=
|
|
292
|
+
os_user = aiven.OpensearchUser("os_user",
|
|
293
|
+
project=aiven_project_name,
|
|
294
|
+
service_name=os_test["serviceName"],
|
|
293
295
|
username="documentation-user-1")
|
|
294
|
-
os_user2 = aiven.OpensearchUser("
|
|
295
|
-
project=
|
|
296
|
-
service_name=
|
|
296
|
+
os_user2 = aiven.OpensearchUser("os_user_2",
|
|
297
|
+
project=aiven_project_name,
|
|
298
|
+
service_name=os_test["serviceName"],
|
|
297
299
|
username="documentation-user-2")
|
|
298
|
-
os_acls_config = aiven.OpenSearchAclConfig("
|
|
299
|
-
project=
|
|
300
|
-
service_name=
|
|
300
|
+
os_acls_config = aiven.OpenSearchAclConfig("os_acls_config",
|
|
301
|
+
project=aiven_project_name,
|
|
302
|
+
service_name=os_test["serviceName"],
|
|
301
303
|
enabled=True,
|
|
302
304
|
extended_acl=False)
|
|
303
305
|
acl_rules = [
|
|
@@ -330,7 +332,7 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
330
332
|
os_acl_rule = []
|
|
331
333
|
def create_os_acl_rule(range_body):
|
|
332
334
|
for range in [{"key": k, "value": v} for [k, v] in enumerate(range_body)]:
|
|
333
|
-
os_acl_rule.append(aiven.OpenSearchAclRule(f"
|
|
335
|
+
os_acl_rule.append(aiven.OpenSearchAclRule(f"os_acl_rule-{range['key']}",
|
|
334
336
|
project=os_acls_config.project,
|
|
335
337
|
service_name=os_acls_config.service_name,
|
|
336
338
|
username=range["value"]["username"],
|
|
@@ -339,12 +341,11 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
339
341
|
|
|
340
342
|
pulumi.Output.all({i: v for i, v in acl_rules}).apply(lambda resolved_outputs: create_os_acl_rule(resolved_outputs[0]))
|
|
341
343
|
```
|
|
342
|
-
<!--End PulumiCodeChooser -->
|
|
343
344
|
|
|
344
345
|
## Import
|
|
345
346
|
|
|
346
347
|
```sh
|
|
347
|
-
$ pulumi import aiven:index/openSearchAclRule:OpenSearchAclRule os_acl_rule
|
|
348
|
+
$ pulumi import aiven:index/openSearchAclRule:OpenSearchAclRule os_acl_rule PROJECT/SERVICE_NAME/USERNAME/INDEX
|
|
348
349
|
```
|
|
349
350
|
|
|
350
351
|
:param str resource_name: The name of the resource.
|
|
@@ -413,11 +414,11 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
413
414
|
:param str resource_name: The unique name of the resulting resource.
|
|
414
415
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
415
416
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
416
|
-
:param pulumi.Input[str] index: The index pattern for this ACL entry. Maximum length: `249`.
|
|
417
|
+
:param pulumi.Input[str] index: The index pattern for this ACL entry. Maximum length: `249`. Changing this property forces recreation of the resource.
|
|
417
418
|
:param pulumi.Input[str] permission: The permissions for this ACL entry. The possible values are `deny`, `admin`, `read`, `readwrite` and `write`.
|
|
418
|
-
:param pulumi.Input[str] project:
|
|
419
|
-
:param pulumi.Input[str] service_name:
|
|
420
|
-
:param pulumi.Input[str] username: The username for the ACL entry. Maximum length: `40`. To set up proper dependencies please refer to this variable as a reference.
|
|
419
|
+
: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.
|
|
420
|
+
: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.
|
|
421
|
+
:param pulumi.Input[str] username: The username for the ACL entry. Maximum length: `40`. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
421
422
|
"""
|
|
422
423
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
423
424
|
|
|
@@ -434,7 +435,7 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
434
435
|
@pulumi.getter
|
|
435
436
|
def index(self) -> pulumi.Output[str]:
|
|
436
437
|
"""
|
|
437
|
-
The index pattern for this ACL entry. Maximum length: `249`.
|
|
438
|
+
The index pattern for this ACL entry. Maximum length: `249`. Changing this property forces recreation of the resource.
|
|
438
439
|
"""
|
|
439
440
|
return pulumi.get(self, "index")
|
|
440
441
|
|
|
@@ -450,7 +451,7 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
450
451
|
@pulumi.getter
|
|
451
452
|
def project(self) -> pulumi.Output[str]:
|
|
452
453
|
"""
|
|
453
|
-
|
|
454
|
+
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
454
455
|
"""
|
|
455
456
|
return pulumi.get(self, "project")
|
|
456
457
|
|
|
@@ -458,7 +459,7 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
458
459
|
@pulumi.getter(name="serviceName")
|
|
459
460
|
def service_name(self) -> pulumi.Output[str]:
|
|
460
461
|
"""
|
|
461
|
-
|
|
462
|
+
The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
462
463
|
"""
|
|
463
464
|
return pulumi.get(self, "service_name")
|
|
464
465
|
|
|
@@ -466,7 +467,7 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
466
467
|
@pulumi.getter
|
|
467
468
|
def username(self) -> pulumi.Output[str]:
|
|
468
469
|
"""
|
|
469
|
-
The username for the ACL entry. Maximum length: `40`. To set up proper dependencies please refer to this variable as a reference.
|
|
470
|
+
The username for the ACL entry. Maximum length: `40`. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
470
471
|
"""
|
|
471
472
|
return pulumi.get(self, "username")
|
|
472
473
|
|