pulumi-aiven 6.35.0a1740028090__py3-none-any.whl → 6.35.0a1740108157__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.

@@ -0,0 +1,236 @@
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__ = [
18
+ 'GetAzureOrgVpcPeeringConnectionResult',
19
+ 'AwaitableGetAzureOrgVpcPeeringConnectionResult',
20
+ 'get_azure_org_vpc_peering_connection',
21
+ 'get_azure_org_vpc_peering_connection_output',
22
+ ]
23
+
24
+ @pulumi.output_type
25
+ class GetAzureOrgVpcPeeringConnectionResult:
26
+ """
27
+ A collection of values returned by getAzureOrgVpcPeeringConnection.
28
+ """
29
+ def __init__(__self__, azure_subscription_id=None, id=None, organization_id=None, organization_vpc_id=None, peer_azure_app_id=None, peer_azure_tenant_id=None, peer_resource_group=None, peering_connection_id=None, state=None, vnet_name=None):
30
+ if azure_subscription_id and not isinstance(azure_subscription_id, str):
31
+ raise TypeError("Expected argument 'azure_subscription_id' to be a str")
32
+ pulumi.set(__self__, "azure_subscription_id", azure_subscription_id)
33
+ if id and not isinstance(id, str):
34
+ raise TypeError("Expected argument 'id' to be a str")
35
+ pulumi.set(__self__, "id", id)
36
+ if organization_id and not isinstance(organization_id, str):
37
+ raise TypeError("Expected argument 'organization_id' to be a str")
38
+ pulumi.set(__self__, "organization_id", organization_id)
39
+ if organization_vpc_id and not isinstance(organization_vpc_id, str):
40
+ raise TypeError("Expected argument 'organization_vpc_id' to be a str")
41
+ pulumi.set(__self__, "organization_vpc_id", organization_vpc_id)
42
+ if peer_azure_app_id and not isinstance(peer_azure_app_id, str):
43
+ raise TypeError("Expected argument 'peer_azure_app_id' to be a str")
44
+ pulumi.set(__self__, "peer_azure_app_id", peer_azure_app_id)
45
+ if peer_azure_tenant_id and not isinstance(peer_azure_tenant_id, str):
46
+ raise TypeError("Expected argument 'peer_azure_tenant_id' to be a str")
47
+ pulumi.set(__self__, "peer_azure_tenant_id", peer_azure_tenant_id)
48
+ if peer_resource_group and not isinstance(peer_resource_group, str):
49
+ raise TypeError("Expected argument 'peer_resource_group' to be a str")
50
+ pulumi.set(__self__, "peer_resource_group", peer_resource_group)
51
+ if peering_connection_id and not isinstance(peering_connection_id, str):
52
+ raise TypeError("Expected argument 'peering_connection_id' to be a str")
53
+ pulumi.set(__self__, "peering_connection_id", peering_connection_id)
54
+ if state and not isinstance(state, str):
55
+ raise TypeError("Expected argument 'state' to be a str")
56
+ pulumi.set(__self__, "state", state)
57
+ if vnet_name and not isinstance(vnet_name, str):
58
+ raise TypeError("Expected argument 'vnet_name' to be a str")
59
+ pulumi.set(__self__, "vnet_name", vnet_name)
60
+
61
+ @property
62
+ @pulumi.getter(name="azureSubscriptionId")
63
+ def azure_subscription_id(self) -> str:
64
+ """
65
+ The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
66
+ """
67
+ return pulumi.get(self, "azure_subscription_id")
68
+
69
+ @property
70
+ @pulumi.getter
71
+ def id(self) -> str:
72
+ """
73
+ The provider-assigned unique ID for this managed resource.
74
+ """
75
+ return pulumi.get(self, "id")
76
+
77
+ @property
78
+ @pulumi.getter(name="organizationId")
79
+ def organization_id(self) -> str:
80
+ """
81
+ Identifier of the organization.
82
+ """
83
+ return pulumi.get(self, "organization_id")
84
+
85
+ @property
86
+ @pulumi.getter(name="organizationVpcId")
87
+ def organization_vpc_id(self) -> str:
88
+ """
89
+ Identifier of the organization VPC.
90
+ """
91
+ return pulumi.get(self, "organization_vpc_id")
92
+
93
+ @property
94
+ @pulumi.getter(name="peerAzureAppId")
95
+ def peer_azure_app_id(self) -> str:
96
+ """
97
+ The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
98
+ """
99
+ return pulumi.get(self, "peer_azure_app_id")
100
+
101
+ @property
102
+ @pulumi.getter(name="peerAzureTenantId")
103
+ def peer_azure_tenant_id(self) -> str:
104
+ """
105
+ The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
106
+ """
107
+ return pulumi.get(self, "peer_azure_tenant_id")
108
+
109
+ @property
110
+ @pulumi.getter(name="peerResourceGroup")
111
+ def peer_resource_group(self) -> str:
112
+ """
113
+ The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
114
+ """
115
+ return pulumi.get(self, "peer_resource_group")
116
+
117
+ @property
118
+ @pulumi.getter(name="peeringConnectionId")
119
+ def peering_connection_id(self) -> str:
120
+ """
121
+ The ID of the cloud provider for the peering connection.
122
+ """
123
+ return pulumi.get(self, "peering_connection_id")
124
+
125
+ @property
126
+ @pulumi.getter
127
+ def state(self) -> str:
128
+ """
129
+ State of the peering connection
130
+ """
131
+ return pulumi.get(self, "state")
132
+
133
+ @property
134
+ @pulumi.getter(name="vnetName")
135
+ def vnet_name(self) -> str:
136
+ """
137
+ The name of the Azure VNet. Changing this property forces recreation of the resource.
138
+ """
139
+ return pulumi.get(self, "vnet_name")
140
+
141
+
142
+ class AwaitableGetAzureOrgVpcPeeringConnectionResult(GetAzureOrgVpcPeeringConnectionResult):
143
+ # pylint: disable=using-constant-test
144
+ def __await__(self):
145
+ if False:
146
+ yield self
147
+ return GetAzureOrgVpcPeeringConnectionResult(
148
+ azure_subscription_id=self.azure_subscription_id,
149
+ id=self.id,
150
+ organization_id=self.organization_id,
151
+ organization_vpc_id=self.organization_vpc_id,
152
+ peer_azure_app_id=self.peer_azure_app_id,
153
+ peer_azure_tenant_id=self.peer_azure_tenant_id,
154
+ peer_resource_group=self.peer_resource_group,
155
+ peering_connection_id=self.peering_connection_id,
156
+ state=self.state,
157
+ vnet_name=self.vnet_name)
158
+
159
+
160
+ def get_azure_org_vpc_peering_connection(azure_subscription_id: Optional[str] = None,
161
+ organization_id: Optional[str] = None,
162
+ organization_vpc_id: Optional[str] = None,
163
+ peer_resource_group: Optional[str] = None,
164
+ vnet_name: Optional[str] = None,
165
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAzureOrgVpcPeeringConnectionResult:
166
+ """
167
+ Gets information about about an Azure VPC peering connection.
168
+
169
+ **This resource is in the beta stage and may change without notice.** Set
170
+ the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
171
+
172
+
173
+ :param str azure_subscription_id: The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
174
+ :param str organization_id: Identifier of the organization.
175
+ :param str organization_vpc_id: Identifier of the organization VPC.
176
+ :param str peer_resource_group: The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
177
+ :param str vnet_name: The name of the Azure VNet. Changing this property forces recreation of the resource.
178
+ """
179
+ __args__ = dict()
180
+ __args__['azureSubscriptionId'] = azure_subscription_id
181
+ __args__['organizationId'] = organization_id
182
+ __args__['organizationVpcId'] = organization_vpc_id
183
+ __args__['peerResourceGroup'] = peer_resource_group
184
+ __args__['vnetName'] = vnet_name
185
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
186
+ __ret__ = pulumi.runtime.invoke('aiven:index/getAzureOrgVpcPeeringConnection:getAzureOrgVpcPeeringConnection', __args__, opts=opts, typ=GetAzureOrgVpcPeeringConnectionResult).value
187
+
188
+ return AwaitableGetAzureOrgVpcPeeringConnectionResult(
189
+ azure_subscription_id=pulumi.get(__ret__, 'azure_subscription_id'),
190
+ id=pulumi.get(__ret__, 'id'),
191
+ organization_id=pulumi.get(__ret__, 'organization_id'),
192
+ organization_vpc_id=pulumi.get(__ret__, 'organization_vpc_id'),
193
+ peer_azure_app_id=pulumi.get(__ret__, 'peer_azure_app_id'),
194
+ peer_azure_tenant_id=pulumi.get(__ret__, 'peer_azure_tenant_id'),
195
+ peer_resource_group=pulumi.get(__ret__, 'peer_resource_group'),
196
+ peering_connection_id=pulumi.get(__ret__, 'peering_connection_id'),
197
+ state=pulumi.get(__ret__, 'state'),
198
+ vnet_name=pulumi.get(__ret__, 'vnet_name'))
199
+ def get_azure_org_vpc_peering_connection_output(azure_subscription_id: Optional[pulumi.Input[str]] = None,
200
+ organization_id: Optional[pulumi.Input[str]] = None,
201
+ organization_vpc_id: Optional[pulumi.Input[str]] = None,
202
+ peer_resource_group: Optional[pulumi.Input[str]] = None,
203
+ vnet_name: Optional[pulumi.Input[str]] = None,
204
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAzureOrgVpcPeeringConnectionResult]:
205
+ """
206
+ Gets information about about an Azure VPC peering connection.
207
+
208
+ **This resource is in the beta stage and may change without notice.** Set
209
+ the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
210
+
211
+
212
+ :param str azure_subscription_id: The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
213
+ :param str organization_id: Identifier of the organization.
214
+ :param str organization_vpc_id: Identifier of the organization VPC.
215
+ :param str peer_resource_group: The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
216
+ :param str vnet_name: The name of the Azure VNet. Changing this property forces recreation of the resource.
217
+ """
218
+ __args__ = dict()
219
+ __args__['azureSubscriptionId'] = azure_subscription_id
220
+ __args__['organizationId'] = organization_id
221
+ __args__['organizationVpcId'] = organization_vpc_id
222
+ __args__['peerResourceGroup'] = peer_resource_group
223
+ __args__['vnetName'] = vnet_name
224
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
225
+ __ret__ = pulumi.runtime.invoke_output('aiven:index/getAzureOrgVpcPeeringConnection:getAzureOrgVpcPeeringConnection', __args__, opts=opts, typ=GetAzureOrgVpcPeeringConnectionResult)
226
+ return __ret__.apply(lambda __response__: GetAzureOrgVpcPeeringConnectionResult(
227
+ azure_subscription_id=pulumi.get(__response__, 'azure_subscription_id'),
228
+ id=pulumi.get(__response__, 'id'),
229
+ organization_id=pulumi.get(__response__, 'organization_id'),
230
+ organization_vpc_id=pulumi.get(__response__, 'organization_vpc_id'),
231
+ peer_azure_app_id=pulumi.get(__response__, 'peer_azure_app_id'),
232
+ peer_azure_tenant_id=pulumi.get(__response__, 'peer_azure_tenant_id'),
233
+ peer_resource_group=pulumi.get(__response__, 'peer_resource_group'),
234
+ peering_connection_id=pulumi.get(__response__, 'peering_connection_id'),
235
+ state=pulumi.get(__response__, 'state'),
236
+ vnet_name=pulumi.get(__response__, 'vnet_name')))
@@ -187,7 +187,7 @@ class GetBillingGroupResult:
187
187
  @pulumi.getter(name="parentId")
188
188
  def parent_id(self) -> str:
189
189
  """
190
- Link a billing group to an existing organization or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
190
+ Link a billing group to an existing organization by using its ID. To set up proper dependencies please refer to this variable as a reference.
191
191
  """
192
192
  return pulumi.get(self, "parent_id")
193
193
 
@@ -0,0 +1,188 @@
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__ = [
18
+ 'GetGcpOrgVpcPeeringConnectionResult',
19
+ 'AwaitableGetGcpOrgVpcPeeringConnectionResult',
20
+ 'get_gcp_org_vpc_peering_connection',
21
+ 'get_gcp_org_vpc_peering_connection_output',
22
+ ]
23
+
24
+ @pulumi.output_type
25
+ class GetGcpOrgVpcPeeringConnectionResult:
26
+ """
27
+ A collection of values returned by getGcpOrgVpcPeeringConnection.
28
+ """
29
+ def __init__(__self__, gcp_project_id=None, id=None, organization_id=None, organization_vpc_id=None, peer_vpc=None, self_link=None, state=None):
30
+ if gcp_project_id and not isinstance(gcp_project_id, str):
31
+ raise TypeError("Expected argument 'gcp_project_id' to be a str")
32
+ pulumi.set(__self__, "gcp_project_id", gcp_project_id)
33
+ if id and not isinstance(id, str):
34
+ raise TypeError("Expected argument 'id' to be a str")
35
+ pulumi.set(__self__, "id", id)
36
+ if organization_id and not isinstance(organization_id, str):
37
+ raise TypeError("Expected argument 'organization_id' to be a str")
38
+ pulumi.set(__self__, "organization_id", organization_id)
39
+ if organization_vpc_id and not isinstance(organization_vpc_id, str):
40
+ raise TypeError("Expected argument 'organization_vpc_id' to be a str")
41
+ pulumi.set(__self__, "organization_vpc_id", organization_vpc_id)
42
+ if peer_vpc and not isinstance(peer_vpc, str):
43
+ raise TypeError("Expected argument 'peer_vpc' to be a str")
44
+ pulumi.set(__self__, "peer_vpc", peer_vpc)
45
+ if self_link and not isinstance(self_link, str):
46
+ raise TypeError("Expected argument 'self_link' to be a str")
47
+ pulumi.set(__self__, "self_link", self_link)
48
+ if state and not isinstance(state, str):
49
+ raise TypeError("Expected argument 'state' to be a str")
50
+ pulumi.set(__self__, "state", state)
51
+
52
+ @property
53
+ @pulumi.getter(name="gcpProjectId")
54
+ def gcp_project_id(self) -> str:
55
+ """
56
+ Google Cloud project ID. Changing this property forces recreation of the resource.
57
+ """
58
+ return pulumi.get(self, "gcp_project_id")
59
+
60
+ @property
61
+ @pulumi.getter
62
+ def id(self) -> str:
63
+ """
64
+ The provider-assigned unique ID for this managed resource.
65
+ """
66
+ return pulumi.get(self, "id")
67
+
68
+ @property
69
+ @pulumi.getter(name="organizationId")
70
+ def organization_id(self) -> str:
71
+ """
72
+ Identifier of the organization.
73
+ """
74
+ return pulumi.get(self, "organization_id")
75
+
76
+ @property
77
+ @pulumi.getter(name="organizationVpcId")
78
+ def organization_vpc_id(self) -> str:
79
+ """
80
+ Identifier of the organization VPC.
81
+ """
82
+ return pulumi.get(self, "organization_vpc_id")
83
+
84
+ @property
85
+ @pulumi.getter(name="peerVpc")
86
+ def peer_vpc(self) -> str:
87
+ """
88
+ Google Cloud VPC network name. Changing this property forces recreation of the resource.
89
+ """
90
+ return pulumi.get(self, "peer_vpc")
91
+
92
+ @property
93
+ @pulumi.getter(name="selfLink")
94
+ def self_link(self) -> str:
95
+ """
96
+ Computed Google Cloud network peering link.
97
+ """
98
+ return pulumi.get(self, "self_link")
99
+
100
+ @property
101
+ @pulumi.getter
102
+ def state(self) -> str:
103
+ """
104
+ State of the peering connection.
105
+ """
106
+ return pulumi.get(self, "state")
107
+
108
+
109
+ class AwaitableGetGcpOrgVpcPeeringConnectionResult(GetGcpOrgVpcPeeringConnectionResult):
110
+ # pylint: disable=using-constant-test
111
+ def __await__(self):
112
+ if False:
113
+ yield self
114
+ return GetGcpOrgVpcPeeringConnectionResult(
115
+ gcp_project_id=self.gcp_project_id,
116
+ id=self.id,
117
+ organization_id=self.organization_id,
118
+ organization_vpc_id=self.organization_vpc_id,
119
+ peer_vpc=self.peer_vpc,
120
+ self_link=self.self_link,
121
+ state=self.state)
122
+
123
+
124
+ def get_gcp_org_vpc_peering_connection(gcp_project_id: Optional[str] = None,
125
+ organization_id: Optional[str] = None,
126
+ organization_vpc_id: Optional[str] = None,
127
+ peer_vpc: Optional[str] = None,
128
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGcpOrgVpcPeeringConnectionResult:
129
+ """
130
+ The GCP VPC Peering Connection data source provides information about the existing Aiven VPC Peering Connection.
131
+
132
+ **This resource is in the beta stage and may change without notice.** Set
133
+ the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
134
+
135
+
136
+ :param str gcp_project_id: Google Cloud project ID. Changing this property forces recreation of the resource.
137
+ :param str organization_id: Identifier of the organization.
138
+ :param str organization_vpc_id: Identifier of the organization VPC.
139
+ :param str peer_vpc: Google Cloud VPC network name. Changing this property forces recreation of the resource.
140
+ """
141
+ __args__ = dict()
142
+ __args__['gcpProjectId'] = gcp_project_id
143
+ __args__['organizationId'] = organization_id
144
+ __args__['organizationVpcId'] = organization_vpc_id
145
+ __args__['peerVpc'] = peer_vpc
146
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
147
+ __ret__ = pulumi.runtime.invoke('aiven:index/getGcpOrgVpcPeeringConnection:getGcpOrgVpcPeeringConnection', __args__, opts=opts, typ=GetGcpOrgVpcPeeringConnectionResult).value
148
+
149
+ return AwaitableGetGcpOrgVpcPeeringConnectionResult(
150
+ gcp_project_id=pulumi.get(__ret__, 'gcp_project_id'),
151
+ id=pulumi.get(__ret__, 'id'),
152
+ organization_id=pulumi.get(__ret__, 'organization_id'),
153
+ organization_vpc_id=pulumi.get(__ret__, 'organization_vpc_id'),
154
+ peer_vpc=pulumi.get(__ret__, 'peer_vpc'),
155
+ self_link=pulumi.get(__ret__, 'self_link'),
156
+ state=pulumi.get(__ret__, 'state'))
157
+ def get_gcp_org_vpc_peering_connection_output(gcp_project_id: Optional[pulumi.Input[str]] = None,
158
+ organization_id: Optional[pulumi.Input[str]] = None,
159
+ organization_vpc_id: Optional[pulumi.Input[str]] = None,
160
+ peer_vpc: Optional[pulumi.Input[str]] = None,
161
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGcpOrgVpcPeeringConnectionResult]:
162
+ """
163
+ The GCP VPC Peering Connection data source provides information about the existing Aiven VPC Peering Connection.
164
+
165
+ **This resource is in the beta stage and may change without notice.** Set
166
+ the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
167
+
168
+
169
+ :param str gcp_project_id: Google Cloud project ID. Changing this property forces recreation of the resource.
170
+ :param str organization_id: Identifier of the organization.
171
+ :param str organization_vpc_id: Identifier of the organization VPC.
172
+ :param str peer_vpc: Google Cloud VPC network name. Changing this property forces recreation of the resource.
173
+ """
174
+ __args__ = dict()
175
+ __args__['gcpProjectId'] = gcp_project_id
176
+ __args__['organizationId'] = organization_id
177
+ __args__['organizationVpcId'] = organization_vpc_id
178
+ __args__['peerVpc'] = peer_vpc
179
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
180
+ __ret__ = pulumi.runtime.invoke_output('aiven:index/getGcpOrgVpcPeeringConnection:getGcpOrgVpcPeeringConnection', __args__, opts=opts, typ=GetGcpOrgVpcPeeringConnectionResult)
181
+ return __ret__.apply(lambda __response__: GetGcpOrgVpcPeeringConnectionResult(
182
+ gcp_project_id=pulumi.get(__response__, 'gcp_project_id'),
183
+ id=pulumi.get(__response__, 'id'),
184
+ organization_id=pulumi.get(__response__, 'organization_id'),
185
+ organization_vpc_id=pulumi.get(__response__, 'organization_vpc_id'),
186
+ peer_vpc=pulumi.get(__response__, 'peer_vpc'),
187
+ self_link=pulumi.get(__response__, 'self_link'),
188
+ state=pulumi.get(__response__, 'state')))
@@ -78,7 +78,7 @@ class GetOrganizationProjectResult:
78
78
  @pulumi.getter(name="parentId")
79
79
  def parent_id(self) -> str:
80
80
  """
81
- Link a project to an [organization, organizational unit,](https://aiven.io/docs/platform/concepts/orgs-units-projects) or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
81
+ 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.
82
82
  """
83
83
  return pulumi.get(self, "parent_id")
84
84
 
@@ -0,0 +1,190 @@
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__ = [
18
+ 'GetOrganizationVpcResult',
19
+ 'AwaitableGetOrganizationVpcResult',
20
+ 'get_organization_vpc',
21
+ 'get_organization_vpc_output',
22
+ ]
23
+
24
+ @pulumi.output_type
25
+ class GetOrganizationVpcResult:
26
+ """
27
+ A collection of values returned by getOrganizationVpc.
28
+ """
29
+ def __init__(__self__, cloud_name=None, create_time=None, id=None, network_cidr=None, organization_id=None, organization_vpc_id=None, state=None, update_time=None):
30
+ if cloud_name and not isinstance(cloud_name, str):
31
+ raise TypeError("Expected argument 'cloud_name' to be a str")
32
+ pulumi.set(__self__, "cloud_name", cloud_name)
33
+ if create_time and not isinstance(create_time, str):
34
+ raise TypeError("Expected argument 'create_time' to be a str")
35
+ pulumi.set(__self__, "create_time", create_time)
36
+ if id and not isinstance(id, str):
37
+ raise TypeError("Expected argument 'id' to be a str")
38
+ pulumi.set(__self__, "id", id)
39
+ if network_cidr and not isinstance(network_cidr, str):
40
+ raise TypeError("Expected argument 'network_cidr' to be a str")
41
+ pulumi.set(__self__, "network_cidr", network_cidr)
42
+ if organization_id and not isinstance(organization_id, str):
43
+ raise TypeError("Expected argument 'organization_id' to be a str")
44
+ pulumi.set(__self__, "organization_id", organization_id)
45
+ if organization_vpc_id and not isinstance(organization_vpc_id, str):
46
+ raise TypeError("Expected argument 'organization_vpc_id' to be a str")
47
+ pulumi.set(__self__, "organization_vpc_id", organization_vpc_id)
48
+ if state and not isinstance(state, str):
49
+ raise TypeError("Expected argument 'state' to be a str")
50
+ pulumi.set(__self__, "state", state)
51
+ if update_time and not isinstance(update_time, str):
52
+ raise TypeError("Expected argument 'update_time' to be a str")
53
+ pulumi.set(__self__, "update_time", update_time)
54
+
55
+ @property
56
+ @pulumi.getter(name="cloudName")
57
+ def cloud_name(self) -> str:
58
+ """
59
+ 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.
60
+ """
61
+ return pulumi.get(self, "cloud_name")
62
+
63
+ @property
64
+ @pulumi.getter(name="createTime")
65
+ def create_time(self) -> str:
66
+ """
67
+ Time of creation of the VPC.
68
+ """
69
+ return pulumi.get(self, "create_time")
70
+
71
+ @property
72
+ @pulumi.getter
73
+ def id(self) -> str:
74
+ """
75
+ The provider-assigned unique ID for this managed resource.
76
+ """
77
+ return pulumi.get(self, "id")
78
+
79
+ @property
80
+ @pulumi.getter(name="networkCidr")
81
+ def network_cidr(self) -> str:
82
+ """
83
+ Network address range used by the VPC. For example, `192.168.0.0/24`.
84
+ """
85
+ return pulumi.get(self, "network_cidr")
86
+
87
+ @property
88
+ @pulumi.getter(name="organizationId")
89
+ def organization_id(self) -> str:
90
+ """
91
+ The ID of the organization.
92
+ """
93
+ return pulumi.get(self, "organization_id")
94
+
95
+ @property
96
+ @pulumi.getter(name="organizationVpcId")
97
+ def organization_vpc_id(self) -> str:
98
+ """
99
+ The ID of the Aiven Organization VPC.
100
+ """
101
+ return pulumi.get(self, "organization_vpc_id")
102
+
103
+ @property
104
+ @pulumi.getter
105
+ def state(self) -> str:
106
+ """
107
+ State of the VPC. The possible values are `ACTIVE`, `APPROVED`, `DELETED` and `DELETING`.
108
+ """
109
+ return pulumi.get(self, "state")
110
+
111
+ @property
112
+ @pulumi.getter(name="updateTime")
113
+ def update_time(self) -> str:
114
+ """
115
+ Time of the last update of the VPC.
116
+ """
117
+ return pulumi.get(self, "update_time")
118
+
119
+
120
+ class AwaitableGetOrganizationVpcResult(GetOrganizationVpcResult):
121
+ # pylint: disable=using-constant-test
122
+ def __await__(self):
123
+ if False:
124
+ yield self
125
+ return GetOrganizationVpcResult(
126
+ cloud_name=self.cloud_name,
127
+ create_time=self.create_time,
128
+ id=self.id,
129
+ network_cidr=self.network_cidr,
130
+ organization_id=self.organization_id,
131
+ organization_vpc_id=self.organization_vpc_id,
132
+ state=self.state,
133
+ update_time=self.update_time)
134
+
135
+
136
+ def get_organization_vpc(organization_id: Optional[str] = None,
137
+ organization_vpc_id: Optional[str] = None,
138
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetOrganizationVpcResult:
139
+ """
140
+ Gets information about an existing VPC in an Aiven organization.
141
+
142
+ **This resource is in the beta stage and may change without notice.** Set
143
+ the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
144
+
145
+
146
+ :param str organization_id: The ID of the organization.
147
+ :param str organization_vpc_id: The ID of the Aiven Organization VPC.
148
+ """
149
+ __args__ = dict()
150
+ __args__['organizationId'] = organization_id
151
+ __args__['organizationVpcId'] = organization_vpc_id
152
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
153
+ __ret__ = pulumi.runtime.invoke('aiven:index/getOrganizationVpc:getOrganizationVpc', __args__, opts=opts, typ=GetOrganizationVpcResult).value
154
+
155
+ return AwaitableGetOrganizationVpcResult(
156
+ cloud_name=pulumi.get(__ret__, 'cloud_name'),
157
+ create_time=pulumi.get(__ret__, 'create_time'),
158
+ id=pulumi.get(__ret__, 'id'),
159
+ network_cidr=pulumi.get(__ret__, 'network_cidr'),
160
+ organization_id=pulumi.get(__ret__, 'organization_id'),
161
+ organization_vpc_id=pulumi.get(__ret__, 'organization_vpc_id'),
162
+ state=pulumi.get(__ret__, 'state'),
163
+ update_time=pulumi.get(__ret__, 'update_time'))
164
+ def get_organization_vpc_output(organization_id: Optional[pulumi.Input[str]] = None,
165
+ organization_vpc_id: Optional[pulumi.Input[str]] = None,
166
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetOrganizationVpcResult]:
167
+ """
168
+ Gets information about an existing VPC in an Aiven organization.
169
+
170
+ **This resource is in the beta stage and may change without notice.** Set
171
+ the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
172
+
173
+
174
+ :param str organization_id: The ID of the organization.
175
+ :param str organization_vpc_id: The ID of the Aiven Organization VPC.
176
+ """
177
+ __args__ = dict()
178
+ __args__['organizationId'] = organization_id
179
+ __args__['organizationVpcId'] = organization_vpc_id
180
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
181
+ __ret__ = pulumi.runtime.invoke_output('aiven:index/getOrganizationVpc:getOrganizationVpc', __args__, opts=opts, typ=GetOrganizationVpcResult)
182
+ return __ret__.apply(lambda __response__: GetOrganizationVpcResult(
183
+ cloud_name=pulumi.get(__response__, 'cloud_name'),
184
+ create_time=pulumi.get(__response__, 'create_time'),
185
+ id=pulumi.get(__response__, 'id'),
186
+ network_cidr=pulumi.get(__response__, 'network_cidr'),
187
+ organization_id=pulumi.get(__response__, 'organization_id'),
188
+ organization_vpc_id=pulumi.get(__response__, 'organization_vpc_id'),
189
+ state=pulumi.get(__response__, 'state'),
190
+ update_time=pulumi.get(__response__, 'update_time')))
@@ -150,7 +150,7 @@ class GetProjectResult:
150
150
  @pulumi.getter(name="parentId")
151
151
  def parent_id(self) -> str:
152
152
  """
153
- Link a project to an [organization, organizational unit,](https://aiven.io/docs/platform/concepts/orgs-units-projects) or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
153
+ 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.
154
154
  """
155
155
  return pulumi.get(self, "parent_id")
156
156