pulumi-aiven 6.34.0a1740021642__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 +40 -0
- 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_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 +1 -1
- pulumi_aiven/get_organization_vpc.py +190 -0
- pulumi_aiven/get_project.py +1 -1
- pulumi_aiven/organization_project.py +7 -7
- pulumi_aiven/organization_vpc.py +401 -0
- pulumi_aiven/project.py +7 -7
- pulumi_aiven/pulumi-plugin.json +1 -1
- {pulumi_aiven-6.34.0a1740021642.dist-info → pulumi_aiven-6.35.0.dist-info}/METADATA +1 -1
- {pulumi_aiven-6.34.0a1740021642.dist-info → pulumi_aiven-6.35.0.dist-info}/RECORD +20 -12
- {pulumi_aiven-6.34.0a1740021642.dist-info → pulumi_aiven-6.35.0.dist-info}/WHEEL +0 -0
- {pulumi_aiven-6.34.0a1740021642.dist-info → pulumi_aiven-6.35.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,403 @@
|
|
|
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__ = ['GcpOrgVpcPeeringConnectionArgs', 'GcpOrgVpcPeeringConnection']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class GcpOrgVpcPeeringConnectionArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
gcp_project_id: pulumi.Input[str],
|
|
23
|
+
organization_id: pulumi.Input[str],
|
|
24
|
+
organization_vpc_id: pulumi.Input[str],
|
|
25
|
+
peer_vpc: pulumi.Input[str]):
|
|
26
|
+
"""
|
|
27
|
+
The set of arguments for constructing a GcpOrgVpcPeeringConnection resource.
|
|
28
|
+
:param pulumi.Input[str] gcp_project_id: Google Cloud project ID. Changing this property forces recreation of the resource.
|
|
29
|
+
:param pulumi.Input[str] organization_id: Identifier of the organization.
|
|
30
|
+
:param pulumi.Input[str] organization_vpc_id: Identifier of the organization VPC.
|
|
31
|
+
:param pulumi.Input[str] peer_vpc: Google Cloud VPC network name. Changing this property forces recreation of the resource.
|
|
32
|
+
"""
|
|
33
|
+
pulumi.set(__self__, "gcp_project_id", gcp_project_id)
|
|
34
|
+
pulumi.set(__self__, "organization_id", organization_id)
|
|
35
|
+
pulumi.set(__self__, "organization_vpc_id", organization_vpc_id)
|
|
36
|
+
pulumi.set(__self__, "peer_vpc", peer_vpc)
|
|
37
|
+
|
|
38
|
+
@property
|
|
39
|
+
@pulumi.getter(name="gcpProjectId")
|
|
40
|
+
def gcp_project_id(self) -> pulumi.Input[str]:
|
|
41
|
+
"""
|
|
42
|
+
Google Cloud project ID. Changing this property forces recreation of the resource.
|
|
43
|
+
"""
|
|
44
|
+
return pulumi.get(self, "gcp_project_id")
|
|
45
|
+
|
|
46
|
+
@gcp_project_id.setter
|
|
47
|
+
def gcp_project_id(self, value: pulumi.Input[str]):
|
|
48
|
+
pulumi.set(self, "gcp_project_id", value)
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
@pulumi.getter(name="organizationId")
|
|
52
|
+
def organization_id(self) -> pulumi.Input[str]:
|
|
53
|
+
"""
|
|
54
|
+
Identifier of the organization.
|
|
55
|
+
"""
|
|
56
|
+
return pulumi.get(self, "organization_id")
|
|
57
|
+
|
|
58
|
+
@organization_id.setter
|
|
59
|
+
def organization_id(self, value: pulumi.Input[str]):
|
|
60
|
+
pulumi.set(self, "organization_id", value)
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
@pulumi.getter(name="organizationVpcId")
|
|
64
|
+
def organization_vpc_id(self) -> pulumi.Input[str]:
|
|
65
|
+
"""
|
|
66
|
+
Identifier of the organization VPC.
|
|
67
|
+
"""
|
|
68
|
+
return pulumi.get(self, "organization_vpc_id")
|
|
69
|
+
|
|
70
|
+
@organization_vpc_id.setter
|
|
71
|
+
def organization_vpc_id(self, value: pulumi.Input[str]):
|
|
72
|
+
pulumi.set(self, "organization_vpc_id", value)
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
@pulumi.getter(name="peerVpc")
|
|
76
|
+
def peer_vpc(self) -> pulumi.Input[str]:
|
|
77
|
+
"""
|
|
78
|
+
Google Cloud VPC network name. Changing this property forces recreation of the resource.
|
|
79
|
+
"""
|
|
80
|
+
return pulumi.get(self, "peer_vpc")
|
|
81
|
+
|
|
82
|
+
@peer_vpc.setter
|
|
83
|
+
def peer_vpc(self, value: pulumi.Input[str]):
|
|
84
|
+
pulumi.set(self, "peer_vpc", value)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
@pulumi.input_type
|
|
88
|
+
class _GcpOrgVpcPeeringConnectionState:
|
|
89
|
+
def __init__(__self__, *,
|
|
90
|
+
gcp_project_id: Optional[pulumi.Input[str]] = None,
|
|
91
|
+
organization_id: Optional[pulumi.Input[str]] = None,
|
|
92
|
+
organization_vpc_id: Optional[pulumi.Input[str]] = None,
|
|
93
|
+
peer_vpc: Optional[pulumi.Input[str]] = None,
|
|
94
|
+
self_link: Optional[pulumi.Input[str]] = None,
|
|
95
|
+
state: Optional[pulumi.Input[str]] = None):
|
|
96
|
+
"""
|
|
97
|
+
Input properties used for looking up and filtering GcpOrgVpcPeeringConnection resources.
|
|
98
|
+
:param pulumi.Input[str] gcp_project_id: Google Cloud project ID. Changing this property forces recreation of the resource.
|
|
99
|
+
:param pulumi.Input[str] organization_id: Identifier of the organization.
|
|
100
|
+
:param pulumi.Input[str] organization_vpc_id: Identifier of the organization VPC.
|
|
101
|
+
:param pulumi.Input[str] peer_vpc: Google Cloud VPC network name. Changing this property forces recreation of the resource.
|
|
102
|
+
:param pulumi.Input[str] self_link: Computed Google Cloud network peering link.
|
|
103
|
+
:param pulumi.Input[str] state: State of the peering connection.
|
|
104
|
+
"""
|
|
105
|
+
if gcp_project_id is not None:
|
|
106
|
+
pulumi.set(__self__, "gcp_project_id", gcp_project_id)
|
|
107
|
+
if organization_id is not None:
|
|
108
|
+
pulumi.set(__self__, "organization_id", organization_id)
|
|
109
|
+
if organization_vpc_id is not None:
|
|
110
|
+
pulumi.set(__self__, "organization_vpc_id", organization_vpc_id)
|
|
111
|
+
if peer_vpc is not None:
|
|
112
|
+
pulumi.set(__self__, "peer_vpc", peer_vpc)
|
|
113
|
+
if self_link is not None:
|
|
114
|
+
pulumi.set(__self__, "self_link", self_link)
|
|
115
|
+
if state is not None:
|
|
116
|
+
pulumi.set(__self__, "state", state)
|
|
117
|
+
|
|
118
|
+
@property
|
|
119
|
+
@pulumi.getter(name="gcpProjectId")
|
|
120
|
+
def gcp_project_id(self) -> Optional[pulumi.Input[str]]:
|
|
121
|
+
"""
|
|
122
|
+
Google Cloud project ID. Changing this property forces recreation of the resource.
|
|
123
|
+
"""
|
|
124
|
+
return pulumi.get(self, "gcp_project_id")
|
|
125
|
+
|
|
126
|
+
@gcp_project_id.setter
|
|
127
|
+
def gcp_project_id(self, value: Optional[pulumi.Input[str]]):
|
|
128
|
+
pulumi.set(self, "gcp_project_id", value)
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
@pulumi.getter(name="organizationId")
|
|
132
|
+
def organization_id(self) -> Optional[pulumi.Input[str]]:
|
|
133
|
+
"""
|
|
134
|
+
Identifier of the organization.
|
|
135
|
+
"""
|
|
136
|
+
return pulumi.get(self, "organization_id")
|
|
137
|
+
|
|
138
|
+
@organization_id.setter
|
|
139
|
+
def organization_id(self, value: Optional[pulumi.Input[str]]):
|
|
140
|
+
pulumi.set(self, "organization_id", value)
|
|
141
|
+
|
|
142
|
+
@property
|
|
143
|
+
@pulumi.getter(name="organizationVpcId")
|
|
144
|
+
def organization_vpc_id(self) -> Optional[pulumi.Input[str]]:
|
|
145
|
+
"""
|
|
146
|
+
Identifier of the organization VPC.
|
|
147
|
+
"""
|
|
148
|
+
return pulumi.get(self, "organization_vpc_id")
|
|
149
|
+
|
|
150
|
+
@organization_vpc_id.setter
|
|
151
|
+
def organization_vpc_id(self, value: Optional[pulumi.Input[str]]):
|
|
152
|
+
pulumi.set(self, "organization_vpc_id", value)
|
|
153
|
+
|
|
154
|
+
@property
|
|
155
|
+
@pulumi.getter(name="peerVpc")
|
|
156
|
+
def peer_vpc(self) -> Optional[pulumi.Input[str]]:
|
|
157
|
+
"""
|
|
158
|
+
Google Cloud VPC network name. Changing this property forces recreation of the resource.
|
|
159
|
+
"""
|
|
160
|
+
return pulumi.get(self, "peer_vpc")
|
|
161
|
+
|
|
162
|
+
@peer_vpc.setter
|
|
163
|
+
def peer_vpc(self, value: Optional[pulumi.Input[str]]):
|
|
164
|
+
pulumi.set(self, "peer_vpc", value)
|
|
165
|
+
|
|
166
|
+
@property
|
|
167
|
+
@pulumi.getter(name="selfLink")
|
|
168
|
+
def self_link(self) -> Optional[pulumi.Input[str]]:
|
|
169
|
+
"""
|
|
170
|
+
Computed Google Cloud network peering link.
|
|
171
|
+
"""
|
|
172
|
+
return pulumi.get(self, "self_link")
|
|
173
|
+
|
|
174
|
+
@self_link.setter
|
|
175
|
+
def self_link(self, value: Optional[pulumi.Input[str]]):
|
|
176
|
+
pulumi.set(self, "self_link", value)
|
|
177
|
+
|
|
178
|
+
@property
|
|
179
|
+
@pulumi.getter
|
|
180
|
+
def state(self) -> Optional[pulumi.Input[str]]:
|
|
181
|
+
"""
|
|
182
|
+
State of the peering connection.
|
|
183
|
+
"""
|
|
184
|
+
return pulumi.get(self, "state")
|
|
185
|
+
|
|
186
|
+
@state.setter
|
|
187
|
+
def state(self, value: Optional[pulumi.Input[str]]):
|
|
188
|
+
pulumi.set(self, "state", value)
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
class GcpOrgVpcPeeringConnection(pulumi.CustomResource):
|
|
192
|
+
@overload
|
|
193
|
+
def __init__(__self__,
|
|
194
|
+
resource_name: str,
|
|
195
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
196
|
+
gcp_project_id: Optional[pulumi.Input[str]] = None,
|
|
197
|
+
organization_id: Optional[pulumi.Input[str]] = None,
|
|
198
|
+
organization_vpc_id: Optional[pulumi.Input[str]] = None,
|
|
199
|
+
peer_vpc: Optional[pulumi.Input[str]] = None,
|
|
200
|
+
__props__=None):
|
|
201
|
+
"""
|
|
202
|
+
Creates and manages a Google Cloud VPC peering connection.
|
|
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_aiven_organization["id"],
|
|
215
|
+
cloud_name="google-europe-west10",
|
|
216
|
+
network_cidr="10.0.0.0/24")
|
|
217
|
+
example = aiven.GcpOrgVpcPeeringConnection("example",
|
|
218
|
+
organization_id=example_vpc.organization_id,
|
|
219
|
+
organization_vpc_id=example_vpc.organization_vpc_id,
|
|
220
|
+
gcp_project_id="my-gcp-project-123",
|
|
221
|
+
peer_vpc="my-vpc-network")
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
## Import
|
|
225
|
+
|
|
226
|
+
```sh
|
|
227
|
+
$ pulumi import aiven:index/gcpOrgVpcPeeringConnection:GcpOrgVpcPeeringConnection example ORGANIZATION_ID/ORGANIZATION_VPC_ID/GCP_PROJECT_ID/VPC_NAME
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
:param str resource_name: The name of the resource.
|
|
231
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
232
|
+
:param pulumi.Input[str] gcp_project_id: Google Cloud project ID. Changing this property forces recreation of the resource.
|
|
233
|
+
:param pulumi.Input[str] organization_id: Identifier of the organization.
|
|
234
|
+
:param pulumi.Input[str] organization_vpc_id: Identifier of the organization VPC.
|
|
235
|
+
:param pulumi.Input[str] peer_vpc: Google Cloud VPC network name. Changing this property forces recreation of the resource.
|
|
236
|
+
"""
|
|
237
|
+
...
|
|
238
|
+
@overload
|
|
239
|
+
def __init__(__self__,
|
|
240
|
+
resource_name: str,
|
|
241
|
+
args: GcpOrgVpcPeeringConnectionArgs,
|
|
242
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
243
|
+
"""
|
|
244
|
+
Creates and manages a Google Cloud VPC peering connection.
|
|
245
|
+
|
|
246
|
+
**This resource is in the beta stage and may change without notice.** Set
|
|
247
|
+
the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
|
|
248
|
+
|
|
249
|
+
## Example Usage
|
|
250
|
+
|
|
251
|
+
```python
|
|
252
|
+
import pulumi
|
|
253
|
+
import pulumi_aiven as aiven
|
|
254
|
+
|
|
255
|
+
example_vpc = aiven.OrganizationVpc("example_vpc",
|
|
256
|
+
organization_id=example_aiven_organization["id"],
|
|
257
|
+
cloud_name="google-europe-west10",
|
|
258
|
+
network_cidr="10.0.0.0/24")
|
|
259
|
+
example = aiven.GcpOrgVpcPeeringConnection("example",
|
|
260
|
+
organization_id=example_vpc.organization_id,
|
|
261
|
+
organization_vpc_id=example_vpc.organization_vpc_id,
|
|
262
|
+
gcp_project_id="my-gcp-project-123",
|
|
263
|
+
peer_vpc="my-vpc-network")
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
## Import
|
|
267
|
+
|
|
268
|
+
```sh
|
|
269
|
+
$ pulumi import aiven:index/gcpOrgVpcPeeringConnection:GcpOrgVpcPeeringConnection example ORGANIZATION_ID/ORGANIZATION_VPC_ID/GCP_PROJECT_ID/VPC_NAME
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
:param str resource_name: The name of the resource.
|
|
273
|
+
:param GcpOrgVpcPeeringConnectionArgs args: The arguments to use to populate this resource's properties.
|
|
274
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
275
|
+
"""
|
|
276
|
+
...
|
|
277
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
278
|
+
resource_args, opts = _utilities.get_resource_args_opts(GcpOrgVpcPeeringConnectionArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
279
|
+
if resource_args is not None:
|
|
280
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
281
|
+
else:
|
|
282
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
283
|
+
|
|
284
|
+
def _internal_init(__self__,
|
|
285
|
+
resource_name: str,
|
|
286
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
287
|
+
gcp_project_id: Optional[pulumi.Input[str]] = None,
|
|
288
|
+
organization_id: Optional[pulumi.Input[str]] = None,
|
|
289
|
+
organization_vpc_id: Optional[pulumi.Input[str]] = None,
|
|
290
|
+
peer_vpc: Optional[pulumi.Input[str]] = None,
|
|
291
|
+
__props__=None):
|
|
292
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
293
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
294
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
295
|
+
if opts.id is None:
|
|
296
|
+
if __props__ is not None:
|
|
297
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
298
|
+
__props__ = GcpOrgVpcPeeringConnectionArgs.__new__(GcpOrgVpcPeeringConnectionArgs)
|
|
299
|
+
|
|
300
|
+
if gcp_project_id is None and not opts.urn:
|
|
301
|
+
raise TypeError("Missing required property 'gcp_project_id'")
|
|
302
|
+
__props__.__dict__["gcp_project_id"] = gcp_project_id
|
|
303
|
+
if organization_id is None and not opts.urn:
|
|
304
|
+
raise TypeError("Missing required property 'organization_id'")
|
|
305
|
+
__props__.__dict__["organization_id"] = organization_id
|
|
306
|
+
if organization_vpc_id is None and not opts.urn:
|
|
307
|
+
raise TypeError("Missing required property 'organization_vpc_id'")
|
|
308
|
+
__props__.__dict__["organization_vpc_id"] = organization_vpc_id
|
|
309
|
+
if peer_vpc is None and not opts.urn:
|
|
310
|
+
raise TypeError("Missing required property 'peer_vpc'")
|
|
311
|
+
__props__.__dict__["peer_vpc"] = peer_vpc
|
|
312
|
+
__props__.__dict__["self_link"] = None
|
|
313
|
+
__props__.__dict__["state"] = None
|
|
314
|
+
super(GcpOrgVpcPeeringConnection, __self__).__init__(
|
|
315
|
+
'aiven:index/gcpOrgVpcPeeringConnection:GcpOrgVpcPeeringConnection',
|
|
316
|
+
resource_name,
|
|
317
|
+
__props__,
|
|
318
|
+
opts)
|
|
319
|
+
|
|
320
|
+
@staticmethod
|
|
321
|
+
def get(resource_name: str,
|
|
322
|
+
id: pulumi.Input[str],
|
|
323
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
324
|
+
gcp_project_id: Optional[pulumi.Input[str]] = None,
|
|
325
|
+
organization_id: Optional[pulumi.Input[str]] = None,
|
|
326
|
+
organization_vpc_id: Optional[pulumi.Input[str]] = None,
|
|
327
|
+
peer_vpc: Optional[pulumi.Input[str]] = None,
|
|
328
|
+
self_link: Optional[pulumi.Input[str]] = None,
|
|
329
|
+
state: Optional[pulumi.Input[str]] = None) -> 'GcpOrgVpcPeeringConnection':
|
|
330
|
+
"""
|
|
331
|
+
Get an existing GcpOrgVpcPeeringConnection resource's state with the given name, id, and optional extra
|
|
332
|
+
properties used to qualify the lookup.
|
|
333
|
+
|
|
334
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
335
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
336
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
337
|
+
:param pulumi.Input[str] gcp_project_id: Google Cloud project ID. Changing this property forces recreation of the resource.
|
|
338
|
+
:param pulumi.Input[str] organization_id: Identifier of the organization.
|
|
339
|
+
:param pulumi.Input[str] organization_vpc_id: Identifier of the organization VPC.
|
|
340
|
+
:param pulumi.Input[str] peer_vpc: Google Cloud VPC network name. Changing this property forces recreation of the resource.
|
|
341
|
+
:param pulumi.Input[str] self_link: Computed Google Cloud network peering link.
|
|
342
|
+
:param pulumi.Input[str] state: State of the peering connection.
|
|
343
|
+
"""
|
|
344
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
345
|
+
|
|
346
|
+
__props__ = _GcpOrgVpcPeeringConnectionState.__new__(_GcpOrgVpcPeeringConnectionState)
|
|
347
|
+
|
|
348
|
+
__props__.__dict__["gcp_project_id"] = gcp_project_id
|
|
349
|
+
__props__.__dict__["organization_id"] = organization_id
|
|
350
|
+
__props__.__dict__["organization_vpc_id"] = organization_vpc_id
|
|
351
|
+
__props__.__dict__["peer_vpc"] = peer_vpc
|
|
352
|
+
__props__.__dict__["self_link"] = self_link
|
|
353
|
+
__props__.__dict__["state"] = state
|
|
354
|
+
return GcpOrgVpcPeeringConnection(resource_name, opts=opts, __props__=__props__)
|
|
355
|
+
|
|
356
|
+
@property
|
|
357
|
+
@pulumi.getter(name="gcpProjectId")
|
|
358
|
+
def gcp_project_id(self) -> pulumi.Output[str]:
|
|
359
|
+
"""
|
|
360
|
+
Google Cloud project ID. Changing this property forces recreation of the resource.
|
|
361
|
+
"""
|
|
362
|
+
return pulumi.get(self, "gcp_project_id")
|
|
363
|
+
|
|
364
|
+
@property
|
|
365
|
+
@pulumi.getter(name="organizationId")
|
|
366
|
+
def organization_id(self) -> pulumi.Output[str]:
|
|
367
|
+
"""
|
|
368
|
+
Identifier of the organization.
|
|
369
|
+
"""
|
|
370
|
+
return pulumi.get(self, "organization_id")
|
|
371
|
+
|
|
372
|
+
@property
|
|
373
|
+
@pulumi.getter(name="organizationVpcId")
|
|
374
|
+
def organization_vpc_id(self) -> pulumi.Output[str]:
|
|
375
|
+
"""
|
|
376
|
+
Identifier of the organization VPC.
|
|
377
|
+
"""
|
|
378
|
+
return pulumi.get(self, "organization_vpc_id")
|
|
379
|
+
|
|
380
|
+
@property
|
|
381
|
+
@pulumi.getter(name="peerVpc")
|
|
382
|
+
def peer_vpc(self) -> pulumi.Output[str]:
|
|
383
|
+
"""
|
|
384
|
+
Google Cloud VPC network name. Changing this property forces recreation of the resource.
|
|
385
|
+
"""
|
|
386
|
+
return pulumi.get(self, "peer_vpc")
|
|
387
|
+
|
|
388
|
+
@property
|
|
389
|
+
@pulumi.getter(name="selfLink")
|
|
390
|
+
def self_link(self) -> pulumi.Output[str]:
|
|
391
|
+
"""
|
|
392
|
+
Computed Google Cloud network peering link.
|
|
393
|
+
"""
|
|
394
|
+
return pulumi.get(self, "self_link")
|
|
395
|
+
|
|
396
|
+
@property
|
|
397
|
+
@pulumi.getter
|
|
398
|
+
def state(self) -> pulumi.Output[str]:
|
|
399
|
+
"""
|
|
400
|
+
State of the peering connection.
|
|
401
|
+
"""
|
|
402
|
+
return pulumi.get(self, "state")
|
|
403
|
+
|
|
@@ -0,0 +1,222 @@
|
|
|
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
|
+
'GetAwsOrgVpcPeeringConnectionResult',
|
|
19
|
+
'AwaitableGetAwsOrgVpcPeeringConnectionResult',
|
|
20
|
+
'get_aws_org_vpc_peering_connection',
|
|
21
|
+
'get_aws_org_vpc_peering_connection_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class GetAwsOrgVpcPeeringConnectionResult:
|
|
26
|
+
"""
|
|
27
|
+
A collection of values returned by getAwsOrgVpcPeeringConnection.
|
|
28
|
+
"""
|
|
29
|
+
def __init__(__self__, aws_account_id=None, aws_vpc_id=None, aws_vpc_peering_connection_id=None, aws_vpc_region=None, id=None, organization_id=None, organization_vpc_id=None, peering_connection_id=None, state=None):
|
|
30
|
+
if aws_account_id and not isinstance(aws_account_id, str):
|
|
31
|
+
raise TypeError("Expected argument 'aws_account_id' to be a str")
|
|
32
|
+
pulumi.set(__self__, "aws_account_id", aws_account_id)
|
|
33
|
+
if aws_vpc_id and not isinstance(aws_vpc_id, str):
|
|
34
|
+
raise TypeError("Expected argument 'aws_vpc_id' to be a str")
|
|
35
|
+
pulumi.set(__self__, "aws_vpc_id", aws_vpc_id)
|
|
36
|
+
if aws_vpc_peering_connection_id and not isinstance(aws_vpc_peering_connection_id, str):
|
|
37
|
+
raise TypeError("Expected argument 'aws_vpc_peering_connection_id' to be a str")
|
|
38
|
+
pulumi.set(__self__, "aws_vpc_peering_connection_id", aws_vpc_peering_connection_id)
|
|
39
|
+
if aws_vpc_region and not isinstance(aws_vpc_region, str):
|
|
40
|
+
raise TypeError("Expected argument 'aws_vpc_region' to be a str")
|
|
41
|
+
pulumi.set(__self__, "aws_vpc_region", aws_vpc_region)
|
|
42
|
+
if id and not isinstance(id, str):
|
|
43
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
44
|
+
pulumi.set(__self__, "id", id)
|
|
45
|
+
if organization_id and not isinstance(organization_id, str):
|
|
46
|
+
raise TypeError("Expected argument 'organization_id' to be a str")
|
|
47
|
+
pulumi.set(__self__, "organization_id", organization_id)
|
|
48
|
+
if organization_vpc_id and not isinstance(organization_vpc_id, str):
|
|
49
|
+
raise TypeError("Expected argument 'organization_vpc_id' to be a str")
|
|
50
|
+
pulumi.set(__self__, "organization_vpc_id", organization_vpc_id)
|
|
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
|
+
|
|
58
|
+
@property
|
|
59
|
+
@pulumi.getter(name="awsAccountId")
|
|
60
|
+
def aws_account_id(self) -> str:
|
|
61
|
+
"""
|
|
62
|
+
AWS account ID. Changing this property forces recreation of the resource.
|
|
63
|
+
"""
|
|
64
|
+
return pulumi.get(self, "aws_account_id")
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
@pulumi.getter(name="awsVpcId")
|
|
68
|
+
def aws_vpc_id(self) -> str:
|
|
69
|
+
"""
|
|
70
|
+
AWS VPC ID. Changing this property forces recreation of the resource.
|
|
71
|
+
"""
|
|
72
|
+
return pulumi.get(self, "aws_vpc_id")
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
@pulumi.getter(name="awsVpcPeeringConnectionId")
|
|
76
|
+
def aws_vpc_peering_connection_id(self) -> str:
|
|
77
|
+
"""
|
|
78
|
+
The ID of the AWS VPC peering connection.
|
|
79
|
+
"""
|
|
80
|
+
return pulumi.get(self, "aws_vpc_peering_connection_id")
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
@pulumi.getter(name="awsVpcRegion")
|
|
84
|
+
def aws_vpc_region(self) -> str:
|
|
85
|
+
"""
|
|
86
|
+
The AWS region of the peered VPC. For example, `eu-central-1`.
|
|
87
|
+
"""
|
|
88
|
+
return pulumi.get(self, "aws_vpc_region")
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
@pulumi.getter
|
|
92
|
+
def id(self) -> str:
|
|
93
|
+
"""
|
|
94
|
+
The provider-assigned unique ID for this managed resource.
|
|
95
|
+
"""
|
|
96
|
+
return pulumi.get(self, "id")
|
|
97
|
+
|
|
98
|
+
@property
|
|
99
|
+
@pulumi.getter(name="organizationId")
|
|
100
|
+
def organization_id(self) -> str:
|
|
101
|
+
"""
|
|
102
|
+
Identifier of the organization.
|
|
103
|
+
"""
|
|
104
|
+
return pulumi.get(self, "organization_id")
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
@pulumi.getter(name="organizationVpcId")
|
|
108
|
+
def organization_vpc_id(self) -> str:
|
|
109
|
+
"""
|
|
110
|
+
Identifier of the organization VPC.
|
|
111
|
+
"""
|
|
112
|
+
return pulumi.get(self, "organization_vpc_id")
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
@pulumi.getter(name="peeringConnectionId")
|
|
116
|
+
def peering_connection_id(self) -> str:
|
|
117
|
+
"""
|
|
118
|
+
The ID of the peering connection.
|
|
119
|
+
"""
|
|
120
|
+
return pulumi.get(self, "peering_connection_id")
|
|
121
|
+
|
|
122
|
+
@property
|
|
123
|
+
@pulumi.getter
|
|
124
|
+
def state(self) -> str:
|
|
125
|
+
"""
|
|
126
|
+
State of the peering connection. The possible values are `ACTIVE`, `APPROVED`, `APPROVED_PEER_REQUESTED`, `DELETED`, `DELETED_BY_PEER`, `DELETING`, `ERROR`, `INVALID_SPECIFICATION`, `PENDING_PEER` and `REJECTED_BY_PEER`.
|
|
127
|
+
"""
|
|
128
|
+
return pulumi.get(self, "state")
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
class AwaitableGetAwsOrgVpcPeeringConnectionResult(GetAwsOrgVpcPeeringConnectionResult):
|
|
132
|
+
# pylint: disable=using-constant-test
|
|
133
|
+
def __await__(self):
|
|
134
|
+
if False:
|
|
135
|
+
yield self
|
|
136
|
+
return GetAwsOrgVpcPeeringConnectionResult(
|
|
137
|
+
aws_account_id=self.aws_account_id,
|
|
138
|
+
aws_vpc_id=self.aws_vpc_id,
|
|
139
|
+
aws_vpc_peering_connection_id=self.aws_vpc_peering_connection_id,
|
|
140
|
+
aws_vpc_region=self.aws_vpc_region,
|
|
141
|
+
id=self.id,
|
|
142
|
+
organization_id=self.organization_id,
|
|
143
|
+
organization_vpc_id=self.organization_vpc_id,
|
|
144
|
+
peering_connection_id=self.peering_connection_id,
|
|
145
|
+
state=self.state)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
def get_aws_org_vpc_peering_connection(aws_account_id: Optional[str] = None,
|
|
149
|
+
aws_vpc_id: Optional[str] = None,
|
|
150
|
+
aws_vpc_region: Optional[str] = None,
|
|
151
|
+
organization_id: Optional[str] = None,
|
|
152
|
+
organization_vpc_id: Optional[str] = None,
|
|
153
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAwsOrgVpcPeeringConnectionResult:
|
|
154
|
+
"""
|
|
155
|
+
Gets information about an AWS VPC peering connection.
|
|
156
|
+
|
|
157
|
+
**This resource is in the beta stage and may change without notice.** Set
|
|
158
|
+
the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:param str aws_account_id: AWS account ID. Changing this property forces recreation of the resource.
|
|
162
|
+
:param str aws_vpc_id: AWS VPC ID. Changing this property forces recreation of the resource.
|
|
163
|
+
:param str aws_vpc_region: The AWS region of the peered VPC. For example, `eu-central-1`.
|
|
164
|
+
:param str organization_id: Identifier of the organization.
|
|
165
|
+
:param str organization_vpc_id: Identifier of the organization VPC.
|
|
166
|
+
"""
|
|
167
|
+
__args__ = dict()
|
|
168
|
+
__args__['awsAccountId'] = aws_account_id
|
|
169
|
+
__args__['awsVpcId'] = aws_vpc_id
|
|
170
|
+
__args__['awsVpcRegion'] = aws_vpc_region
|
|
171
|
+
__args__['organizationId'] = organization_id
|
|
172
|
+
__args__['organizationVpcId'] = organization_vpc_id
|
|
173
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
174
|
+
__ret__ = pulumi.runtime.invoke('aiven:index/getAwsOrgVpcPeeringConnection:getAwsOrgVpcPeeringConnection', __args__, opts=opts, typ=GetAwsOrgVpcPeeringConnectionResult).value
|
|
175
|
+
|
|
176
|
+
return AwaitableGetAwsOrgVpcPeeringConnectionResult(
|
|
177
|
+
aws_account_id=pulumi.get(__ret__, 'aws_account_id'),
|
|
178
|
+
aws_vpc_id=pulumi.get(__ret__, 'aws_vpc_id'),
|
|
179
|
+
aws_vpc_peering_connection_id=pulumi.get(__ret__, 'aws_vpc_peering_connection_id'),
|
|
180
|
+
aws_vpc_region=pulumi.get(__ret__, 'aws_vpc_region'),
|
|
181
|
+
id=pulumi.get(__ret__, 'id'),
|
|
182
|
+
organization_id=pulumi.get(__ret__, 'organization_id'),
|
|
183
|
+
organization_vpc_id=pulumi.get(__ret__, 'organization_vpc_id'),
|
|
184
|
+
peering_connection_id=pulumi.get(__ret__, 'peering_connection_id'),
|
|
185
|
+
state=pulumi.get(__ret__, 'state'))
|
|
186
|
+
def get_aws_org_vpc_peering_connection_output(aws_account_id: Optional[pulumi.Input[str]] = None,
|
|
187
|
+
aws_vpc_id: Optional[pulumi.Input[str]] = None,
|
|
188
|
+
aws_vpc_region: Optional[pulumi.Input[str]] = None,
|
|
189
|
+
organization_id: Optional[pulumi.Input[str]] = None,
|
|
190
|
+
organization_vpc_id: Optional[pulumi.Input[str]] = None,
|
|
191
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAwsOrgVpcPeeringConnectionResult]:
|
|
192
|
+
"""
|
|
193
|
+
Gets information about an AWS VPC peering connection.
|
|
194
|
+
|
|
195
|
+
**This resource is in the beta stage and may change without notice.** Set
|
|
196
|
+
the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
:param str aws_account_id: AWS account ID. Changing this property forces recreation of the resource.
|
|
200
|
+
:param str aws_vpc_id: AWS VPC ID. Changing this property forces recreation of the resource.
|
|
201
|
+
:param str aws_vpc_region: The AWS region of the peered VPC. For example, `eu-central-1`.
|
|
202
|
+
:param str organization_id: Identifier of the organization.
|
|
203
|
+
:param str organization_vpc_id: Identifier of the organization VPC.
|
|
204
|
+
"""
|
|
205
|
+
__args__ = dict()
|
|
206
|
+
__args__['awsAccountId'] = aws_account_id
|
|
207
|
+
__args__['awsVpcId'] = aws_vpc_id
|
|
208
|
+
__args__['awsVpcRegion'] = aws_vpc_region
|
|
209
|
+
__args__['organizationId'] = organization_id
|
|
210
|
+
__args__['organizationVpcId'] = organization_vpc_id
|
|
211
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
212
|
+
__ret__ = pulumi.runtime.invoke_output('aiven:index/getAwsOrgVpcPeeringConnection:getAwsOrgVpcPeeringConnection', __args__, opts=opts, typ=GetAwsOrgVpcPeeringConnectionResult)
|
|
213
|
+
return __ret__.apply(lambda __response__: GetAwsOrgVpcPeeringConnectionResult(
|
|
214
|
+
aws_account_id=pulumi.get(__response__, 'aws_account_id'),
|
|
215
|
+
aws_vpc_id=pulumi.get(__response__, 'aws_vpc_id'),
|
|
216
|
+
aws_vpc_peering_connection_id=pulumi.get(__response__, 'aws_vpc_peering_connection_id'),
|
|
217
|
+
aws_vpc_region=pulumi.get(__response__, 'aws_vpc_region'),
|
|
218
|
+
id=pulumi.get(__response__, 'id'),
|
|
219
|
+
organization_id=pulumi.get(__response__, 'organization_id'),
|
|
220
|
+
organization_vpc_id=pulumi.get(__response__, 'organization_vpc_id'),
|
|
221
|
+
peering_connection_id=pulumi.get(__response__, 'peering_connection_id'),
|
|
222
|
+
state=pulumi.get(__response__, 'state')))
|