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.
- pulumi_aiven/__init__.py +127 -0
- pulumi_aiven/_inputs.py +32826 -13922
- pulumi_aiven/_utilities.py +41 -5
- pulumi_aiven/account.py +34 -43
- pulumi_aiven/account_authentication.py +24 -9
- pulumi_aiven/account_team.py +37 -12
- pulumi_aiven/account_team_member.py +48 -35
- pulumi_aiven/account_team_project.py +42 -25
- 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 -39
- pulumi_aiven/aws_vpc_peering_connection.py +72 -57
- pulumi_aiven/azure_privatelink.py +54 -49
- pulumi_aiven/azure_privatelink_connection_approval.py +136 -33
- pulumi_aiven/azure_vpc_peering_connection.py +86 -73
- pulumi_aiven/billing_group.py +33 -30
- pulumi_aiven/cassandra.py +145 -122
- pulumi_aiven/cassandra_user.py +59 -54
- pulumi_aiven/clickhouse.py +133 -110
- pulumi_aiven/clickhouse_database.py +58 -58
- pulumi_aiven/clickhouse_grant.py +135 -130
- pulumi_aiven/clickhouse_role.py +36 -45
- pulumi_aiven/clickhouse_user.py +50 -45
- pulumi_aiven/config/__init__.pyi +5 -0
- pulumi_aiven/config/vars.py +5 -0
- pulumi_aiven/connection_pool.py +67 -62
- pulumi_aiven/dragonfly.py +1256 -0
- pulumi_aiven/flink.py +104 -100
- pulumi_aiven/flink_application.py +58 -51
- 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 -44
- pulumi_aiven/get_account.py +20 -5
- 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 -20
- pulumi_aiven/get_aws_vpc_peering_connection.py +56 -29
- pulumi_aiven/get_azure_privatelink.py +37 -22
- pulumi_aiven/get_azure_vpc_peering_connection.py +77 -28
- pulumi_aiven/get_billing_group.py +31 -8
- pulumi_aiven/get_cassanda.py +55 -19
- pulumi_aiven/get_cassandra.py +55 -19
- pulumi_aiven/get_cassandra_user.py +42 -26
- pulumi_aiven/get_clickhouse.py +55 -19
- pulumi_aiven/get_clickhouse_database.py +35 -22
- pulumi_aiven/get_clickhouse_user.py +40 -25
- pulumi_aiven/get_connection_pool.py +43 -26
- pulumi_aiven/get_dragonfly.py +499 -0
- pulumi_aiven/get_external_identity.py +160 -0
- pulumi_aiven/get_flink.py +55 -19
- pulumi_aiven/get_flink_application.py +44 -27
- pulumi_aiven/get_flink_application_version.py +55 -33
- pulumi_aiven/get_gcp_privatelink.py +63 -7
- pulumi_aiven/get_gcp_vpc_peering_connection.py +39 -24
- pulumi_aiven/get_grafana.py +55 -19
- 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 -21
- pulumi_aiven/get_kafka_acl.py +50 -33
- pulumi_aiven/get_kafka_connect.py +54 -32
- pulumi_aiven/get_kafka_connector.py +44 -24
- pulumi_aiven/get_kafka_mirror_maker.py +50 -28
- pulumi_aiven/get_kafka_schema.py +35 -19
- pulumi_aiven/get_kafka_schema_configuration.py +32 -17
- pulumi_aiven/get_kafka_schema_registry_acl.py +37 -20
- pulumi_aiven/get_kafka_topic.py +70 -25
- pulumi_aiven/get_kafka_user.py +42 -26
- pulumi_aiven/get_m3_aggregator.py +51 -15
- pulumi_aiven/get_m3_db.py +55 -19
- pulumi_aiven/get_m3db_user.py +38 -24
- pulumi_aiven/get_mirror_maker_replication_flow.py +86 -21
- pulumi_aiven/get_my_sql.py +50 -14
- pulumi_aiven/get_mysql_database.py +31 -18
- pulumi_aiven/get_mysql_user.py +36 -19
- pulumi_aiven/get_open_search.py +50 -14
- pulumi_aiven/get_open_search_acl_config.py +27 -15
- pulumi_aiven/get_open_search_acl_rule.py +37 -21
- pulumi_aiven/get_opensearch_security_plugin_config.py +29 -15
- pulumi_aiven/get_opensearch_user.py +32 -18
- pulumi_aiven/get_organization.py +25 -13
- 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 -19
- pulumi_aiven/get_pg_database.py +39 -24
- pulumi_aiven/get_pg_user.py +44 -27
- pulumi_aiven/get_project.py +43 -22
- pulumi_aiven/get_project_user.py +27 -15
- pulumi_aiven/get_project_vpc.py +31 -19
- pulumi_aiven/get_redis.py +50 -14
- pulumi_aiven/get_redis_user.py +40 -22
- pulumi_aiven/get_service_component.py +40 -18
- pulumi_aiven/get_service_integration.py +163 -49
- pulumi_aiven/get_service_integration_endpoint.py +128 -33
- pulumi_aiven/get_thanos.py +499 -0
- pulumi_aiven/get_transit_gateway_vpc_attachment.py +35 -18
- pulumi_aiven/get_valkey.py +499 -0
- pulumi_aiven/get_valkey_user.py +218 -0
- pulumi_aiven/grafana.py +188 -318
- 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 -140
- pulumi_aiven/kafka_acl.py +64 -53
- pulumi_aiven/kafka_connect.py +201 -328
- pulumi_aiven/kafka_connector.py +67 -56
- pulumi_aiven/kafka_mirror_maker.py +139 -318
- pulumi_aiven/kafka_native_acl.py +588 -0
- pulumi_aiven/kafka_schema.py +65 -56
- pulumi_aiven/kafka_schema_configuration.py +25 -20
- pulumi_aiven/kafka_schema_registry_acl.py +80 -35
- pulumi_aiven/kafka_topic.py +184 -65
- pulumi_aiven/kafka_user.py +59 -54
- pulumi_aiven/m3_aggregator.py +176 -308
- pulumi_aiven/m3_db.py +190 -322
- pulumi_aiven/m3db_user.py +51 -46
- pulumi_aiven/mirror_maker_replication_flow.py +217 -53
- pulumi_aiven/my_sql.py +190 -322
- pulumi_aiven/mysql_database.py +32 -47
- pulumi_aiven/mysql_user.py +37 -32
- pulumi_aiven/open_search.py +128 -105
- pulumi_aiven/open_search_acl_config.py +33 -32
- pulumi_aiven/open_search_acl_rule.py +55 -50
- pulumi_aiven/opensearch_security_plugin_config.py +69 -16
- pulumi_aiven/opensearch_user.py +30 -25
- pulumi_aiven/organization.py +18 -13
- 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 -32
- pulumi_aiven/outputs.py +38509 -21612
- pulumi_aiven/pg.py +92 -88
- pulumi_aiven/pg_database.py +52 -67
- pulumi_aiven/pg_user.py +80 -61
- pulumi_aiven/project.py +111 -102
- pulumi_aiven/project_user.py +44 -31
- pulumi_aiven/project_vpc.py +58 -29
- pulumi_aiven/provider.py +5 -0
- pulumi_aiven/pulumi-plugin.json +2 -1
- pulumi_aiven/redis.py +163 -295
- pulumi_aiven/redis_user.py +58 -53
- pulumi_aiven/service_integration.py +511 -161
- 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 -54
- pulumi_aiven/valkey.py +1256 -0
- pulumi_aiven/valkey_user.py +606 -0
- {pulumi_aiven-6.13.0a1709702245.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.0a1709702245.dist-info → pulumi_aiven-6.31.0a1736831339.dist-info}/WHEEL +1 -1
- pulumi_aiven-6.13.0a1709702245.dist-info/RECORD +0 -146
- {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__ = ['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
|
|
|
@@ -172,20 +177,20 @@ class OpenSearchAclConfig(pulumi.CustomResource):
|
|
|
172
177
|
import pulumi
|
|
173
178
|
import pulumi_aiven as aiven
|
|
174
179
|
|
|
175
|
-
|
|
180
|
+
foo = aiven.get_project(project="example_project")
|
|
176
181
|
bar = aiven.OpenSearch("bar",
|
|
177
|
-
project=
|
|
182
|
+
project=foo.project,
|
|
178
183
|
cloud_name="google-europe-west1",
|
|
179
184
|
plan="startup-4",
|
|
180
185
|
service_name="example_service_name",
|
|
181
186
|
maintenance_window_dow="monday",
|
|
182
187
|
maintenance_window_time="10:00:00")
|
|
183
|
-
foo_opensearch_user = aiven.OpensearchUser("
|
|
188
|
+
foo_opensearch_user = aiven.OpensearchUser("foo",
|
|
184
189
|
service_name=bar.service_name,
|
|
185
|
-
project=
|
|
190
|
+
project=foo.project,
|
|
186
191
|
username="user-example")
|
|
187
|
-
foo_open_search_acl_config = aiven.OpenSearchAclConfig("
|
|
188
|
-
project=
|
|
192
|
+
foo_open_search_acl_config = aiven.OpenSearchAclConfig("foo",
|
|
193
|
+
project=foo.project,
|
|
189
194
|
service_name=bar.service_name,
|
|
190
195
|
enabled=True,
|
|
191
196
|
extended_acl=False)
|
|
@@ -193,16 +198,14 @@ class OpenSearchAclConfig(pulumi.CustomResource):
|
|
|
193
198
|
|
|
194
199
|
## Import
|
|
195
200
|
|
|
196
|
-
|
|
197
|
-
$ pulumi import aiven:index/openSearchAclConfig:OpenSearchAclConfig foo project/service_name
|
|
198
|
-
```
|
|
201
|
+
TERRAFORM IMPORT AIVEN_OPENSEARCH_ACL_CONFIG.FOO project/service_name
|
|
199
202
|
|
|
200
203
|
:param str resource_name: The name of the resource.
|
|
201
204
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
202
205
|
:param pulumi.Input[bool] enabled: Enable OpenSearch ACLs. When disabled authenticated service users have unrestricted access. The default value is `true`.
|
|
203
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`.
|
|
204
|
-
:param pulumi.Input[str] project:
|
|
205
|
-
: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.
|
|
206
209
|
"""
|
|
207
210
|
...
|
|
208
211
|
@overload
|
|
@@ -219,20 +222,20 @@ class OpenSearchAclConfig(pulumi.CustomResource):
|
|
|
219
222
|
import pulumi
|
|
220
223
|
import pulumi_aiven as aiven
|
|
221
224
|
|
|
222
|
-
|
|
225
|
+
foo = aiven.get_project(project="example_project")
|
|
223
226
|
bar = aiven.OpenSearch("bar",
|
|
224
|
-
project=
|
|
227
|
+
project=foo.project,
|
|
225
228
|
cloud_name="google-europe-west1",
|
|
226
229
|
plan="startup-4",
|
|
227
230
|
service_name="example_service_name",
|
|
228
231
|
maintenance_window_dow="monday",
|
|
229
232
|
maintenance_window_time="10:00:00")
|
|
230
|
-
foo_opensearch_user = aiven.OpensearchUser("
|
|
233
|
+
foo_opensearch_user = aiven.OpensearchUser("foo",
|
|
231
234
|
service_name=bar.service_name,
|
|
232
|
-
project=
|
|
235
|
+
project=foo.project,
|
|
233
236
|
username="user-example")
|
|
234
|
-
foo_open_search_acl_config = aiven.OpenSearchAclConfig("
|
|
235
|
-
project=
|
|
237
|
+
foo_open_search_acl_config = aiven.OpenSearchAclConfig("foo",
|
|
238
|
+
project=foo.project,
|
|
236
239
|
service_name=bar.service_name,
|
|
237
240
|
enabled=True,
|
|
238
241
|
extended_acl=False)
|
|
@@ -240,9 +243,7 @@ class OpenSearchAclConfig(pulumi.CustomResource):
|
|
|
240
243
|
|
|
241
244
|
## Import
|
|
242
245
|
|
|
243
|
-
|
|
244
|
-
$ pulumi import aiven:index/openSearchAclConfig:OpenSearchAclConfig foo project/service_name
|
|
245
|
-
```
|
|
246
|
+
TERRAFORM IMPORT AIVEN_OPENSEARCH_ACL_CONFIG.FOO project/service_name
|
|
246
247
|
|
|
247
248
|
:param str resource_name: The name of the resource.
|
|
248
249
|
:param OpenSearchAclConfigArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -303,8 +304,8 @@ class OpenSearchAclConfig(pulumi.CustomResource):
|
|
|
303
304
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
304
305
|
:param pulumi.Input[bool] enabled: Enable OpenSearch ACLs. When disabled authenticated service users have unrestricted access. The default value is `true`.
|
|
305
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`.
|
|
306
|
-
:param pulumi.Input[str] project:
|
|
307
|
-
: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.
|
|
308
309
|
"""
|
|
309
310
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
310
311
|
|
|
@@ -336,7 +337,7 @@ class OpenSearchAclConfig(pulumi.CustomResource):
|
|
|
336
337
|
@pulumi.getter
|
|
337
338
|
def project(self) -> pulumi.Output[str]:
|
|
338
339
|
"""
|
|
339
|
-
|
|
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.
|
|
340
341
|
"""
|
|
341
342
|
return pulumi.get(self, "project")
|
|
342
343
|
|
|
@@ -344,7 +345,7 @@ class OpenSearchAclConfig(pulumi.CustomResource):
|
|
|
344
345
|
@pulumi.getter(name="serviceName")
|
|
345
346
|
def service_name(self) -> pulumi.Output[str]:
|
|
346
347
|
"""
|
|
347
|
-
|
|
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.
|
|
348
349
|
"""
|
|
349
350
|
return pulumi.get(self, "service_name")
|
|
350
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
|
|
|
@@ -202,17 +207,17 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
202
207
|
import pulumi
|
|
203
208
|
import pulumi_aiven as aiven
|
|
204
209
|
|
|
205
|
-
os_user = aiven.OpensearchUser("
|
|
206
|
-
project=
|
|
207
|
-
service_name=
|
|
210
|
+
os_user = aiven.OpensearchUser("os_user",
|
|
211
|
+
project=aiven_project_name,
|
|
212
|
+
service_name=os_test["serviceName"],
|
|
208
213
|
username="documentation-user-1")
|
|
209
|
-
os_user2 = aiven.OpensearchUser("
|
|
210
|
-
project=
|
|
211
|
-
service_name=
|
|
214
|
+
os_user2 = aiven.OpensearchUser("os_user_2",
|
|
215
|
+
project=aiven_project_name,
|
|
216
|
+
service_name=os_test["serviceName"],
|
|
212
217
|
username="documentation-user-2")
|
|
213
|
-
os_acls_config = aiven.OpenSearchAclConfig("
|
|
214
|
-
project=
|
|
215
|
-
service_name=
|
|
218
|
+
os_acls_config = aiven.OpenSearchAclConfig("os_acls_config",
|
|
219
|
+
project=aiven_project_name,
|
|
220
|
+
service_name=os_test["serviceName"],
|
|
216
221
|
enabled=True,
|
|
217
222
|
extended_acl=False)
|
|
218
223
|
acl_rules = [
|
|
@@ -245,7 +250,7 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
245
250
|
os_acl_rule = []
|
|
246
251
|
def create_os_acl_rule(range_body):
|
|
247
252
|
for range in [{"key": k, "value": v} for [k, v] in enumerate(range_body)]:
|
|
248
|
-
os_acl_rule.append(aiven.OpenSearchAclRule(f"
|
|
253
|
+
os_acl_rule.append(aiven.OpenSearchAclRule(f"os_acl_rule-{range['key']}",
|
|
249
254
|
project=os_acls_config.project,
|
|
250
255
|
service_name=os_acls_config.service_name,
|
|
251
256
|
username=range["value"]["username"],
|
|
@@ -258,16 +263,16 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
258
263
|
## Import
|
|
259
264
|
|
|
260
265
|
```sh
|
|
261
|
-
|
|
266
|
+
$ pulumi import aiven:index/openSearchAclRule:OpenSearchAclRule os_acl_rule PROJECT/SERVICE_NAME/USERNAME/INDEX
|
|
262
267
|
```
|
|
263
268
|
|
|
264
269
|
:param str resource_name: The name of the resource.
|
|
265
270
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
266
|
-
: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.
|
|
267
272
|
:param pulumi.Input[str] permission: The permissions for this ACL entry. The possible values are `deny`, `admin`, `read`, `readwrite` and `write`.
|
|
268
|
-
:param pulumi.Input[str] project:
|
|
269
|
-
:param pulumi.Input[str] service_name:
|
|
270
|
-
: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.
|
|
271
276
|
"""
|
|
272
277
|
...
|
|
273
278
|
@overload
|
|
@@ -284,17 +289,17 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
284
289
|
import pulumi
|
|
285
290
|
import pulumi_aiven as aiven
|
|
286
291
|
|
|
287
|
-
os_user = aiven.OpensearchUser("
|
|
288
|
-
project=
|
|
289
|
-
service_name=
|
|
292
|
+
os_user = aiven.OpensearchUser("os_user",
|
|
293
|
+
project=aiven_project_name,
|
|
294
|
+
service_name=os_test["serviceName"],
|
|
290
295
|
username="documentation-user-1")
|
|
291
|
-
os_user2 = aiven.OpensearchUser("
|
|
292
|
-
project=
|
|
293
|
-
service_name=
|
|
296
|
+
os_user2 = aiven.OpensearchUser("os_user_2",
|
|
297
|
+
project=aiven_project_name,
|
|
298
|
+
service_name=os_test["serviceName"],
|
|
294
299
|
username="documentation-user-2")
|
|
295
|
-
os_acls_config = aiven.OpenSearchAclConfig("
|
|
296
|
-
project=
|
|
297
|
-
service_name=
|
|
300
|
+
os_acls_config = aiven.OpenSearchAclConfig("os_acls_config",
|
|
301
|
+
project=aiven_project_name,
|
|
302
|
+
service_name=os_test["serviceName"],
|
|
298
303
|
enabled=True,
|
|
299
304
|
extended_acl=False)
|
|
300
305
|
acl_rules = [
|
|
@@ -327,7 +332,7 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
327
332
|
os_acl_rule = []
|
|
328
333
|
def create_os_acl_rule(range_body):
|
|
329
334
|
for range in [{"key": k, "value": v} for [k, v] in enumerate(range_body)]:
|
|
330
|
-
os_acl_rule.append(aiven.OpenSearchAclRule(f"
|
|
335
|
+
os_acl_rule.append(aiven.OpenSearchAclRule(f"os_acl_rule-{range['key']}",
|
|
331
336
|
project=os_acls_config.project,
|
|
332
337
|
service_name=os_acls_config.service_name,
|
|
333
338
|
username=range["value"]["username"],
|
|
@@ -340,7 +345,7 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
340
345
|
## Import
|
|
341
346
|
|
|
342
347
|
```sh
|
|
343
|
-
|
|
348
|
+
$ pulumi import aiven:index/openSearchAclRule:OpenSearchAclRule os_acl_rule PROJECT/SERVICE_NAME/USERNAME/INDEX
|
|
344
349
|
```
|
|
345
350
|
|
|
346
351
|
:param str resource_name: The name of the resource.
|
|
@@ -409,11 +414,11 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
409
414
|
:param str resource_name: The unique name of the resulting resource.
|
|
410
415
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
411
416
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
412
|
-
: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.
|
|
413
418
|
:param pulumi.Input[str] permission: The permissions for this ACL entry. The possible values are `deny`, `admin`, `read`, `readwrite` and `write`.
|
|
414
|
-
:param pulumi.Input[str] project:
|
|
415
|
-
:param pulumi.Input[str] service_name:
|
|
416
|
-
: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.
|
|
417
422
|
"""
|
|
418
423
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
419
424
|
|
|
@@ -430,7 +435,7 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
430
435
|
@pulumi.getter
|
|
431
436
|
def index(self) -> pulumi.Output[str]:
|
|
432
437
|
"""
|
|
433
|
-
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.
|
|
434
439
|
"""
|
|
435
440
|
return pulumi.get(self, "index")
|
|
436
441
|
|
|
@@ -446,7 +451,7 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
446
451
|
@pulumi.getter
|
|
447
452
|
def project(self) -> pulumi.Output[str]:
|
|
448
453
|
"""
|
|
449
|
-
|
|
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.
|
|
450
455
|
"""
|
|
451
456
|
return pulumi.get(self, "project")
|
|
452
457
|
|
|
@@ -454,7 +459,7 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
454
459
|
@pulumi.getter(name="serviceName")
|
|
455
460
|
def service_name(self) -> pulumi.Output[str]:
|
|
456
461
|
"""
|
|
457
|
-
|
|
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.
|
|
458
463
|
"""
|
|
459
464
|
return pulumi.get(self, "service_name")
|
|
460
465
|
|
|
@@ -462,7 +467,7 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
462
467
|
@pulumi.getter
|
|
463
468
|
def username(self) -> pulumi.Output[str]:
|
|
464
469
|
"""
|
|
465
|
-
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.
|
|
466
471
|
"""
|
|
467
472
|
return pulumi.get(self, "username")
|
|
468
473
|
|