pulumi-aiven 6.34.0a1739941685__py3-none-any.whl → 6.35.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 +50 -0
- pulumi_aiven/_inputs.py +52 -0
- pulumi_aiven/account.py +2 -4
- pulumi_aiven/account_authentication.py +2 -4
- 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/gcp_org_vpc_peering_connection.py +403 -0
- pulumi_aiven/get_account.py +2 -4
- pulumi_aiven/get_account_authentication.py +2 -4
- 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 +1 -1
- pulumi_aiven/get_gcp_org_vpc_peering_connection.py +188 -0
- pulumi_aiven/get_organization_project.py +197 -0
- pulumi_aiven/get_organization_vpc.py +190 -0
- pulumi_aiven/get_project.py +1 -1
- pulumi_aiven/get_project_user.py +8 -6
- pulumi_aiven/organization_project.py +440 -0
- pulumi_aiven/organization_vpc.py +401 -0
- pulumi_aiven/outputs.py +60 -0
- pulumi_aiven/project.py +7 -7
- pulumi_aiven/project_user.py +6 -12
- pulumi_aiven/pulumi-plugin.json +1 -1
- {pulumi_aiven-6.34.0a1739941685.dist-info → pulumi_aiven-6.35.0.dist-info}/METADATA +1 -1
- {pulumi_aiven-6.34.0a1739941685.dist-info → pulumi_aiven-6.35.0.dist-info}/RECORD +28 -18
- {pulumi_aiven-6.34.0a1739941685.dist-info → pulumi_aiven-6.35.0.dist-info}/WHEEL +0 -0
- {pulumi_aiven-6.34.0a1739941685.dist-info → pulumi_aiven-6.35.0.dist-info}/top_level.txt +0 -0
|
@@ -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
|
|
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')))
|
|
@@ -0,0 +1,197 @@
|
|
|
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
|
+
from . import outputs
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetOrganizationProjectResult',
|
|
20
|
+
'AwaitableGetOrganizationProjectResult',
|
|
21
|
+
'get_organization_project',
|
|
22
|
+
'get_organization_project_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetOrganizationProjectResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getOrganizationProject.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, billing_group_id=None, id=None, organization_id=None, parent_id=None, project_id=None, tags=None, technical_emails=None):
|
|
31
|
+
if billing_group_id and not isinstance(billing_group_id, str):
|
|
32
|
+
raise TypeError("Expected argument 'billing_group_id' to be a str")
|
|
33
|
+
pulumi.set(__self__, "billing_group_id", billing_group_id)
|
|
34
|
+
if id and not isinstance(id, str):
|
|
35
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
36
|
+
pulumi.set(__self__, "id", id)
|
|
37
|
+
if organization_id and not isinstance(organization_id, str):
|
|
38
|
+
raise TypeError("Expected argument 'organization_id' to be a str")
|
|
39
|
+
pulumi.set(__self__, "organization_id", organization_id)
|
|
40
|
+
if parent_id and not isinstance(parent_id, str):
|
|
41
|
+
raise TypeError("Expected argument 'parent_id' to be a str")
|
|
42
|
+
pulumi.set(__self__, "parent_id", parent_id)
|
|
43
|
+
if project_id and not isinstance(project_id, str):
|
|
44
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
45
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
46
|
+
if tags and not isinstance(tags, list):
|
|
47
|
+
raise TypeError("Expected argument 'tags' to be a list")
|
|
48
|
+
pulumi.set(__self__, "tags", tags)
|
|
49
|
+
if technical_emails and not isinstance(technical_emails, list):
|
|
50
|
+
raise TypeError("Expected argument 'technical_emails' to be a list")
|
|
51
|
+
pulumi.set(__self__, "technical_emails", technical_emails)
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
@pulumi.getter(name="billingGroupId")
|
|
55
|
+
def billing_group_id(self) -> str:
|
|
56
|
+
"""
|
|
57
|
+
Billing group ID to assign to the project.
|
|
58
|
+
"""
|
|
59
|
+
return pulumi.get(self, "billing_group_id")
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
@pulumi.getter
|
|
63
|
+
def id(self) -> str:
|
|
64
|
+
"""
|
|
65
|
+
The provider-assigned unique ID for this managed resource.
|
|
66
|
+
"""
|
|
67
|
+
return pulumi.get(self, "id")
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
@pulumi.getter(name="organizationId")
|
|
71
|
+
def organization_id(self) -> str:
|
|
72
|
+
"""
|
|
73
|
+
ID of an organization. Changing this property forces recreation of the resource.
|
|
74
|
+
"""
|
|
75
|
+
return pulumi.get(self, "organization_id")
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
@pulumi.getter(name="parentId")
|
|
79
|
+
def parent_id(self) -> str:
|
|
80
|
+
"""
|
|
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
|
+
"""
|
|
83
|
+
return pulumi.get(self, "parent_id")
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
@pulumi.getter(name="projectId")
|
|
87
|
+
def project_id(self) -> str:
|
|
88
|
+
"""
|
|
89
|
+
Unique identifier for the project that also serves as the project name.
|
|
90
|
+
"""
|
|
91
|
+
return pulumi.get(self, "project_id")
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
@pulumi.getter
|
|
95
|
+
def tags(self) -> Sequence['outputs.GetOrganizationProjectTagResult']:
|
|
96
|
+
"""
|
|
97
|
+
Tags are key-value pairs that allow you to categorize projects.
|
|
98
|
+
"""
|
|
99
|
+
return pulumi.get(self, "tags")
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
@pulumi.getter(name="technicalEmails")
|
|
103
|
+
def technical_emails(self) -> Sequence[str]:
|
|
104
|
+
"""
|
|
105
|
+
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.
|
|
106
|
+
"""
|
|
107
|
+
return pulumi.get(self, "technical_emails")
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
class AwaitableGetOrganizationProjectResult(GetOrganizationProjectResult):
|
|
111
|
+
# pylint: disable=using-constant-test
|
|
112
|
+
def __await__(self):
|
|
113
|
+
if False:
|
|
114
|
+
yield self
|
|
115
|
+
return GetOrganizationProjectResult(
|
|
116
|
+
billing_group_id=self.billing_group_id,
|
|
117
|
+
id=self.id,
|
|
118
|
+
organization_id=self.organization_id,
|
|
119
|
+
parent_id=self.parent_id,
|
|
120
|
+
project_id=self.project_id,
|
|
121
|
+
tags=self.tags,
|
|
122
|
+
technical_emails=self.technical_emails)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
def get_organization_project(organization_id: Optional[str] = None,
|
|
126
|
+
project_id: Optional[str] = None,
|
|
127
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetOrganizationProjectResult:
|
|
128
|
+
"""
|
|
129
|
+
Gets information about an Aiven project.
|
|
130
|
+
|
|
131
|
+
**This resource is in the beta stage and may change without notice.** Set
|
|
132
|
+
the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
|
|
133
|
+
|
|
134
|
+
## Example Usage
|
|
135
|
+
|
|
136
|
+
```python
|
|
137
|
+
import pulumi
|
|
138
|
+
import pulumi_aiven as aiven
|
|
139
|
+
|
|
140
|
+
example = aiven.get_organization_project(project_id=foo["projectId"],
|
|
141
|
+
organization_id=foo["organizationId"])
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
:param str organization_id: ID of an organization. Changing this property forces recreation of the resource.
|
|
146
|
+
:param str project_id: Unique identifier for the project that also serves as the project name.
|
|
147
|
+
"""
|
|
148
|
+
__args__ = dict()
|
|
149
|
+
__args__['organizationId'] = organization_id
|
|
150
|
+
__args__['projectId'] = project_id
|
|
151
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
152
|
+
__ret__ = pulumi.runtime.invoke('aiven:index/getOrganizationProject:getOrganizationProject', __args__, opts=opts, typ=GetOrganizationProjectResult).value
|
|
153
|
+
|
|
154
|
+
return AwaitableGetOrganizationProjectResult(
|
|
155
|
+
billing_group_id=pulumi.get(__ret__, 'billing_group_id'),
|
|
156
|
+
id=pulumi.get(__ret__, 'id'),
|
|
157
|
+
organization_id=pulumi.get(__ret__, 'organization_id'),
|
|
158
|
+
parent_id=pulumi.get(__ret__, 'parent_id'),
|
|
159
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
160
|
+
tags=pulumi.get(__ret__, 'tags'),
|
|
161
|
+
technical_emails=pulumi.get(__ret__, 'technical_emails'))
|
|
162
|
+
def get_organization_project_output(organization_id: Optional[pulumi.Input[str]] = None,
|
|
163
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
164
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetOrganizationProjectResult]:
|
|
165
|
+
"""
|
|
166
|
+
Gets information about an Aiven project.
|
|
167
|
+
|
|
168
|
+
**This resource is in the beta stage and may change without notice.** Set
|
|
169
|
+
the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
|
|
170
|
+
|
|
171
|
+
## Example Usage
|
|
172
|
+
|
|
173
|
+
```python
|
|
174
|
+
import pulumi
|
|
175
|
+
import pulumi_aiven as aiven
|
|
176
|
+
|
|
177
|
+
example = aiven.get_organization_project(project_id=foo["projectId"],
|
|
178
|
+
organization_id=foo["organizationId"])
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:param str organization_id: ID of an organization. Changing this property forces recreation of the resource.
|
|
183
|
+
:param str project_id: Unique identifier for the project that also serves as the project name.
|
|
184
|
+
"""
|
|
185
|
+
__args__ = dict()
|
|
186
|
+
__args__['organizationId'] = organization_id
|
|
187
|
+
__args__['projectId'] = project_id
|
|
188
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
189
|
+
__ret__ = pulumi.runtime.invoke_output('aiven:index/getOrganizationProject:getOrganizationProject', __args__, opts=opts, typ=GetOrganizationProjectResult)
|
|
190
|
+
return __ret__.apply(lambda __response__: GetOrganizationProjectResult(
|
|
191
|
+
billing_group_id=pulumi.get(__response__, 'billing_group_id'),
|
|
192
|
+
id=pulumi.get(__response__, 'id'),
|
|
193
|
+
organization_id=pulumi.get(__response__, 'organization_id'),
|
|
194
|
+
parent_id=pulumi.get(__response__, 'parent_id'),
|
|
195
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
196
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
197
|
+
technical_emails=pulumi.get(__response__, 'technical_emails')))
|