pulumi-aiven 6.35.0a1740028090__py3-none-any.whl → 6.36.0__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 +40 -0
- pulumi_aiven/_inputs.py +214 -3
- pulumi_aiven/account_team_project.py +7 -7
- pulumi_aiven/alloydbomni.py +7 -7
- pulumi_aiven/aws_org_vpc_peering_connection.py +481 -0
- pulumi_aiven/azure_org_vpc_peering_connection.py +553 -0
- pulumi_aiven/billing_group.py +7 -7
- pulumi_aiven/cassandra.py +7 -7
- pulumi_aiven/clickhouse.py +7 -7
- pulumi_aiven/dragonfly.py +7 -7
- pulumi_aiven/flink.py +7 -7
- pulumi_aiven/gcp_org_vpc_peering_connection.py +403 -0
- pulumi_aiven/get_account_team_project.py +1 -1
- pulumi_aiven/get_alloydbomni.py +1 -1
- pulumi_aiven/get_aws_org_vpc_peering_connection.py +222 -0
- pulumi_aiven/get_azure_org_vpc_peering_connection.py +236 -0
- pulumi_aiven/get_billing_group.py +22 -4
- pulumi_aiven/get_cassanda.py +1 -1
- pulumi_aiven/get_cassandra.py +1 -1
- pulumi_aiven/get_clickhouse.py +1 -1
- pulumi_aiven/get_dragonfly.py +1 -1
- pulumi_aiven/get_flink.py +1 -1
- pulumi_aiven/get_gcp_org_vpc_peering_connection.py +188 -0
- pulumi_aiven/get_grafana.py +1 -1
- pulumi_aiven/get_kafka.py +1 -1
- pulumi_aiven/get_kafka_connect.py +1 -1
- pulumi_aiven/get_kafka_mirror_maker.py +1 -1
- pulumi_aiven/get_m3_aggregator.py +1 -1
- pulumi_aiven/get_m3_db.py +1 -1
- pulumi_aiven/get_my_sql.py +1 -1
- pulumi_aiven/get_open_search.py +1 -1
- pulumi_aiven/get_organization_application_user.py +1 -1
- pulumi_aiven/get_organization_project.py +1 -1
- pulumi_aiven/get_organization_vpc.py +190 -0
- pulumi_aiven/get_pg.py +1 -1
- pulumi_aiven/get_project.py +1 -1
- pulumi_aiven/get_project_user.py +3 -3
- pulumi_aiven/get_redis.py +1 -1
- pulumi_aiven/get_thanos.py +1 -1
- pulumi_aiven/get_valkey.py +1 -1
- pulumi_aiven/grafana.py +7 -7
- pulumi_aiven/influx_db.py +42 -42
- pulumi_aiven/kafka.py +9 -9
- pulumi_aiven/kafka_connect.py +7 -7
- pulumi_aiven/kafka_mirror_maker.py +7 -7
- pulumi_aiven/m3_aggregator.py +7 -7
- pulumi_aiven/m3_db.py +7 -7
- pulumi_aiven/my_sql.py +7 -7
- pulumi_aiven/open_search.py +7 -7
- pulumi_aiven/organization_application_user.py +13 -15
- pulumi_aiven/organization_application_user_token.py +47 -0
- pulumi_aiven/organization_group_project.py +9 -9
- pulumi_aiven/organization_permission.py +16 -2
- pulumi_aiven/organization_project.py +7 -7
- pulumi_aiven/organization_vpc.py +401 -0
- pulumi_aiven/outputs.py +277 -2
- pulumi_aiven/pg.py +7 -7
- pulumi_aiven/project.py +7 -7
- pulumi_aiven/project_user.py +9 -9
- pulumi_aiven/pulumi-plugin.json +1 -1
- pulumi_aiven/redis.py +7 -7
- pulumi_aiven/thanos.py +7 -7
- pulumi_aiven/valkey.py +7 -7
- {pulumi_aiven-6.35.0a1740028090.dist-info → pulumi_aiven-6.36.0.dist-info}/METADATA +1 -1
- {pulumi_aiven-6.35.0a1740028090.dist-info → pulumi_aiven-6.36.0.dist-info}/RECORD +67 -59
- {pulumi_aiven-6.35.0a1740028090.dist-info → pulumi_aiven-6.36.0.dist-info}/WHEEL +1 -1
- {pulumi_aiven-6.35.0a1740028090.dist-info → pulumi_aiven-6.36.0.dist-info}/top_level.txt +0 -0
|
@@ -32,7 +32,7 @@ class OrganizationProjectArgs:
|
|
|
32
32
|
:param pulumi.Input[str] billing_group_id: Billing group ID to assign to the project.
|
|
33
33
|
:param pulumi.Input[str] organization_id: ID of an organization. Changing this property forces recreation of the resource.
|
|
34
34
|
:param pulumi.Input[str] project_id: Unique identifier for the project that also serves as the project name.
|
|
35
|
-
:param pulumi.Input[str] parent_id: Link a project to an [organization
|
|
35
|
+
:param pulumi.Input[str] parent_id: Link a project to an [organization or organizational unit](https://aiven.io/docs/platform/concepts/orgs-units-projects) by using its ID. To set up proper dependencies please refer to this variable as a reference.
|
|
36
36
|
:param pulumi.Input[Sequence[pulumi.Input['OrganizationProjectTagArgs']]] tags: Tags are key-value pairs that allow you to categorize projects.
|
|
37
37
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] technical_emails: The email addresses for [project contacts](https://aiven.io/docs/platform/howto/technical-emails), who will receive important alerts and updates about this project and its services. You can also set email contacts at the service level. It's good practice to keep these up-to-date to be aware of any potential issues with your project.
|
|
38
38
|
"""
|
|
@@ -86,7 +86,7 @@ class OrganizationProjectArgs:
|
|
|
86
86
|
@pulumi.getter(name="parentId")
|
|
87
87
|
def parent_id(self) -> Optional[pulumi.Input[str]]:
|
|
88
88
|
"""
|
|
89
|
-
Link a project to an [organization
|
|
89
|
+
Link a project to an [organization or organizational unit](https://aiven.io/docs/platform/concepts/orgs-units-projects) by using its ID. To set up proper dependencies please refer to this variable as a reference.
|
|
90
90
|
"""
|
|
91
91
|
return pulumi.get(self, "parent_id")
|
|
92
92
|
|
|
@@ -132,7 +132,7 @@ class _OrganizationProjectState:
|
|
|
132
132
|
Input properties used for looking up and filtering OrganizationProject resources.
|
|
133
133
|
:param pulumi.Input[str] billing_group_id: Billing group ID to assign to the project.
|
|
134
134
|
:param pulumi.Input[str] organization_id: ID of an organization. Changing this property forces recreation of the resource.
|
|
135
|
-
:param pulumi.Input[str] parent_id: Link a project to an [organization
|
|
135
|
+
:param pulumi.Input[str] parent_id: Link a project to an [organization or organizational unit](https://aiven.io/docs/platform/concepts/orgs-units-projects) by using its ID. To set up proper dependencies please refer to this variable as a reference.
|
|
136
136
|
:param pulumi.Input[str] project_id: Unique identifier for the project that also serves as the project name.
|
|
137
137
|
:param pulumi.Input[Sequence[pulumi.Input['OrganizationProjectTagArgs']]] tags: Tags are key-value pairs that allow you to categorize projects.
|
|
138
138
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] technical_emails: The email addresses for [project contacts](https://aiven.io/docs/platform/howto/technical-emails), who will receive important alerts and updates about this project and its services. You can also set email contacts at the service level. It's good practice to keep these up-to-date to be aware of any potential issues with your project.
|
|
@@ -178,7 +178,7 @@ class _OrganizationProjectState:
|
|
|
178
178
|
@pulumi.getter(name="parentId")
|
|
179
179
|
def parent_id(self) -> Optional[pulumi.Input[str]]:
|
|
180
180
|
"""
|
|
181
|
-
Link a project to an [organization
|
|
181
|
+
Link a project to an [organization or organizational unit](https://aiven.io/docs/platform/concepts/orgs-units-projects) by using its ID. To set up proper dependencies please refer to this variable as a reference.
|
|
182
182
|
"""
|
|
183
183
|
return pulumi.get(self, "parent_id")
|
|
184
184
|
|
|
@@ -267,7 +267,7 @@ class OrganizationProject(pulumi.CustomResource):
|
|
|
267
267
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
268
268
|
:param pulumi.Input[str] billing_group_id: Billing group ID to assign to the project.
|
|
269
269
|
:param pulumi.Input[str] organization_id: ID of an organization. Changing this property forces recreation of the resource.
|
|
270
|
-
:param pulumi.Input[str] parent_id: Link a project to an [organization
|
|
270
|
+
:param pulumi.Input[str] parent_id: Link a project to an [organization or organizational unit](https://aiven.io/docs/platform/concepts/orgs-units-projects) by using its ID. To set up proper dependencies please refer to this variable as a reference.
|
|
271
271
|
:param pulumi.Input[str] project_id: Unique identifier for the project that also serves as the project name.
|
|
272
272
|
:param pulumi.Input[Sequence[pulumi.Input[Union['OrganizationProjectTagArgs', 'OrganizationProjectTagArgsDict']]]] tags: Tags are key-value pairs that allow you to categorize projects.
|
|
273
273
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] technical_emails: The email addresses for [project contacts](https://aiven.io/docs/platform/howto/technical-emails), who will receive important alerts and updates about this project and its services. You can also set email contacts at the service level. It's good practice to keep these up-to-date to be aware of any potential issues with your project.
|
|
@@ -373,7 +373,7 @@ class OrganizationProject(pulumi.CustomResource):
|
|
|
373
373
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
374
374
|
:param pulumi.Input[str] billing_group_id: Billing group ID to assign to the project.
|
|
375
375
|
:param pulumi.Input[str] organization_id: ID of an organization. Changing this property forces recreation of the resource.
|
|
376
|
-
:param pulumi.Input[str] parent_id: Link a project to an [organization
|
|
376
|
+
:param pulumi.Input[str] parent_id: Link a project to an [organization or organizational unit](https://aiven.io/docs/platform/concepts/orgs-units-projects) by using its ID. To set up proper dependencies please refer to this variable as a reference.
|
|
377
377
|
:param pulumi.Input[str] project_id: Unique identifier for the project that also serves as the project name.
|
|
378
378
|
:param pulumi.Input[Sequence[pulumi.Input[Union['OrganizationProjectTagArgs', 'OrganizationProjectTagArgsDict']]]] tags: Tags are key-value pairs that allow you to categorize projects.
|
|
379
379
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] technical_emails: The email addresses for [project contacts](https://aiven.io/docs/platform/howto/technical-emails), who will receive important alerts and updates about this project and its services. You can also set email contacts at the service level. It's good practice to keep these up-to-date to be aware of any potential issues with your project.
|
|
@@ -410,7 +410,7 @@ class OrganizationProject(pulumi.CustomResource):
|
|
|
410
410
|
@pulumi.getter(name="parentId")
|
|
411
411
|
def parent_id(self) -> pulumi.Output[str]:
|
|
412
412
|
"""
|
|
413
|
-
Link a project to an [organization
|
|
413
|
+
Link a project to an [organization or organizational unit](https://aiven.io/docs/platform/concepts/orgs-units-projects) by using its ID. To set up proper dependencies please refer to this variable as a reference.
|
|
414
414
|
"""
|
|
415
415
|
return pulumi.get(self, "parent_id")
|
|
416
416
|
|
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = ['OrganizationVpcArgs', 'OrganizationVpc']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class OrganizationVpcArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
cloud_name: pulumi.Input[str],
|
|
23
|
+
network_cidr: pulumi.Input[str],
|
|
24
|
+
organization_id: pulumi.Input[str]):
|
|
25
|
+
"""
|
|
26
|
+
The set of arguments for constructing a OrganizationVpc resource.
|
|
27
|
+
:param pulumi.Input[str] cloud_name: The cloud provider and region where the service is hosted in the format `CLOUD_PROVIDER-REGION_NAME`. For example, `google-europe-west1` or `aws-us-east-2`. Changing this property forces recreation of the resource.
|
|
28
|
+
:param pulumi.Input[str] network_cidr: Network address range used by the VPC. For example, `192.168.0.0/24`.
|
|
29
|
+
:param pulumi.Input[str] organization_id: The ID of the organization.
|
|
30
|
+
"""
|
|
31
|
+
pulumi.set(__self__, "cloud_name", cloud_name)
|
|
32
|
+
pulumi.set(__self__, "network_cidr", network_cidr)
|
|
33
|
+
pulumi.set(__self__, "organization_id", organization_id)
|
|
34
|
+
|
|
35
|
+
@property
|
|
36
|
+
@pulumi.getter(name="cloudName")
|
|
37
|
+
def cloud_name(self) -> pulumi.Input[str]:
|
|
38
|
+
"""
|
|
39
|
+
The cloud provider and region where the service is hosted in the format `CLOUD_PROVIDER-REGION_NAME`. For example, `google-europe-west1` or `aws-us-east-2`. Changing this property forces recreation of the resource.
|
|
40
|
+
"""
|
|
41
|
+
return pulumi.get(self, "cloud_name")
|
|
42
|
+
|
|
43
|
+
@cloud_name.setter
|
|
44
|
+
def cloud_name(self, value: pulumi.Input[str]):
|
|
45
|
+
pulumi.set(self, "cloud_name", value)
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
@pulumi.getter(name="networkCidr")
|
|
49
|
+
def network_cidr(self) -> pulumi.Input[str]:
|
|
50
|
+
"""
|
|
51
|
+
Network address range used by the VPC. For example, `192.168.0.0/24`.
|
|
52
|
+
"""
|
|
53
|
+
return pulumi.get(self, "network_cidr")
|
|
54
|
+
|
|
55
|
+
@network_cidr.setter
|
|
56
|
+
def network_cidr(self, value: pulumi.Input[str]):
|
|
57
|
+
pulumi.set(self, "network_cidr", value)
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
@pulumi.getter(name="organizationId")
|
|
61
|
+
def organization_id(self) -> pulumi.Input[str]:
|
|
62
|
+
"""
|
|
63
|
+
The ID of the organization.
|
|
64
|
+
"""
|
|
65
|
+
return pulumi.get(self, "organization_id")
|
|
66
|
+
|
|
67
|
+
@organization_id.setter
|
|
68
|
+
def organization_id(self, value: pulumi.Input[str]):
|
|
69
|
+
pulumi.set(self, "organization_id", value)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
@pulumi.input_type
|
|
73
|
+
class _OrganizationVpcState:
|
|
74
|
+
def __init__(__self__, *,
|
|
75
|
+
cloud_name: Optional[pulumi.Input[str]] = None,
|
|
76
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
77
|
+
network_cidr: Optional[pulumi.Input[str]] = None,
|
|
78
|
+
organization_id: Optional[pulumi.Input[str]] = None,
|
|
79
|
+
organization_vpc_id: Optional[pulumi.Input[str]] = None,
|
|
80
|
+
state: Optional[pulumi.Input[str]] = None,
|
|
81
|
+
update_time: Optional[pulumi.Input[str]] = None):
|
|
82
|
+
"""
|
|
83
|
+
Input properties used for looking up and filtering OrganizationVpc resources.
|
|
84
|
+
:param pulumi.Input[str] cloud_name: The cloud provider and region where the service is hosted in the format `CLOUD_PROVIDER-REGION_NAME`. For example, `google-europe-west1` or `aws-us-east-2`. Changing this property forces recreation of the resource.
|
|
85
|
+
:param pulumi.Input[str] create_time: Time of creation of the VPC.
|
|
86
|
+
:param pulumi.Input[str] network_cidr: Network address range used by the VPC. For example, `192.168.0.0/24`.
|
|
87
|
+
:param pulumi.Input[str] organization_id: The ID of the organization.
|
|
88
|
+
:param pulumi.Input[str] organization_vpc_id: The ID of the Aiven Organization VPC.
|
|
89
|
+
:param pulumi.Input[str] state: State of the VPC. The possible values are `ACTIVE`, `APPROVED`, `DELETED` and `DELETING`.
|
|
90
|
+
:param pulumi.Input[str] update_time: Time of the last update of the VPC.
|
|
91
|
+
"""
|
|
92
|
+
if cloud_name is not None:
|
|
93
|
+
pulumi.set(__self__, "cloud_name", cloud_name)
|
|
94
|
+
if create_time is not None:
|
|
95
|
+
pulumi.set(__self__, "create_time", create_time)
|
|
96
|
+
if network_cidr is not None:
|
|
97
|
+
pulumi.set(__self__, "network_cidr", network_cidr)
|
|
98
|
+
if organization_id is not None:
|
|
99
|
+
pulumi.set(__self__, "organization_id", organization_id)
|
|
100
|
+
if organization_vpc_id is not None:
|
|
101
|
+
pulumi.set(__self__, "organization_vpc_id", organization_vpc_id)
|
|
102
|
+
if state is not None:
|
|
103
|
+
pulumi.set(__self__, "state", state)
|
|
104
|
+
if update_time is not None:
|
|
105
|
+
pulumi.set(__self__, "update_time", update_time)
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
@pulumi.getter(name="cloudName")
|
|
109
|
+
def cloud_name(self) -> Optional[pulumi.Input[str]]:
|
|
110
|
+
"""
|
|
111
|
+
The cloud provider and region where the service is hosted in the format `CLOUD_PROVIDER-REGION_NAME`. For example, `google-europe-west1` or `aws-us-east-2`. Changing this property forces recreation of the resource.
|
|
112
|
+
"""
|
|
113
|
+
return pulumi.get(self, "cloud_name")
|
|
114
|
+
|
|
115
|
+
@cloud_name.setter
|
|
116
|
+
def cloud_name(self, value: Optional[pulumi.Input[str]]):
|
|
117
|
+
pulumi.set(self, "cloud_name", value)
|
|
118
|
+
|
|
119
|
+
@property
|
|
120
|
+
@pulumi.getter(name="createTime")
|
|
121
|
+
def create_time(self) -> Optional[pulumi.Input[str]]:
|
|
122
|
+
"""
|
|
123
|
+
Time of creation of the VPC.
|
|
124
|
+
"""
|
|
125
|
+
return pulumi.get(self, "create_time")
|
|
126
|
+
|
|
127
|
+
@create_time.setter
|
|
128
|
+
def create_time(self, value: Optional[pulumi.Input[str]]):
|
|
129
|
+
pulumi.set(self, "create_time", value)
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
@pulumi.getter(name="networkCidr")
|
|
133
|
+
def network_cidr(self) -> Optional[pulumi.Input[str]]:
|
|
134
|
+
"""
|
|
135
|
+
Network address range used by the VPC. For example, `192.168.0.0/24`.
|
|
136
|
+
"""
|
|
137
|
+
return pulumi.get(self, "network_cidr")
|
|
138
|
+
|
|
139
|
+
@network_cidr.setter
|
|
140
|
+
def network_cidr(self, value: Optional[pulumi.Input[str]]):
|
|
141
|
+
pulumi.set(self, "network_cidr", value)
|
|
142
|
+
|
|
143
|
+
@property
|
|
144
|
+
@pulumi.getter(name="organizationId")
|
|
145
|
+
def organization_id(self) -> Optional[pulumi.Input[str]]:
|
|
146
|
+
"""
|
|
147
|
+
The ID of the organization.
|
|
148
|
+
"""
|
|
149
|
+
return pulumi.get(self, "organization_id")
|
|
150
|
+
|
|
151
|
+
@organization_id.setter
|
|
152
|
+
def organization_id(self, value: Optional[pulumi.Input[str]]):
|
|
153
|
+
pulumi.set(self, "organization_id", value)
|
|
154
|
+
|
|
155
|
+
@property
|
|
156
|
+
@pulumi.getter(name="organizationVpcId")
|
|
157
|
+
def organization_vpc_id(self) -> Optional[pulumi.Input[str]]:
|
|
158
|
+
"""
|
|
159
|
+
The ID of the Aiven Organization VPC.
|
|
160
|
+
"""
|
|
161
|
+
return pulumi.get(self, "organization_vpc_id")
|
|
162
|
+
|
|
163
|
+
@organization_vpc_id.setter
|
|
164
|
+
def organization_vpc_id(self, value: Optional[pulumi.Input[str]]):
|
|
165
|
+
pulumi.set(self, "organization_vpc_id", value)
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
@pulumi.getter
|
|
169
|
+
def state(self) -> Optional[pulumi.Input[str]]:
|
|
170
|
+
"""
|
|
171
|
+
State of the VPC. The possible values are `ACTIVE`, `APPROVED`, `DELETED` and `DELETING`.
|
|
172
|
+
"""
|
|
173
|
+
return pulumi.get(self, "state")
|
|
174
|
+
|
|
175
|
+
@state.setter
|
|
176
|
+
def state(self, value: Optional[pulumi.Input[str]]):
|
|
177
|
+
pulumi.set(self, "state", value)
|
|
178
|
+
|
|
179
|
+
@property
|
|
180
|
+
@pulumi.getter(name="updateTime")
|
|
181
|
+
def update_time(self) -> Optional[pulumi.Input[str]]:
|
|
182
|
+
"""
|
|
183
|
+
Time of the last update of the VPC.
|
|
184
|
+
"""
|
|
185
|
+
return pulumi.get(self, "update_time")
|
|
186
|
+
|
|
187
|
+
@update_time.setter
|
|
188
|
+
def update_time(self, value: Optional[pulumi.Input[str]]):
|
|
189
|
+
pulumi.set(self, "update_time", value)
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
class OrganizationVpc(pulumi.CustomResource):
|
|
193
|
+
@overload
|
|
194
|
+
def __init__(__self__,
|
|
195
|
+
resource_name: str,
|
|
196
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
197
|
+
cloud_name: Optional[pulumi.Input[str]] = None,
|
|
198
|
+
network_cidr: Optional[pulumi.Input[str]] = None,
|
|
199
|
+
organization_id: Optional[pulumi.Input[str]] = None,
|
|
200
|
+
__props__=None):
|
|
201
|
+
"""
|
|
202
|
+
Creates and manages a VPC for an Aiven organization.
|
|
203
|
+
|
|
204
|
+
**This resource is in the beta stage and may change without notice.** Set
|
|
205
|
+
the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
|
|
206
|
+
|
|
207
|
+
## Example Usage
|
|
208
|
+
|
|
209
|
+
```python
|
|
210
|
+
import pulumi
|
|
211
|
+
import pulumi_aiven as aiven
|
|
212
|
+
|
|
213
|
+
example_vpc = aiven.OrganizationVpc("example_vpc",
|
|
214
|
+
organization_id=example["id"],
|
|
215
|
+
cloud_name="aws-eu-central-1",
|
|
216
|
+
network_cidr="10.0.0.0/24")
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
## Import
|
|
220
|
+
|
|
221
|
+
```sh
|
|
222
|
+
$ pulumi import aiven:index/organizationVpc:OrganizationVpc example ORGANIZATION_ID/ORGANIZATION_VPC_ID
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
:param str resource_name: The name of the resource.
|
|
226
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
227
|
+
:param pulumi.Input[str] cloud_name: The cloud provider and region where the service is hosted in the format `CLOUD_PROVIDER-REGION_NAME`. For example, `google-europe-west1` or `aws-us-east-2`. Changing this property forces recreation of the resource.
|
|
228
|
+
:param pulumi.Input[str] network_cidr: Network address range used by the VPC. For example, `192.168.0.0/24`.
|
|
229
|
+
:param pulumi.Input[str] organization_id: The ID of the organization.
|
|
230
|
+
"""
|
|
231
|
+
...
|
|
232
|
+
@overload
|
|
233
|
+
def __init__(__self__,
|
|
234
|
+
resource_name: str,
|
|
235
|
+
args: OrganizationVpcArgs,
|
|
236
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
237
|
+
"""
|
|
238
|
+
Creates and manages a VPC for an Aiven organization.
|
|
239
|
+
|
|
240
|
+
**This resource is in the beta stage and may change without notice.** Set
|
|
241
|
+
the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
|
|
242
|
+
|
|
243
|
+
## Example Usage
|
|
244
|
+
|
|
245
|
+
```python
|
|
246
|
+
import pulumi
|
|
247
|
+
import pulumi_aiven as aiven
|
|
248
|
+
|
|
249
|
+
example_vpc = aiven.OrganizationVpc("example_vpc",
|
|
250
|
+
organization_id=example["id"],
|
|
251
|
+
cloud_name="aws-eu-central-1",
|
|
252
|
+
network_cidr="10.0.0.0/24")
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
## Import
|
|
256
|
+
|
|
257
|
+
```sh
|
|
258
|
+
$ pulumi import aiven:index/organizationVpc:OrganizationVpc example ORGANIZATION_ID/ORGANIZATION_VPC_ID
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
:param str resource_name: The name of the resource.
|
|
262
|
+
:param OrganizationVpcArgs args: The arguments to use to populate this resource's properties.
|
|
263
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
264
|
+
"""
|
|
265
|
+
...
|
|
266
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
267
|
+
resource_args, opts = _utilities.get_resource_args_opts(OrganizationVpcArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
268
|
+
if resource_args is not None:
|
|
269
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
270
|
+
else:
|
|
271
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
272
|
+
|
|
273
|
+
def _internal_init(__self__,
|
|
274
|
+
resource_name: str,
|
|
275
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
276
|
+
cloud_name: Optional[pulumi.Input[str]] = None,
|
|
277
|
+
network_cidr: Optional[pulumi.Input[str]] = None,
|
|
278
|
+
organization_id: Optional[pulumi.Input[str]] = None,
|
|
279
|
+
__props__=None):
|
|
280
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
281
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
282
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
283
|
+
if opts.id is None:
|
|
284
|
+
if __props__ is not None:
|
|
285
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
286
|
+
__props__ = OrganizationVpcArgs.__new__(OrganizationVpcArgs)
|
|
287
|
+
|
|
288
|
+
if cloud_name is None and not opts.urn:
|
|
289
|
+
raise TypeError("Missing required property 'cloud_name'")
|
|
290
|
+
__props__.__dict__["cloud_name"] = cloud_name
|
|
291
|
+
if network_cidr is None and not opts.urn:
|
|
292
|
+
raise TypeError("Missing required property 'network_cidr'")
|
|
293
|
+
__props__.__dict__["network_cidr"] = network_cidr
|
|
294
|
+
if organization_id is None and not opts.urn:
|
|
295
|
+
raise TypeError("Missing required property 'organization_id'")
|
|
296
|
+
__props__.__dict__["organization_id"] = organization_id
|
|
297
|
+
__props__.__dict__["create_time"] = None
|
|
298
|
+
__props__.__dict__["organization_vpc_id"] = None
|
|
299
|
+
__props__.__dict__["state"] = None
|
|
300
|
+
__props__.__dict__["update_time"] = None
|
|
301
|
+
super(OrganizationVpc, __self__).__init__(
|
|
302
|
+
'aiven:index/organizationVpc:OrganizationVpc',
|
|
303
|
+
resource_name,
|
|
304
|
+
__props__,
|
|
305
|
+
opts)
|
|
306
|
+
|
|
307
|
+
@staticmethod
|
|
308
|
+
def get(resource_name: str,
|
|
309
|
+
id: pulumi.Input[str],
|
|
310
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
311
|
+
cloud_name: Optional[pulumi.Input[str]] = None,
|
|
312
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
313
|
+
network_cidr: Optional[pulumi.Input[str]] = None,
|
|
314
|
+
organization_id: Optional[pulumi.Input[str]] = None,
|
|
315
|
+
organization_vpc_id: Optional[pulumi.Input[str]] = None,
|
|
316
|
+
state: Optional[pulumi.Input[str]] = None,
|
|
317
|
+
update_time: Optional[pulumi.Input[str]] = None) -> 'OrganizationVpc':
|
|
318
|
+
"""
|
|
319
|
+
Get an existing OrganizationVpc resource's state with the given name, id, and optional extra
|
|
320
|
+
properties used to qualify the lookup.
|
|
321
|
+
|
|
322
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
323
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
324
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
325
|
+
:param pulumi.Input[str] cloud_name: The cloud provider and region where the service is hosted in the format `CLOUD_PROVIDER-REGION_NAME`. For example, `google-europe-west1` or `aws-us-east-2`. Changing this property forces recreation of the resource.
|
|
326
|
+
:param pulumi.Input[str] create_time: Time of creation of the VPC.
|
|
327
|
+
:param pulumi.Input[str] network_cidr: Network address range used by the VPC. For example, `192.168.0.0/24`.
|
|
328
|
+
:param pulumi.Input[str] organization_id: The ID of the organization.
|
|
329
|
+
:param pulumi.Input[str] organization_vpc_id: The ID of the Aiven Organization VPC.
|
|
330
|
+
:param pulumi.Input[str] state: State of the VPC. The possible values are `ACTIVE`, `APPROVED`, `DELETED` and `DELETING`.
|
|
331
|
+
:param pulumi.Input[str] update_time: Time of the last update of the VPC.
|
|
332
|
+
"""
|
|
333
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
334
|
+
|
|
335
|
+
__props__ = _OrganizationVpcState.__new__(_OrganizationVpcState)
|
|
336
|
+
|
|
337
|
+
__props__.__dict__["cloud_name"] = cloud_name
|
|
338
|
+
__props__.__dict__["create_time"] = create_time
|
|
339
|
+
__props__.__dict__["network_cidr"] = network_cidr
|
|
340
|
+
__props__.__dict__["organization_id"] = organization_id
|
|
341
|
+
__props__.__dict__["organization_vpc_id"] = organization_vpc_id
|
|
342
|
+
__props__.__dict__["state"] = state
|
|
343
|
+
__props__.__dict__["update_time"] = update_time
|
|
344
|
+
return OrganizationVpc(resource_name, opts=opts, __props__=__props__)
|
|
345
|
+
|
|
346
|
+
@property
|
|
347
|
+
@pulumi.getter(name="cloudName")
|
|
348
|
+
def cloud_name(self) -> pulumi.Output[str]:
|
|
349
|
+
"""
|
|
350
|
+
The cloud provider and region where the service is hosted in the format `CLOUD_PROVIDER-REGION_NAME`. For example, `google-europe-west1` or `aws-us-east-2`. Changing this property forces recreation of the resource.
|
|
351
|
+
"""
|
|
352
|
+
return pulumi.get(self, "cloud_name")
|
|
353
|
+
|
|
354
|
+
@property
|
|
355
|
+
@pulumi.getter(name="createTime")
|
|
356
|
+
def create_time(self) -> pulumi.Output[str]:
|
|
357
|
+
"""
|
|
358
|
+
Time of creation of the VPC.
|
|
359
|
+
"""
|
|
360
|
+
return pulumi.get(self, "create_time")
|
|
361
|
+
|
|
362
|
+
@property
|
|
363
|
+
@pulumi.getter(name="networkCidr")
|
|
364
|
+
def network_cidr(self) -> pulumi.Output[str]:
|
|
365
|
+
"""
|
|
366
|
+
Network address range used by the VPC. For example, `192.168.0.0/24`.
|
|
367
|
+
"""
|
|
368
|
+
return pulumi.get(self, "network_cidr")
|
|
369
|
+
|
|
370
|
+
@property
|
|
371
|
+
@pulumi.getter(name="organizationId")
|
|
372
|
+
def organization_id(self) -> pulumi.Output[str]:
|
|
373
|
+
"""
|
|
374
|
+
The ID of the organization.
|
|
375
|
+
"""
|
|
376
|
+
return pulumi.get(self, "organization_id")
|
|
377
|
+
|
|
378
|
+
@property
|
|
379
|
+
@pulumi.getter(name="organizationVpcId")
|
|
380
|
+
def organization_vpc_id(self) -> pulumi.Output[str]:
|
|
381
|
+
"""
|
|
382
|
+
The ID of the Aiven Organization VPC.
|
|
383
|
+
"""
|
|
384
|
+
return pulumi.get(self, "organization_vpc_id")
|
|
385
|
+
|
|
386
|
+
@property
|
|
387
|
+
@pulumi.getter
|
|
388
|
+
def state(self) -> pulumi.Output[str]:
|
|
389
|
+
"""
|
|
390
|
+
State of the VPC. The possible values are `ACTIVE`, `APPROVED`, `DELETED` and `DELETING`.
|
|
391
|
+
"""
|
|
392
|
+
return pulumi.get(self, "state")
|
|
393
|
+
|
|
394
|
+
@property
|
|
395
|
+
@pulumi.getter(name="updateTime")
|
|
396
|
+
def update_time(self) -> pulumi.Output[str]:
|
|
397
|
+
"""
|
|
398
|
+
Time of the last update of the VPC.
|
|
399
|
+
"""
|
|
400
|
+
return pulumi.get(self, "update_time")
|
|
401
|
+
|