pulumi-aiven 6.14.0a1713330923__py3-none-any.whl → 6.14.0a1713897878__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/_inputs.py +100 -100
- pulumi_aiven/account.py +2 -6
- pulumi_aiven/account_team.py +6 -6
- pulumi_aiven/account_team_member.py +4 -8
- pulumi_aiven/account_team_project.py +12 -12
- pulumi_aiven/aws_privatelink.py +4 -8
- pulumi_aiven/aws_vpc_peering_connection.py +8 -12
- pulumi_aiven/azure_privatelink.py +4 -8
- pulumi_aiven/azure_privatelink_connection_approval.py +98 -0
- pulumi_aiven/azure_vpc_peering_connection.py +6 -10
- pulumi_aiven/billing_group.py +2 -4
- pulumi_aiven/cassandra.py +13 -17
- pulumi_aiven/cassandra_user.py +2 -6
- pulumi_aiven/clickhouse.py +13 -17
- pulumi_aiven/clickhouse_database.py +8 -10
- pulumi_aiven/clickhouse_grant.py +21 -23
- pulumi_aiven/clickhouse_role.py +0 -4
- pulumi_aiven/clickhouse_user.py +4 -8
- pulumi_aiven/connection_pool.py +8 -12
- pulumi_aiven/flink.py +16 -20
- pulumi_aiven/flink_application.py +6 -8
- pulumi_aiven/flink_application_version.py +82 -0
- pulumi_aiven/gcp_vpc_peering_connection.py +2 -6
- pulumi_aiven/get_account.py +0 -4
- pulumi_aiven/get_aws_privatelink.py +4 -8
- pulumi_aiven/get_aws_vpc_peering_connection.py +6 -10
- pulumi_aiven/get_azure_privatelink.py +4 -8
- pulumi_aiven/get_azure_vpc_peering_connection.py +2 -6
- pulumi_aiven/get_cassanda.py +2 -6
- pulumi_aiven/get_cassandra.py +2 -6
- pulumi_aiven/get_cassandra_user.py +4 -8
- pulumi_aiven/get_clickhouse.py +2 -6
- pulumi_aiven/get_clickhouse_database.py +4 -8
- pulumi_aiven/get_clickhouse_user.py +4 -8
- pulumi_aiven/get_connection_pool.py +4 -8
- pulumi_aiven/get_flink.py +2 -6
- pulumi_aiven/get_flink_application.py +2 -6
- pulumi_aiven/get_flink_application_version.py +2 -6
- pulumi_aiven/get_gcp_vpc_peering_connection.py +2 -6
- pulumi_aiven/get_grafana.py +2 -6
- pulumi_aiven/get_kafka.py +2 -6
- pulumi_aiven/get_kafka_acl.py +4 -8
- pulumi_aiven/get_kafka_connect.py +2 -6
- pulumi_aiven/get_kafka_connector.py +4 -8
- pulumi_aiven/get_kafka_mirror_maker.py +2 -6
- pulumi_aiven/get_kafka_schema.py +4 -8
- pulumi_aiven/get_kafka_schema_configuration.py +4 -8
- pulumi_aiven/get_kafka_topic.py +4 -8
- pulumi_aiven/get_kafka_user.py +4 -8
- pulumi_aiven/get_m3_aggregator.py +2 -6
- pulumi_aiven/get_m3_db.py +2 -6
- pulumi_aiven/get_m3db_user.py +4 -8
- pulumi_aiven/get_mirror_maker_replication_flow.py +8 -12
- pulumi_aiven/get_my_sql.py +2 -6
- pulumi_aiven/get_mysql_database.py +4 -8
- pulumi_aiven/get_mysql_user.py +4 -8
- pulumi_aiven/get_open_search.py +2 -6
- pulumi_aiven/get_open_search_acl_config.py +4 -8
- pulumi_aiven/get_open_search_acl_rule.py +4 -8
- pulumi_aiven/get_opensearch_security_plugin_config.py +4 -8
- pulumi_aiven/get_opensearch_user.py +4 -8
- pulumi_aiven/get_organization.py +0 -4
- pulumi_aiven/get_organization_user_group.py +2 -6
- pulumi_aiven/get_pg.py +2 -6
- pulumi_aiven/get_pg_database.py +4 -8
- pulumi_aiven/get_pg_user.py +4 -8
- pulumi_aiven/get_project.py +0 -4
- pulumi_aiven/get_project_user.py +2 -6
- pulumi_aiven/get_project_vpc.py +2 -6
- pulumi_aiven/get_redis.py +2 -6
- pulumi_aiven/get_redis_user.py +4 -8
- pulumi_aiven/get_service_component.py +4 -8
- pulumi_aiven/get_service_integration.py +2 -6
- pulumi_aiven/get_service_integration_endpoint.py +2 -6
- pulumi_aiven/get_transit_gateway_vpc_attachment.py +2 -6
- pulumi_aiven/grafana.py +4 -6
- pulumi_aiven/kafka.py +13 -17
- pulumi_aiven/kafka_acl.py +4 -8
- pulumi_aiven/kafka_connect.py +2 -6
- pulumi_aiven/kafka_connector.py +12 -16
- pulumi_aiven/kafka_mirror_maker.py +2 -6
- pulumi_aiven/kafka_schema.py +4 -8
- pulumi_aiven/kafka_schema_configuration.py +4 -8
- pulumi_aiven/kafka_topic.py +38 -0
- pulumi_aiven/kafka_user.py +2 -6
- pulumi_aiven/m3_aggregator.py +2 -6
- pulumi_aiven/m3_db.py +2 -6
- pulumi_aiven/m3db_user.py +2 -6
- pulumi_aiven/mirror_maker_replication_flow.py +8 -12
- pulumi_aiven/my_sql.py +2 -6
- pulumi_aiven/mysql_database.py +4 -8
- pulumi_aiven/mysql_user.py +2 -6
- pulumi_aiven/open_search.py +13 -17
- pulumi_aiven/open_search_acl_config.py +12 -16
- pulumi_aiven/open_search_acl_rule.py +20 -24
- pulumi_aiven/opensearch_security_plugin_config.py +12 -16
- pulumi_aiven/opensearch_user.py +2 -6
- pulumi_aiven/organization.py +2 -6
- pulumi_aiven/organization_group_project.py +32 -0
- pulumi_aiven/organization_user_group.py +4 -6
- pulumi_aiven/organization_user_group_member.py +8 -10
- pulumi_aiven/organizational_unit.py +6 -6
- pulumi_aiven/outputs.py +100 -100
- pulumi_aiven/pg.py +14 -14
- pulumi_aiven/pg_database.py +4 -8
- pulumi_aiven/pg_user.py +2 -6
- pulumi_aiven/project.py +4 -8
- pulumi_aiven/project_user.py +2 -6
- pulumi_aiven/project_vpc.py +24 -0
- pulumi_aiven/redis.py +2 -6
- pulumi_aiven/redis_user.py +2 -6
- pulumi_aiven/service_integration.py +8 -12
- pulumi_aiven/transit_gateway_vpc_attachment.py +2 -6
- {pulumi_aiven-6.14.0a1713330923.dist-info → pulumi_aiven-6.14.0a1713897878.dist-info}/METADATA +1 -1
- pulumi_aiven-6.14.0a1713897878.dist-info/RECORD +150 -0
- pulumi_aiven-6.14.0a1713330923.dist-info/RECORD +0 -150
- {pulumi_aiven-6.14.0a1713330923.dist-info → pulumi_aiven-6.14.0a1713897878.dist-info}/WHEEL +0 -0
- {pulumi_aiven-6.14.0a1713330923.dist-info → pulumi_aiven-6.14.0a1713897878.dist-info}/top_level.txt +0 -0
pulumi_aiven/open_search.py
CHANGED
|
@@ -44,7 +44,7 @@ class OpenSearchArgs:
|
|
|
44
44
|
:param pulumi.Input['OpenSearchOpensearchUserConfigArgs'] opensearch_user_config: Opensearch user configurable settings
|
|
45
45
|
:param pulumi.Input[str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
46
46
|
:param pulumi.Input[Sequence[pulumi.Input['OpenSearchServiceIntegrationArgs']]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
47
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips:
|
|
47
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
48
48
|
:param pulumi.Input[Sequence[pulumi.Input['OpenSearchTagArgs']]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
49
49
|
:param pulumi.Input[Sequence[pulumi.Input['OpenSearchTechEmailArgs']]] tech_emails: Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service instability.
|
|
50
50
|
:param pulumi.Input[bool] termination_protection: Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent unintentional service deletion. This does not shield against deleting databases or topics but for services with backups much of the content can at least be restored from backup in case accidental deletion is done.
|
|
@@ -219,7 +219,7 @@ class OpenSearchArgs:
|
|
|
219
219
|
@pulumi.getter(name="staticIps")
|
|
220
220
|
def static_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
221
221
|
"""
|
|
222
|
-
|
|
222
|
+
Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
223
223
|
"""
|
|
224
224
|
return pulumi.get(self, "static_ips")
|
|
225
225
|
|
|
@@ -308,7 +308,7 @@ class _OpenSearchState:
|
|
|
308
308
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
309
309
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
310
310
|
:param pulumi.Input['OpenSearchOpensearchUserConfigArgs'] opensearch_user_config: Opensearch user configurable settings
|
|
311
|
-
:param pulumi.Input[Sequence[pulumi.Input['OpenSearchOpensearchArgs']]] opensearches: OpenSearch
|
|
311
|
+
:param pulumi.Input[Sequence[pulumi.Input['OpenSearchOpensearchArgs']]] opensearches: OpenSearch server provided values
|
|
312
312
|
:param pulumi.Input[str] plan: 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).
|
|
313
313
|
:param pulumi.Input[str] project: Identifies 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.
|
|
314
314
|
:param pulumi.Input[str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
@@ -321,7 +321,7 @@ class _OpenSearchState:
|
|
|
321
321
|
:param pulumi.Input[str] service_uri: URI for connecting to the service. Service specific info is under "kafka", "pg", etc.
|
|
322
322
|
:param pulumi.Input[str] service_username: Username used for connecting to the service, if applicable
|
|
323
323
|
:param pulumi.Input[str] state: Service state. One of `POWEROFF`, `REBALANCING`, `REBUILDING` or `RUNNING`
|
|
324
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips:
|
|
324
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
325
325
|
:param pulumi.Input[Sequence[pulumi.Input['OpenSearchTagArgs']]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
326
326
|
:param pulumi.Input[Sequence[pulumi.Input['OpenSearchTechEmailArgs']]] tech_emails: Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service instability.
|
|
327
327
|
:param pulumi.Input[bool] termination_protection: Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent unintentional service deletion. This does not shield against deleting databases or topics but for services with backups much of the content can at least be restored from backup in case accidental deletion is done.
|
|
@@ -525,7 +525,7 @@ class _OpenSearchState:
|
|
|
525
525
|
@pulumi.getter
|
|
526
526
|
def opensearches(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OpenSearchOpensearchArgs']]]]:
|
|
527
527
|
"""
|
|
528
|
-
OpenSearch
|
|
528
|
+
OpenSearch server provided values
|
|
529
529
|
"""
|
|
530
530
|
return pulumi.get(self, "opensearches")
|
|
531
531
|
|
|
@@ -681,7 +681,7 @@ class _OpenSearchState:
|
|
|
681
681
|
@pulumi.getter(name="staticIps")
|
|
682
682
|
def static_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
683
683
|
"""
|
|
684
|
-
|
|
684
|
+
Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
685
685
|
"""
|
|
686
686
|
return pulumi.get(self, "static_ips")
|
|
687
687
|
|
|
@@ -752,13 +752,12 @@ class OpenSearch(pulumi.CustomResource):
|
|
|
752
752
|
|
|
753
753
|
## Example Usage
|
|
754
754
|
|
|
755
|
-
<!--Start PulumiCodeChooser -->
|
|
756
755
|
```python
|
|
757
756
|
import pulumi
|
|
758
757
|
import pulumi_aiven as aiven
|
|
759
758
|
|
|
760
759
|
os1 = aiven.OpenSearch("os1",
|
|
761
|
-
project=
|
|
760
|
+
project=pr1["project"],
|
|
762
761
|
cloud_name="google-europe-west1",
|
|
763
762
|
plan="startup-4",
|
|
764
763
|
service_name="my-os1",
|
|
@@ -776,7 +775,6 @@ class OpenSearch(pulumi.CustomResource):
|
|
|
776
775
|
),
|
|
777
776
|
))
|
|
778
777
|
```
|
|
779
|
-
<!--End PulumiCodeChooser -->
|
|
780
778
|
|
|
781
779
|
## Import
|
|
782
780
|
|
|
@@ -797,7 +795,7 @@ class OpenSearch(pulumi.CustomResource):
|
|
|
797
795
|
:param pulumi.Input[str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
798
796
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OpenSearchServiceIntegrationArgs']]]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
799
797
|
:param pulumi.Input[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.
|
|
800
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips:
|
|
798
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
801
799
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OpenSearchTagArgs']]]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
802
800
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OpenSearchTechEmailArgs']]]] tech_emails: Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service instability.
|
|
803
801
|
:param pulumi.Input[bool] termination_protection: Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent unintentional service deletion. This does not shield against deleting databases or topics but for services with backups much of the content can at least be restored from backup in case accidental deletion is done.
|
|
@@ -813,13 +811,12 @@ class OpenSearch(pulumi.CustomResource):
|
|
|
813
811
|
|
|
814
812
|
## Example Usage
|
|
815
813
|
|
|
816
|
-
<!--Start PulumiCodeChooser -->
|
|
817
814
|
```python
|
|
818
815
|
import pulumi
|
|
819
816
|
import pulumi_aiven as aiven
|
|
820
817
|
|
|
821
818
|
os1 = aiven.OpenSearch("os1",
|
|
822
|
-
project=
|
|
819
|
+
project=pr1["project"],
|
|
823
820
|
cloud_name="google-europe-west1",
|
|
824
821
|
plan="startup-4",
|
|
825
822
|
service_name="my-os1",
|
|
@@ -837,7 +834,6 @@ class OpenSearch(pulumi.CustomResource):
|
|
|
837
834
|
),
|
|
838
835
|
))
|
|
839
836
|
```
|
|
840
|
-
<!--End PulumiCodeChooser -->
|
|
841
837
|
|
|
842
838
|
## Import
|
|
843
839
|
|
|
@@ -976,7 +972,7 @@ class OpenSearch(pulumi.CustomResource):
|
|
|
976
972
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
977
973
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
978
974
|
:param pulumi.Input[pulumi.InputType['OpenSearchOpensearchUserConfigArgs']] opensearch_user_config: Opensearch user configurable settings
|
|
979
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OpenSearchOpensearchArgs']]]] opensearches: OpenSearch
|
|
975
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OpenSearchOpensearchArgs']]]] opensearches: OpenSearch server provided values
|
|
980
976
|
:param pulumi.Input[str] plan: 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).
|
|
981
977
|
:param pulumi.Input[str] project: Identifies 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.
|
|
982
978
|
:param pulumi.Input[str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
@@ -989,7 +985,7 @@ class OpenSearch(pulumi.CustomResource):
|
|
|
989
985
|
:param pulumi.Input[str] service_uri: URI for connecting to the service. Service specific info is under "kafka", "pg", etc.
|
|
990
986
|
:param pulumi.Input[str] service_username: Username used for connecting to the service, if applicable
|
|
991
987
|
:param pulumi.Input[str] state: Service state. One of `POWEROFF`, `REBALANCING`, `REBUILDING` or `RUNNING`
|
|
992
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips:
|
|
988
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
993
989
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OpenSearchTagArgs']]]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
994
990
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OpenSearchTechEmailArgs']]]] tech_emails: Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service instability.
|
|
995
991
|
:param pulumi.Input[bool] termination_protection: Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent unintentional service deletion. This does not shield against deleting databases or topics but for services with backups much of the content can at least be restored from backup in case accidental deletion is done.
|
|
@@ -1123,7 +1119,7 @@ class OpenSearch(pulumi.CustomResource):
|
|
|
1123
1119
|
@pulumi.getter
|
|
1124
1120
|
def opensearches(self) -> pulumi.Output[Sequence['outputs.OpenSearchOpensearch']]:
|
|
1125
1121
|
"""
|
|
1126
|
-
OpenSearch
|
|
1122
|
+
OpenSearch server provided values
|
|
1127
1123
|
"""
|
|
1128
1124
|
return pulumi.get(self, "opensearches")
|
|
1129
1125
|
|
|
@@ -1227,7 +1223,7 @@ class OpenSearch(pulumi.CustomResource):
|
|
|
1227
1223
|
@pulumi.getter(name="staticIps")
|
|
1228
1224
|
def static_ips(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
1229
1225
|
"""
|
|
1230
|
-
|
|
1226
|
+
Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
1231
1227
|
"""
|
|
1232
1228
|
return pulumi.get(self, "static_ips")
|
|
1233
1229
|
|
|
@@ -168,30 +168,28 @@ class OpenSearchAclConfig(pulumi.CustomResource):
|
|
|
168
168
|
|
|
169
169
|
## Example Usage
|
|
170
170
|
|
|
171
|
-
<!--Start PulumiCodeChooser -->
|
|
172
171
|
```python
|
|
173
172
|
import pulumi
|
|
174
173
|
import pulumi_aiven as aiven
|
|
175
174
|
|
|
176
|
-
|
|
175
|
+
foo = aiven.get_project(project="example_project")
|
|
177
176
|
bar = aiven.OpenSearch("bar",
|
|
178
|
-
project=
|
|
177
|
+
project=foo.project,
|
|
179
178
|
cloud_name="google-europe-west1",
|
|
180
179
|
plan="startup-4",
|
|
181
180
|
service_name="example_service_name",
|
|
182
181
|
maintenance_window_dow="monday",
|
|
183
182
|
maintenance_window_time="10:00:00")
|
|
184
|
-
foo_opensearch_user = aiven.OpensearchUser("
|
|
183
|
+
foo_opensearch_user = aiven.OpensearchUser("foo",
|
|
185
184
|
service_name=bar.service_name,
|
|
186
|
-
project=
|
|
185
|
+
project=foo.project,
|
|
187
186
|
username="user-example")
|
|
188
|
-
foo_open_search_acl_config = aiven.OpenSearchAclConfig("
|
|
189
|
-
project=
|
|
187
|
+
foo_open_search_acl_config = aiven.OpenSearchAclConfig("foo",
|
|
188
|
+
project=foo.project,
|
|
190
189
|
service_name=bar.service_name,
|
|
191
190
|
enabled=True,
|
|
192
191
|
extended_acl=False)
|
|
193
192
|
```
|
|
194
|
-
<!--End PulumiCodeChooser -->
|
|
195
193
|
|
|
196
194
|
## Import
|
|
197
195
|
|
|
@@ -217,30 +215,28 @@ class OpenSearchAclConfig(pulumi.CustomResource):
|
|
|
217
215
|
|
|
218
216
|
## Example Usage
|
|
219
217
|
|
|
220
|
-
<!--Start PulumiCodeChooser -->
|
|
221
218
|
```python
|
|
222
219
|
import pulumi
|
|
223
220
|
import pulumi_aiven as aiven
|
|
224
221
|
|
|
225
|
-
|
|
222
|
+
foo = aiven.get_project(project="example_project")
|
|
226
223
|
bar = aiven.OpenSearch("bar",
|
|
227
|
-
project=
|
|
224
|
+
project=foo.project,
|
|
228
225
|
cloud_name="google-europe-west1",
|
|
229
226
|
plan="startup-4",
|
|
230
227
|
service_name="example_service_name",
|
|
231
228
|
maintenance_window_dow="monday",
|
|
232
229
|
maintenance_window_time="10:00:00")
|
|
233
|
-
foo_opensearch_user = aiven.OpensearchUser("
|
|
230
|
+
foo_opensearch_user = aiven.OpensearchUser("foo",
|
|
234
231
|
service_name=bar.service_name,
|
|
235
|
-
project=
|
|
232
|
+
project=foo.project,
|
|
236
233
|
username="user-example")
|
|
237
|
-
foo_open_search_acl_config = aiven.OpenSearchAclConfig("
|
|
238
|
-
project=
|
|
234
|
+
foo_open_search_acl_config = aiven.OpenSearchAclConfig("foo",
|
|
235
|
+
project=foo.project,
|
|
239
236
|
service_name=bar.service_name,
|
|
240
237
|
enabled=True,
|
|
241
238
|
extended_acl=False)
|
|
242
239
|
```
|
|
243
|
-
<!--End PulumiCodeChooser -->
|
|
244
240
|
|
|
245
241
|
## Import
|
|
246
242
|
|
|
@@ -198,22 +198,21 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
198
198
|
|
|
199
199
|
## Example Usage
|
|
200
200
|
|
|
201
|
-
<!--Start PulumiCodeChooser -->
|
|
202
201
|
```python
|
|
203
202
|
import pulumi
|
|
204
203
|
import pulumi_aiven as aiven
|
|
205
204
|
|
|
206
|
-
os_user = aiven.OpensearchUser("
|
|
207
|
-
project=
|
|
208
|
-
service_name=
|
|
205
|
+
os_user = aiven.OpensearchUser("os_user",
|
|
206
|
+
project=aiven_project_name,
|
|
207
|
+
service_name=os_test["serviceName"],
|
|
209
208
|
username="documentation-user-1")
|
|
210
|
-
os_user2 = aiven.OpensearchUser("
|
|
211
|
-
project=
|
|
212
|
-
service_name=
|
|
209
|
+
os_user2 = aiven.OpensearchUser("os_user_2",
|
|
210
|
+
project=aiven_project_name,
|
|
211
|
+
service_name=os_test["serviceName"],
|
|
213
212
|
username="documentation-user-2")
|
|
214
|
-
os_acls_config = aiven.OpenSearchAclConfig("
|
|
215
|
-
project=
|
|
216
|
-
service_name=
|
|
213
|
+
os_acls_config = aiven.OpenSearchAclConfig("os_acls_config",
|
|
214
|
+
project=aiven_project_name,
|
|
215
|
+
service_name=os_test["serviceName"],
|
|
217
216
|
enabled=True,
|
|
218
217
|
extended_acl=False)
|
|
219
218
|
acl_rules = [
|
|
@@ -246,7 +245,7 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
246
245
|
os_acl_rule = []
|
|
247
246
|
def create_os_acl_rule(range_body):
|
|
248
247
|
for range in [{"key": k, "value": v} for [k, v] in enumerate(range_body)]:
|
|
249
|
-
os_acl_rule.append(aiven.OpenSearchAclRule(f"
|
|
248
|
+
os_acl_rule.append(aiven.OpenSearchAclRule(f"os_acl_rule-{range['key']}",
|
|
250
249
|
project=os_acls_config.project,
|
|
251
250
|
service_name=os_acls_config.service_name,
|
|
252
251
|
username=range["value"]["username"],
|
|
@@ -255,7 +254,6 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
255
254
|
|
|
256
255
|
pulumi.Output.all({i: v for i, v in acl_rules}).apply(lambda resolved_outputs: create_os_acl_rule(resolved_outputs[0]))
|
|
257
256
|
```
|
|
258
|
-
<!--End PulumiCodeChooser -->
|
|
259
257
|
|
|
260
258
|
## Import
|
|
261
259
|
|
|
@@ -282,22 +280,21 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
282
280
|
|
|
283
281
|
## Example Usage
|
|
284
282
|
|
|
285
|
-
<!--Start PulumiCodeChooser -->
|
|
286
283
|
```python
|
|
287
284
|
import pulumi
|
|
288
285
|
import pulumi_aiven as aiven
|
|
289
286
|
|
|
290
|
-
os_user = aiven.OpensearchUser("
|
|
291
|
-
project=
|
|
292
|
-
service_name=
|
|
287
|
+
os_user = aiven.OpensearchUser("os_user",
|
|
288
|
+
project=aiven_project_name,
|
|
289
|
+
service_name=os_test["serviceName"],
|
|
293
290
|
username="documentation-user-1")
|
|
294
|
-
os_user2 = aiven.OpensearchUser("
|
|
295
|
-
project=
|
|
296
|
-
service_name=
|
|
291
|
+
os_user2 = aiven.OpensearchUser("os_user_2",
|
|
292
|
+
project=aiven_project_name,
|
|
293
|
+
service_name=os_test["serviceName"],
|
|
297
294
|
username="documentation-user-2")
|
|
298
|
-
os_acls_config = aiven.OpenSearchAclConfig("
|
|
299
|
-
project=
|
|
300
|
-
service_name=
|
|
295
|
+
os_acls_config = aiven.OpenSearchAclConfig("os_acls_config",
|
|
296
|
+
project=aiven_project_name,
|
|
297
|
+
service_name=os_test["serviceName"],
|
|
301
298
|
enabled=True,
|
|
302
299
|
extended_acl=False)
|
|
303
300
|
acl_rules = [
|
|
@@ -330,7 +327,7 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
330
327
|
os_acl_rule = []
|
|
331
328
|
def create_os_acl_rule(range_body):
|
|
332
329
|
for range in [{"key": k, "value": v} for [k, v] in enumerate(range_body)]:
|
|
333
|
-
os_acl_rule.append(aiven.OpenSearchAclRule(f"
|
|
330
|
+
os_acl_rule.append(aiven.OpenSearchAclRule(f"os_acl_rule-{range['key']}",
|
|
334
331
|
project=os_acls_config.project,
|
|
335
332
|
service_name=os_acls_config.service_name,
|
|
336
333
|
username=range["value"]["username"],
|
|
@@ -339,7 +336,6 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
339
336
|
|
|
340
337
|
pulumi.Output.all({i: v for i, v in acl_rules}).apply(lambda resolved_outputs: create_os_acl_rule(resolved_outputs[0]))
|
|
341
338
|
```
|
|
342
|
-
<!--End PulumiCodeChooser -->
|
|
343
339
|
|
|
344
340
|
## Import
|
|
345
341
|
|
|
@@ -182,29 +182,27 @@ class OpensearchSecurityPluginConfig(pulumi.CustomResource):
|
|
|
182
182
|
|
|
183
183
|
## Example Usage
|
|
184
184
|
|
|
185
|
-
<!--Start PulumiCodeChooser -->
|
|
186
185
|
```python
|
|
187
186
|
import pulumi
|
|
188
187
|
import pulumi_aiven as aiven
|
|
189
188
|
|
|
190
|
-
|
|
189
|
+
foo = aiven.get_project(project="example_project")
|
|
191
190
|
bar = aiven.OpenSearch("bar",
|
|
192
|
-
project=
|
|
191
|
+
project=foo.project,
|
|
193
192
|
cloud_name="google-europe-west1",
|
|
194
193
|
plan="startup-4",
|
|
195
194
|
service_name="example_service_name",
|
|
196
195
|
maintenance_window_dow="monday",
|
|
197
196
|
maintenance_window_time="10:00:00")
|
|
198
|
-
foo_opensearch_user = aiven.OpensearchUser("
|
|
197
|
+
foo_opensearch_user = aiven.OpensearchUser("foo",
|
|
199
198
|
service_name=bar.service_name,
|
|
200
|
-
project=
|
|
199
|
+
project=foo.project,
|
|
201
200
|
username="user-example")
|
|
202
|
-
foo_opensearch_security_plugin_config = aiven.OpensearchSecurityPluginConfig("
|
|
203
|
-
project=
|
|
201
|
+
foo_opensearch_security_plugin_config = aiven.OpensearchSecurityPluginConfig("foo",
|
|
202
|
+
project=foo.project,
|
|
204
203
|
service_name=bar.service_name,
|
|
205
204
|
admin_password="ThisIsATest123^=^")
|
|
206
205
|
```
|
|
207
|
-
<!--End PulumiCodeChooser -->
|
|
208
206
|
|
|
209
207
|
## Import
|
|
210
208
|
|
|
@@ -229,29 +227,27 @@ class OpensearchSecurityPluginConfig(pulumi.CustomResource):
|
|
|
229
227
|
|
|
230
228
|
## Example Usage
|
|
231
229
|
|
|
232
|
-
<!--Start PulumiCodeChooser -->
|
|
233
230
|
```python
|
|
234
231
|
import pulumi
|
|
235
232
|
import pulumi_aiven as aiven
|
|
236
233
|
|
|
237
|
-
|
|
234
|
+
foo = aiven.get_project(project="example_project")
|
|
238
235
|
bar = aiven.OpenSearch("bar",
|
|
239
|
-
project=
|
|
236
|
+
project=foo.project,
|
|
240
237
|
cloud_name="google-europe-west1",
|
|
241
238
|
plan="startup-4",
|
|
242
239
|
service_name="example_service_name",
|
|
243
240
|
maintenance_window_dow="monday",
|
|
244
241
|
maintenance_window_time="10:00:00")
|
|
245
|
-
foo_opensearch_user = aiven.OpensearchUser("
|
|
242
|
+
foo_opensearch_user = aiven.OpensearchUser("foo",
|
|
246
243
|
service_name=bar.service_name,
|
|
247
|
-
project=
|
|
244
|
+
project=foo.project,
|
|
248
245
|
username="user-example")
|
|
249
|
-
foo_opensearch_security_plugin_config = aiven.OpensearchSecurityPluginConfig("
|
|
250
|
-
project=
|
|
246
|
+
foo_opensearch_security_plugin_config = aiven.OpensearchSecurityPluginConfig("foo",
|
|
247
|
+
project=foo.project,
|
|
251
248
|
service_name=bar.service_name,
|
|
252
249
|
admin_password="ThisIsATest123^=^")
|
|
253
250
|
```
|
|
254
|
-
<!--End PulumiCodeChooser -->
|
|
255
251
|
|
|
256
252
|
## Import
|
|
257
253
|
|
pulumi_aiven/opensearch_user.py
CHANGED
|
@@ -183,18 +183,16 @@ class OpensearchUser(pulumi.CustomResource):
|
|
|
183
183
|
|
|
184
184
|
## Example Usage
|
|
185
185
|
|
|
186
|
-
<!--Start PulumiCodeChooser -->
|
|
187
186
|
```python
|
|
188
187
|
import pulumi
|
|
189
188
|
import pulumi_aiven as aiven
|
|
190
189
|
|
|
191
190
|
foo = aiven.OpensearchUser("foo",
|
|
192
|
-
service_name=
|
|
191
|
+
service_name=bar["serviceName"],
|
|
193
192
|
project="my-project",
|
|
194
193
|
username="user-1",
|
|
195
194
|
password="Test$1234")
|
|
196
195
|
```
|
|
197
|
-
<!--End PulumiCodeChooser -->
|
|
198
196
|
|
|
199
197
|
## Import
|
|
200
198
|
|
|
@@ -220,18 +218,16 @@ class OpensearchUser(pulumi.CustomResource):
|
|
|
220
218
|
|
|
221
219
|
## Example Usage
|
|
222
220
|
|
|
223
|
-
<!--Start PulumiCodeChooser -->
|
|
224
221
|
```python
|
|
225
222
|
import pulumi
|
|
226
223
|
import pulumi_aiven as aiven
|
|
227
224
|
|
|
228
225
|
foo = aiven.OpensearchUser("foo",
|
|
229
|
-
service_name=
|
|
226
|
+
service_name=bar["serviceName"],
|
|
230
227
|
project="my-project",
|
|
231
228
|
username="user-1",
|
|
232
229
|
password="Test$1234")
|
|
233
230
|
```
|
|
234
|
-
<!--End PulumiCodeChooser -->
|
|
235
231
|
|
|
236
232
|
## Import
|
|
237
233
|
|
pulumi_aiven/organization.py
CHANGED
|
@@ -146,14 +146,12 @@ class Organization(pulumi.CustomResource):
|
|
|
146
146
|
|
|
147
147
|
## Example Usage
|
|
148
148
|
|
|
149
|
-
<!--Start PulumiCodeChooser -->
|
|
150
149
|
```python
|
|
151
150
|
import pulumi
|
|
152
151
|
import pulumi_aiven as aiven
|
|
153
152
|
|
|
154
|
-
main = aiven.Organization("main")
|
|
153
|
+
main = aiven.Organization("main", name="Example organization")
|
|
155
154
|
```
|
|
156
|
-
<!--End PulumiCodeChooser -->
|
|
157
155
|
|
|
158
156
|
## Import
|
|
159
157
|
|
|
@@ -176,14 +174,12 @@ class Organization(pulumi.CustomResource):
|
|
|
176
174
|
|
|
177
175
|
## Example Usage
|
|
178
176
|
|
|
179
|
-
<!--Start PulumiCodeChooser -->
|
|
180
177
|
```python
|
|
181
178
|
import pulumi
|
|
182
179
|
import pulumi_aiven as aiven
|
|
183
180
|
|
|
184
|
-
main = aiven.Organization("main")
|
|
181
|
+
main = aiven.Organization("main", name="Example organization")
|
|
185
182
|
```
|
|
186
|
-
<!--End PulumiCodeChooser -->
|
|
187
183
|
|
|
188
184
|
## Import
|
|
189
185
|
|
|
@@ -159,6 +159,22 @@ class OrganizationGroupProject(pulumi.CustomResource):
|
|
|
159
159
|
"""
|
|
160
160
|
Adds and manages a [group](https://aiven.io/docs/platform/concepts/projects_accounts_access#groups) of users as [members of a project](https://aiven.io/docs/platform/reference/project-member-privileges).
|
|
161
161
|
|
|
162
|
+
## Example Usage
|
|
163
|
+
|
|
164
|
+
```python
|
|
165
|
+
import pulumi
|
|
166
|
+
import pulumi_aiven as aiven
|
|
167
|
+
|
|
168
|
+
example = aiven.OrganizationUserGroup("example",
|
|
169
|
+
description="Example group of users.",
|
|
170
|
+
organization_id=main["id"],
|
|
171
|
+
name="Example group")
|
|
172
|
+
example_organization_user_group_project = aiven.index.OrganizationUserGroupProject("example",
|
|
173
|
+
group_id=example.group_id,
|
|
174
|
+
project=example_aiven_project.project,
|
|
175
|
+
role=admin)
|
|
176
|
+
```
|
|
177
|
+
|
|
162
178
|
## Import
|
|
163
179
|
|
|
164
180
|
```sh
|
|
@@ -180,6 +196,22 @@ class OrganizationGroupProject(pulumi.CustomResource):
|
|
|
180
196
|
"""
|
|
181
197
|
Adds and manages a [group](https://aiven.io/docs/platform/concepts/projects_accounts_access#groups) of users as [members of a project](https://aiven.io/docs/platform/reference/project-member-privileges).
|
|
182
198
|
|
|
199
|
+
## Example Usage
|
|
200
|
+
|
|
201
|
+
```python
|
|
202
|
+
import pulumi
|
|
203
|
+
import pulumi_aiven as aiven
|
|
204
|
+
|
|
205
|
+
example = aiven.OrganizationUserGroup("example",
|
|
206
|
+
description="Example group of users.",
|
|
207
|
+
organization_id=main["id"],
|
|
208
|
+
name="Example group")
|
|
209
|
+
example_organization_user_group_project = aiven.index.OrganizationUserGroupProject("example",
|
|
210
|
+
group_id=example.group_id,
|
|
211
|
+
project=example_aiven_project.project,
|
|
212
|
+
role=admin)
|
|
213
|
+
```
|
|
214
|
+
|
|
183
215
|
## Import
|
|
184
216
|
|
|
185
217
|
```sh
|
|
@@ -183,16 +183,15 @@ class OrganizationUserGroup(pulumi.CustomResource):
|
|
|
183
183
|
|
|
184
184
|
## Example Usage
|
|
185
185
|
|
|
186
|
-
<!--Start PulumiCodeChooser -->
|
|
187
186
|
```python
|
|
188
187
|
import pulumi
|
|
189
188
|
import pulumi_aiven as aiven
|
|
190
189
|
|
|
191
190
|
example = aiven.OrganizationUserGroup("example",
|
|
192
191
|
description="Example group of users.",
|
|
193
|
-
organization_id=
|
|
192
|
+
organization_id=main["id"],
|
|
193
|
+
name="Example group")
|
|
194
194
|
```
|
|
195
|
-
<!--End PulumiCodeChooser -->
|
|
196
195
|
|
|
197
196
|
## Import
|
|
198
197
|
|
|
@@ -217,16 +216,15 @@ class OrganizationUserGroup(pulumi.CustomResource):
|
|
|
217
216
|
|
|
218
217
|
## Example Usage
|
|
219
218
|
|
|
220
|
-
<!--Start PulumiCodeChooser -->
|
|
221
219
|
```python
|
|
222
220
|
import pulumi
|
|
223
221
|
import pulumi_aiven as aiven
|
|
224
222
|
|
|
225
223
|
example = aiven.OrganizationUserGroup("example",
|
|
226
224
|
description="Example group of users.",
|
|
227
|
-
organization_id=
|
|
225
|
+
organization_id=main["id"],
|
|
226
|
+
name="Example group")
|
|
228
227
|
```
|
|
229
|
-
<!--End PulumiCodeChooser -->
|
|
230
228
|
|
|
231
229
|
## Import
|
|
232
230
|
|
|
@@ -177,20 +177,19 @@ class OrganizationUserGroupMember(pulumi.CustomResource):
|
|
|
177
177
|
|
|
178
178
|
## Example Usage
|
|
179
179
|
|
|
180
|
-
<!--Start PulumiCodeChooser -->
|
|
181
180
|
```python
|
|
182
181
|
import pulumi
|
|
183
182
|
import pulumi_aiven as aiven
|
|
184
183
|
|
|
185
184
|
example = aiven.OrganizationUserGroup("example",
|
|
186
185
|
description="Example group of users.",
|
|
187
|
-
organization_id=
|
|
188
|
-
|
|
186
|
+
organization_id=main["id"],
|
|
187
|
+
name="Example group")
|
|
188
|
+
project_admin = aiven.OrganizationUserGroupMember("project_admin",
|
|
189
189
|
group_id=example.group_id,
|
|
190
|
-
organization_id=
|
|
190
|
+
organization_id=main["id"],
|
|
191
191
|
user_id="u123a456b7890c")
|
|
192
192
|
```
|
|
193
|
-
<!--End PulumiCodeChooser -->
|
|
194
193
|
|
|
195
194
|
## Import
|
|
196
195
|
|
|
@@ -215,20 +214,19 @@ class OrganizationUserGroupMember(pulumi.CustomResource):
|
|
|
215
214
|
|
|
216
215
|
## Example Usage
|
|
217
216
|
|
|
218
|
-
<!--Start PulumiCodeChooser -->
|
|
219
217
|
```python
|
|
220
218
|
import pulumi
|
|
221
219
|
import pulumi_aiven as aiven
|
|
222
220
|
|
|
223
221
|
example = aiven.OrganizationUserGroup("example",
|
|
224
222
|
description="Example group of users.",
|
|
225
|
-
organization_id=
|
|
226
|
-
|
|
223
|
+
organization_id=main["id"],
|
|
224
|
+
name="Example group")
|
|
225
|
+
project_admin = aiven.OrganizationUserGroupMember("project_admin",
|
|
227
226
|
group_id=example.group_id,
|
|
228
|
-
organization_id=
|
|
227
|
+
organization_id=main["id"],
|
|
229
228
|
user_id="u123a456b7890c")
|
|
230
229
|
```
|
|
231
|
-
<!--End PulumiCodeChooser -->
|
|
232
230
|
|
|
233
231
|
## Import
|
|
234
232
|
|
|
@@ -151,14 +151,14 @@ class OrganizationalUnit(pulumi.CustomResource):
|
|
|
151
151
|
|
|
152
152
|
## Example Usage
|
|
153
153
|
|
|
154
|
-
<!--Start PulumiCodeChooser -->
|
|
155
154
|
```python
|
|
156
155
|
import pulumi
|
|
157
156
|
import pulumi_aiven as aiven
|
|
158
157
|
|
|
159
|
-
example_unit = aiven.OrganizationalUnit("
|
|
158
|
+
example_unit = aiven.OrganizationalUnit("example_unit",
|
|
159
|
+
name="Example organizational unit",
|
|
160
|
+
parent_id=main["id"])
|
|
160
161
|
```
|
|
161
|
-
<!--End PulumiCodeChooser -->
|
|
162
162
|
|
|
163
163
|
## Import
|
|
164
164
|
|
|
@@ -182,14 +182,14 @@ class OrganizationalUnit(pulumi.CustomResource):
|
|
|
182
182
|
|
|
183
183
|
## Example Usage
|
|
184
184
|
|
|
185
|
-
<!--Start PulumiCodeChooser -->
|
|
186
185
|
```python
|
|
187
186
|
import pulumi
|
|
188
187
|
import pulumi_aiven as aiven
|
|
189
188
|
|
|
190
|
-
example_unit = aiven.OrganizationalUnit("
|
|
189
|
+
example_unit = aiven.OrganizationalUnit("example_unit",
|
|
190
|
+
name="Example organizational unit",
|
|
191
|
+
parent_id=main["id"])
|
|
191
192
|
```
|
|
192
|
-
<!--End PulumiCodeChooser -->
|
|
193
193
|
|
|
194
194
|
## Import
|
|
195
195
|
|