pulumi-cloudamqp 3.16.0a1695822250__py3-none-any.whl → 3.17.0a1696359693__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-cloudamqp might be problematic. Click here for more details.
- pulumi_cloudamqp/_inputs.py +49 -10
- pulumi_cloudamqp/alarm.py +85 -23
- pulumi_cloudamqp/config/vars.py +1 -1
- pulumi_cloudamqp/custom_domain.py +31 -5
- pulumi_cloudamqp/extra_disk_size.py +52 -12
- pulumi_cloudamqp/get_account.py +43 -1
- pulumi_cloudamqp/get_account_vpcs.py +44 -1
- pulumi_cloudamqp/get_alarm.py +1 -1
- pulumi_cloudamqp/get_credentials.py +1 -1
- pulumi_cloudamqp/get_instance.py +1 -1
- pulumi_cloudamqp/get_nodes.py +1 -1
- pulumi_cloudamqp/get_notification.py +1 -1
- pulumi_cloudamqp/get_plugins.py +1 -1
- pulumi_cloudamqp/get_plugins_community.py +1 -1
- pulumi_cloudamqp/get_upgradable_versions.py +1 -1
- pulumi_cloudamqp/get_vpc_gcp_info.py +1 -1
- pulumi_cloudamqp/get_vpc_info.py +1 -1
- pulumi_cloudamqp/instance.py +109 -31
- pulumi_cloudamqp/integration_aws_eventbridge.py +58 -14
- pulumi_cloudamqp/integration_log.py +121 -35
- pulumi_cloudamqp/integration_metric.py +139 -47
- pulumi_cloudamqp/node_actions.py +40 -8
- pulumi_cloudamqp/notification.py +49 -11
- pulumi_cloudamqp/outputs.py +165 -37
- pulumi_cloudamqp/plugin.py +43 -9
- pulumi_cloudamqp/plugin_community.py +43 -9
- pulumi_cloudamqp/privatelink_aws.py +52 -12
- pulumi_cloudamqp/privatelink_azure.py +52 -12
- pulumi_cloudamqp/provider.py +21 -4
- pulumi_cloudamqp/rabbit_configuration.py +91 -25
- pulumi_cloudamqp/security_firewall.py +43 -9
- pulumi_cloudamqp/upgrade_rabbitmq.py +25 -3
- pulumi_cloudamqp/vpc.py +46 -10
- pulumi_cloudamqp/vpc_gcp_peering.py +52 -12
- pulumi_cloudamqp/vpc_peering.py +52 -12
- pulumi_cloudamqp/webhook.py +55 -13
- {pulumi_cloudamqp-3.16.0a1695822250.dist-info → pulumi_cloudamqp-3.17.0a1696359693.dist-info}/METADATA +1 -1
- pulumi_cloudamqp-3.17.0a1696359693.dist-info/RECORD +45 -0
- pulumi_cloudamqp-3.16.0a1695822250.dist-info/RECORD +0 -45
- {pulumi_cloudamqp-3.16.0a1695822250.dist-info → pulumi_cloudamqp-3.17.0a1696359693.dist-info}/WHEEL +0 -0
- {pulumi_cloudamqp-3.16.0a1695822250.dist-info → pulumi_cloudamqp-3.17.0a1696359693.dist-info}/top_level.txt +0 -0
pulumi_cloudamqp/provider.py
CHANGED
|
@@ -6,7 +6,7 @@ import copy
|
|
|
6
6
|
import warnings
|
|
7
7
|
import pulumi
|
|
8
8
|
import pulumi.runtime
|
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
9
|
+
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
|
|
10
10
|
from . import _utilities
|
|
11
11
|
|
|
12
12
|
__all__ = ['ProviderArgs', 'Provider']
|
|
@@ -23,11 +23,24 @@ class ProviderArgs:
|
|
|
23
23
|
:param pulumi.Input[str] baseurl: Base URL to CloudAMQP Customer website
|
|
24
24
|
:param pulumi.Input[bool] enable_faster_instance_destroy: Skips destroying backend resources on 'terraform destroy'
|
|
25
25
|
"""
|
|
26
|
-
|
|
26
|
+
ProviderArgs._configure(
|
|
27
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
|
28
|
+
apikey=apikey,
|
|
29
|
+
baseurl=baseurl,
|
|
30
|
+
enable_faster_instance_destroy=enable_faster_instance_destroy,
|
|
31
|
+
)
|
|
32
|
+
@staticmethod
|
|
33
|
+
def _configure(
|
|
34
|
+
_setter: Callable[[Any, Any], None],
|
|
35
|
+
apikey: pulumi.Input[str],
|
|
36
|
+
baseurl: Optional[pulumi.Input[str]] = None,
|
|
37
|
+
enable_faster_instance_destroy: Optional[pulumi.Input[bool]] = None,
|
|
38
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
|
39
|
+
_setter("apikey", apikey)
|
|
27
40
|
if baseurl is not None:
|
|
28
|
-
|
|
41
|
+
_setter("baseurl", baseurl)
|
|
29
42
|
if enable_faster_instance_destroy is not None:
|
|
30
|
-
|
|
43
|
+
_setter("enable_faster_instance_destroy", enable_faster_instance_destroy)
|
|
31
44
|
|
|
32
45
|
@property
|
|
33
46
|
@pulumi.getter
|
|
@@ -109,6 +122,10 @@ class Provider(pulumi.ProviderResource):
|
|
|
109
122
|
if resource_args is not None:
|
|
110
123
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
111
124
|
else:
|
|
125
|
+
kwargs = kwargs or {}
|
|
126
|
+
def _setter(key, value):
|
|
127
|
+
kwargs[key] = value
|
|
128
|
+
ProviderArgs._configure(_setter, **kwargs)
|
|
112
129
|
__self__._internal_init(resource_name, *args, **kwargs)
|
|
113
130
|
|
|
114
131
|
def _internal_init(__self__,
|
|
@@ -6,7 +6,7 @@ import copy
|
|
|
6
6
|
import warnings
|
|
7
7
|
import pulumi
|
|
8
8
|
import pulumi.runtime
|
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
9
|
+
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
|
|
10
10
|
from . import _utilities
|
|
11
11
|
|
|
12
12
|
__all__ = ['RabbitConfigurationArgs', 'RabbitConfiguration']
|
|
@@ -43,29 +43,60 @@ class RabbitConfigurationArgs:
|
|
|
43
43
|
:param pulumi.Input[int] timeout: Configurable timeout time in seconds for RabbitMQ configuration. Default set to 3600 seconds.
|
|
44
44
|
:param pulumi.Input[float] vm_memory_high_watermark: When the server will enter memory based flow-control as relative to the maximum available memory.
|
|
45
45
|
"""
|
|
46
|
-
|
|
46
|
+
RabbitConfigurationArgs._configure(
|
|
47
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
|
48
|
+
instance_id=instance_id,
|
|
49
|
+
channel_max=channel_max,
|
|
50
|
+
cluster_partition_handling=cluster_partition_handling,
|
|
51
|
+
connection_max=connection_max,
|
|
52
|
+
consumer_timeout=consumer_timeout,
|
|
53
|
+
heartbeat=heartbeat,
|
|
54
|
+
log_exchange_level=log_exchange_level,
|
|
55
|
+
max_message_size=max_message_size,
|
|
56
|
+
queue_index_embed_msgs_below=queue_index_embed_msgs_below,
|
|
57
|
+
sleep=sleep,
|
|
58
|
+
timeout=timeout,
|
|
59
|
+
vm_memory_high_watermark=vm_memory_high_watermark,
|
|
60
|
+
)
|
|
61
|
+
@staticmethod
|
|
62
|
+
def _configure(
|
|
63
|
+
_setter: Callable[[Any, Any], None],
|
|
64
|
+
instance_id: pulumi.Input[int],
|
|
65
|
+
channel_max: Optional[pulumi.Input[int]] = None,
|
|
66
|
+
cluster_partition_handling: Optional[pulumi.Input[str]] = None,
|
|
67
|
+
connection_max: Optional[pulumi.Input[int]] = None,
|
|
68
|
+
consumer_timeout: Optional[pulumi.Input[int]] = None,
|
|
69
|
+
heartbeat: Optional[pulumi.Input[int]] = None,
|
|
70
|
+
log_exchange_level: Optional[pulumi.Input[str]] = None,
|
|
71
|
+
max_message_size: Optional[pulumi.Input[int]] = None,
|
|
72
|
+
queue_index_embed_msgs_below: Optional[pulumi.Input[int]] = None,
|
|
73
|
+
sleep: Optional[pulumi.Input[int]] = None,
|
|
74
|
+
timeout: Optional[pulumi.Input[int]] = None,
|
|
75
|
+
vm_memory_high_watermark: Optional[pulumi.Input[float]] = None,
|
|
76
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
|
77
|
+
_setter("instance_id", instance_id)
|
|
47
78
|
if channel_max is not None:
|
|
48
|
-
|
|
79
|
+
_setter("channel_max", channel_max)
|
|
49
80
|
if cluster_partition_handling is not None:
|
|
50
|
-
|
|
81
|
+
_setter("cluster_partition_handling", cluster_partition_handling)
|
|
51
82
|
if connection_max is not None:
|
|
52
|
-
|
|
83
|
+
_setter("connection_max", connection_max)
|
|
53
84
|
if consumer_timeout is not None:
|
|
54
|
-
|
|
85
|
+
_setter("consumer_timeout", consumer_timeout)
|
|
55
86
|
if heartbeat is not None:
|
|
56
|
-
|
|
87
|
+
_setter("heartbeat", heartbeat)
|
|
57
88
|
if log_exchange_level is not None:
|
|
58
|
-
|
|
89
|
+
_setter("log_exchange_level", log_exchange_level)
|
|
59
90
|
if max_message_size is not None:
|
|
60
|
-
|
|
91
|
+
_setter("max_message_size", max_message_size)
|
|
61
92
|
if queue_index_embed_msgs_below is not None:
|
|
62
|
-
|
|
93
|
+
_setter("queue_index_embed_msgs_below", queue_index_embed_msgs_below)
|
|
63
94
|
if sleep is not None:
|
|
64
|
-
|
|
95
|
+
_setter("sleep", sleep)
|
|
65
96
|
if timeout is not None:
|
|
66
|
-
|
|
97
|
+
_setter("timeout", timeout)
|
|
67
98
|
if vm_memory_high_watermark is not None:
|
|
68
|
-
|
|
99
|
+
_setter("vm_memory_high_watermark", vm_memory_high_watermark)
|
|
69
100
|
|
|
70
101
|
@property
|
|
71
102
|
@pulumi.getter(name="instanceId")
|
|
@@ -246,30 +277,61 @@ class _RabbitConfigurationState:
|
|
|
246
277
|
:param pulumi.Input[int] timeout: Configurable timeout time in seconds for RabbitMQ configuration. Default set to 3600 seconds.
|
|
247
278
|
:param pulumi.Input[float] vm_memory_high_watermark: When the server will enter memory based flow-control as relative to the maximum available memory.
|
|
248
279
|
"""
|
|
280
|
+
_RabbitConfigurationState._configure(
|
|
281
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
|
282
|
+
channel_max=channel_max,
|
|
283
|
+
cluster_partition_handling=cluster_partition_handling,
|
|
284
|
+
connection_max=connection_max,
|
|
285
|
+
consumer_timeout=consumer_timeout,
|
|
286
|
+
heartbeat=heartbeat,
|
|
287
|
+
instance_id=instance_id,
|
|
288
|
+
log_exchange_level=log_exchange_level,
|
|
289
|
+
max_message_size=max_message_size,
|
|
290
|
+
queue_index_embed_msgs_below=queue_index_embed_msgs_below,
|
|
291
|
+
sleep=sleep,
|
|
292
|
+
timeout=timeout,
|
|
293
|
+
vm_memory_high_watermark=vm_memory_high_watermark,
|
|
294
|
+
)
|
|
295
|
+
@staticmethod
|
|
296
|
+
def _configure(
|
|
297
|
+
_setter: Callable[[Any, Any], None],
|
|
298
|
+
channel_max: Optional[pulumi.Input[int]] = None,
|
|
299
|
+
cluster_partition_handling: Optional[pulumi.Input[str]] = None,
|
|
300
|
+
connection_max: Optional[pulumi.Input[int]] = None,
|
|
301
|
+
consumer_timeout: Optional[pulumi.Input[int]] = None,
|
|
302
|
+
heartbeat: Optional[pulumi.Input[int]] = None,
|
|
303
|
+
instance_id: Optional[pulumi.Input[int]] = None,
|
|
304
|
+
log_exchange_level: Optional[pulumi.Input[str]] = None,
|
|
305
|
+
max_message_size: Optional[pulumi.Input[int]] = None,
|
|
306
|
+
queue_index_embed_msgs_below: Optional[pulumi.Input[int]] = None,
|
|
307
|
+
sleep: Optional[pulumi.Input[int]] = None,
|
|
308
|
+
timeout: Optional[pulumi.Input[int]] = None,
|
|
309
|
+
vm_memory_high_watermark: Optional[pulumi.Input[float]] = None,
|
|
310
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
|
249
311
|
if channel_max is not None:
|
|
250
|
-
|
|
312
|
+
_setter("channel_max", channel_max)
|
|
251
313
|
if cluster_partition_handling is not None:
|
|
252
|
-
|
|
314
|
+
_setter("cluster_partition_handling", cluster_partition_handling)
|
|
253
315
|
if connection_max is not None:
|
|
254
|
-
|
|
316
|
+
_setter("connection_max", connection_max)
|
|
255
317
|
if consumer_timeout is not None:
|
|
256
|
-
|
|
318
|
+
_setter("consumer_timeout", consumer_timeout)
|
|
257
319
|
if heartbeat is not None:
|
|
258
|
-
|
|
320
|
+
_setter("heartbeat", heartbeat)
|
|
259
321
|
if instance_id is not None:
|
|
260
|
-
|
|
322
|
+
_setter("instance_id", instance_id)
|
|
261
323
|
if log_exchange_level is not None:
|
|
262
|
-
|
|
324
|
+
_setter("log_exchange_level", log_exchange_level)
|
|
263
325
|
if max_message_size is not None:
|
|
264
|
-
|
|
326
|
+
_setter("max_message_size", max_message_size)
|
|
265
327
|
if queue_index_embed_msgs_below is not None:
|
|
266
|
-
|
|
328
|
+
_setter("queue_index_embed_msgs_below", queue_index_embed_msgs_below)
|
|
267
329
|
if sleep is not None:
|
|
268
|
-
|
|
330
|
+
_setter("sleep", sleep)
|
|
269
331
|
if timeout is not None:
|
|
270
|
-
|
|
332
|
+
_setter("timeout", timeout)
|
|
271
333
|
if vm_memory_high_watermark is not None:
|
|
272
|
-
|
|
334
|
+
_setter("vm_memory_high_watermark", vm_memory_high_watermark)
|
|
273
335
|
|
|
274
336
|
@property
|
|
275
337
|
@pulumi.getter(name="channelMax")
|
|
@@ -487,6 +549,10 @@ class RabbitConfiguration(pulumi.CustomResource):
|
|
|
487
549
|
if resource_args is not None:
|
|
488
550
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
489
551
|
else:
|
|
552
|
+
kwargs = kwargs or {}
|
|
553
|
+
def _setter(key, value):
|
|
554
|
+
kwargs[key] = value
|
|
555
|
+
RabbitConfigurationArgs._configure(_setter, **kwargs)
|
|
490
556
|
__self__._internal_init(resource_name, *args, **kwargs)
|
|
491
557
|
|
|
492
558
|
def _internal_init(__self__,
|
|
@@ -6,7 +6,7 @@ import copy
|
|
|
6
6
|
import warnings
|
|
7
7
|
import pulumi
|
|
8
8
|
import pulumi.runtime
|
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
9
|
+
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
|
|
10
10
|
from . import _utilities
|
|
11
11
|
from . import outputs
|
|
12
12
|
from ._inputs import *
|
|
@@ -31,12 +31,27 @@ class SecurityFirewallArgs:
|
|
|
31
31
|
|
|
32
32
|
The `rules` block consists of:
|
|
33
33
|
"""
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
SecurityFirewallArgs._configure(
|
|
35
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
|
36
|
+
instance_id=instance_id,
|
|
37
|
+
rules=rules,
|
|
38
|
+
sleep=sleep,
|
|
39
|
+
timeout=timeout,
|
|
40
|
+
)
|
|
41
|
+
@staticmethod
|
|
42
|
+
def _configure(
|
|
43
|
+
_setter: Callable[[Any, Any], None],
|
|
44
|
+
instance_id: pulumi.Input[int],
|
|
45
|
+
rules: pulumi.Input[Sequence[pulumi.Input['SecurityFirewallRuleArgs']]],
|
|
46
|
+
sleep: Optional[pulumi.Input[int]] = None,
|
|
47
|
+
timeout: Optional[pulumi.Input[int]] = None,
|
|
48
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
|
49
|
+
_setter("instance_id", instance_id)
|
|
50
|
+
_setter("rules", rules)
|
|
36
51
|
if sleep is not None:
|
|
37
|
-
|
|
52
|
+
_setter("sleep", sleep)
|
|
38
53
|
if timeout is not None:
|
|
39
|
-
|
|
54
|
+
_setter("timeout", timeout)
|
|
40
55
|
|
|
41
56
|
@property
|
|
42
57
|
@pulumi.getter(name="instanceId")
|
|
@@ -109,14 +124,29 @@ class _SecurityFirewallState:
|
|
|
109
124
|
|
|
110
125
|
The `rules` block consists of:
|
|
111
126
|
"""
|
|
127
|
+
_SecurityFirewallState._configure(
|
|
128
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
|
129
|
+
instance_id=instance_id,
|
|
130
|
+
rules=rules,
|
|
131
|
+
sleep=sleep,
|
|
132
|
+
timeout=timeout,
|
|
133
|
+
)
|
|
134
|
+
@staticmethod
|
|
135
|
+
def _configure(
|
|
136
|
+
_setter: Callable[[Any, Any], None],
|
|
137
|
+
instance_id: Optional[pulumi.Input[int]] = None,
|
|
138
|
+
rules: Optional[pulumi.Input[Sequence[pulumi.Input['SecurityFirewallRuleArgs']]]] = None,
|
|
139
|
+
sleep: Optional[pulumi.Input[int]] = None,
|
|
140
|
+
timeout: Optional[pulumi.Input[int]] = None,
|
|
141
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
|
112
142
|
if instance_id is not None:
|
|
113
|
-
|
|
143
|
+
_setter("instance_id", instance_id)
|
|
114
144
|
if rules is not None:
|
|
115
|
-
|
|
145
|
+
_setter("rules", rules)
|
|
116
146
|
if sleep is not None:
|
|
117
|
-
|
|
147
|
+
_setter("sleep", sleep)
|
|
118
148
|
if timeout is not None:
|
|
119
|
-
|
|
149
|
+
_setter("timeout", timeout)
|
|
120
150
|
|
|
121
151
|
@property
|
|
122
152
|
@pulumi.getter(name="instanceId")
|
|
@@ -226,6 +256,10 @@ class SecurityFirewall(pulumi.CustomResource):
|
|
|
226
256
|
if resource_args is not None:
|
|
227
257
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
228
258
|
else:
|
|
259
|
+
kwargs = kwargs or {}
|
|
260
|
+
def _setter(key, value):
|
|
261
|
+
kwargs[key] = value
|
|
262
|
+
SecurityFirewallArgs._configure(_setter, **kwargs)
|
|
229
263
|
__self__._internal_init(resource_name, *args, **kwargs)
|
|
230
264
|
|
|
231
265
|
def _internal_init(__self__,
|
|
@@ -6,7 +6,7 @@ import copy
|
|
|
6
6
|
import warnings
|
|
7
7
|
import pulumi
|
|
8
8
|
import pulumi.runtime
|
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
9
|
+
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
|
|
10
10
|
from . import _utilities
|
|
11
11
|
|
|
12
12
|
__all__ = ['UpgradeRabbitmqArgs', 'UpgradeRabbitmq']
|
|
@@ -19,7 +19,16 @@ class UpgradeRabbitmqArgs:
|
|
|
19
19
|
The set of arguments for constructing a UpgradeRabbitmq resource.
|
|
20
20
|
:param pulumi.Input[int] instance_id: The CloudAMQP instance identifier
|
|
21
21
|
"""
|
|
22
|
-
|
|
22
|
+
UpgradeRabbitmqArgs._configure(
|
|
23
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
|
24
|
+
instance_id=instance_id,
|
|
25
|
+
)
|
|
26
|
+
@staticmethod
|
|
27
|
+
def _configure(
|
|
28
|
+
_setter: Callable[[Any, Any], None],
|
|
29
|
+
instance_id: pulumi.Input[int],
|
|
30
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
|
31
|
+
_setter("instance_id", instance_id)
|
|
23
32
|
|
|
24
33
|
@property
|
|
25
34
|
@pulumi.getter(name="instanceId")
|
|
@@ -42,8 +51,17 @@ class _UpgradeRabbitmqState:
|
|
|
42
51
|
Input properties used for looking up and filtering UpgradeRabbitmq resources.
|
|
43
52
|
:param pulumi.Input[int] instance_id: The CloudAMQP instance identifier
|
|
44
53
|
"""
|
|
54
|
+
_UpgradeRabbitmqState._configure(
|
|
55
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
|
56
|
+
instance_id=instance_id,
|
|
57
|
+
)
|
|
58
|
+
@staticmethod
|
|
59
|
+
def _configure(
|
|
60
|
+
_setter: Callable[[Any, Any], None],
|
|
61
|
+
instance_id: Optional[pulumi.Input[int]] = None,
|
|
62
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
|
45
63
|
if instance_id is not None:
|
|
46
|
-
|
|
64
|
+
_setter("instance_id", instance_id)
|
|
47
65
|
|
|
48
66
|
@property
|
|
49
67
|
@pulumi.getter(name="instanceId")
|
|
@@ -175,6 +193,10 @@ class UpgradeRabbitmq(pulumi.CustomResource):
|
|
|
175
193
|
if resource_args is not None:
|
|
176
194
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
177
195
|
else:
|
|
196
|
+
kwargs = kwargs or {}
|
|
197
|
+
def _setter(key, value):
|
|
198
|
+
kwargs[key] = value
|
|
199
|
+
UpgradeRabbitmqArgs._configure(_setter, **kwargs)
|
|
178
200
|
__self__._internal_init(resource_name, *args, **kwargs)
|
|
179
201
|
|
|
180
202
|
def _internal_init(__self__,
|
pulumi_cloudamqp/vpc.py
CHANGED
|
@@ -6,7 +6,7 @@ import copy
|
|
|
6
6
|
import warnings
|
|
7
7
|
import pulumi
|
|
8
8
|
import pulumi.runtime
|
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
9
|
+
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
|
|
10
10
|
from . import _utilities
|
|
11
11
|
|
|
12
12
|
__all__ = ['VpcArgs', 'Vpc']
|
|
@@ -25,12 +25,27 @@ class VpcArgs:
|
|
|
25
25
|
:param pulumi.Input[str] name: The name of the VPC.
|
|
26
26
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: Tag the VPC with optional tags
|
|
27
27
|
"""
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
VpcArgs._configure(
|
|
29
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
|
30
|
+
region=region,
|
|
31
|
+
subnet=subnet,
|
|
32
|
+
name=name,
|
|
33
|
+
tags=tags,
|
|
34
|
+
)
|
|
35
|
+
@staticmethod
|
|
36
|
+
def _configure(
|
|
37
|
+
_setter: Callable[[Any, Any], None],
|
|
38
|
+
region: pulumi.Input[str],
|
|
39
|
+
subnet: pulumi.Input[str],
|
|
40
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
41
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
42
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
|
43
|
+
_setter("region", region)
|
|
44
|
+
_setter("subnet", subnet)
|
|
30
45
|
if name is not None:
|
|
31
|
-
|
|
46
|
+
_setter("name", name)
|
|
32
47
|
if tags is not None:
|
|
33
|
-
|
|
48
|
+
_setter("tags", tags)
|
|
34
49
|
|
|
35
50
|
@property
|
|
36
51
|
@pulumi.getter
|
|
@@ -97,16 +112,33 @@ class _VpcState:
|
|
|
97
112
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: Tag the VPC with optional tags
|
|
98
113
|
:param pulumi.Input[str] vpc_name: VPC name given when hosted at the cloud provider
|
|
99
114
|
"""
|
|
115
|
+
_VpcState._configure(
|
|
116
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
|
117
|
+
name=name,
|
|
118
|
+
region=region,
|
|
119
|
+
subnet=subnet,
|
|
120
|
+
tags=tags,
|
|
121
|
+
vpc_name=vpc_name,
|
|
122
|
+
)
|
|
123
|
+
@staticmethod
|
|
124
|
+
def _configure(
|
|
125
|
+
_setter: Callable[[Any, Any], None],
|
|
126
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
127
|
+
region: Optional[pulumi.Input[str]] = None,
|
|
128
|
+
subnet: Optional[pulumi.Input[str]] = None,
|
|
129
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
130
|
+
vpc_name: Optional[pulumi.Input[str]] = None,
|
|
131
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
|
100
132
|
if name is not None:
|
|
101
|
-
|
|
133
|
+
_setter("name", name)
|
|
102
134
|
if region is not None:
|
|
103
|
-
|
|
135
|
+
_setter("region", region)
|
|
104
136
|
if subnet is not None:
|
|
105
|
-
|
|
137
|
+
_setter("subnet", subnet)
|
|
106
138
|
if tags is not None:
|
|
107
|
-
|
|
139
|
+
_setter("tags", tags)
|
|
108
140
|
if vpc_name is not None:
|
|
109
|
-
|
|
141
|
+
_setter("vpc_name", vpc_name)
|
|
110
142
|
|
|
111
143
|
@property
|
|
112
144
|
@pulumi.getter
|
|
@@ -286,6 +318,10 @@ class Vpc(pulumi.CustomResource):
|
|
|
286
318
|
if resource_args is not None:
|
|
287
319
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
288
320
|
else:
|
|
321
|
+
kwargs = kwargs or {}
|
|
322
|
+
def _setter(key, value):
|
|
323
|
+
kwargs[key] = value
|
|
324
|
+
VpcArgs._configure(_setter, **kwargs)
|
|
289
325
|
__self__._internal_init(resource_name, *args, **kwargs)
|
|
290
326
|
|
|
291
327
|
def _internal_init(__self__,
|
|
@@ -6,7 +6,7 @@ import copy
|
|
|
6
6
|
import warnings
|
|
7
7
|
import pulumi
|
|
8
8
|
import pulumi.runtime
|
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
9
|
+
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
|
|
10
10
|
from . import _utilities
|
|
11
11
|
|
|
12
12
|
__all__ = ['VpcGcpPeeringArgs', 'VpcGcpPeering']
|
|
@@ -31,13 +31,28 @@ class VpcGcpPeeringArgs:
|
|
|
31
31
|
|
|
32
32
|
***Note: Added as optional in version v1.28.0. Default set to false and will not wait until the peering is done from both VPCs***
|
|
33
33
|
"""
|
|
34
|
-
|
|
34
|
+
VpcGcpPeeringArgs._configure(
|
|
35
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
|
36
|
+
peer_network_uri=peer_network_uri,
|
|
37
|
+
instance_id=instance_id,
|
|
38
|
+
vpc_id=vpc_id,
|
|
39
|
+
wait_on_peering_status=wait_on_peering_status,
|
|
40
|
+
)
|
|
41
|
+
@staticmethod
|
|
42
|
+
def _configure(
|
|
43
|
+
_setter: Callable[[Any, Any], None],
|
|
44
|
+
peer_network_uri: pulumi.Input[str],
|
|
45
|
+
instance_id: Optional[pulumi.Input[int]] = None,
|
|
46
|
+
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
47
|
+
wait_on_peering_status: Optional[pulumi.Input[bool]] = None,
|
|
48
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
|
49
|
+
_setter("peer_network_uri", peer_network_uri)
|
|
35
50
|
if instance_id is not None:
|
|
36
|
-
|
|
51
|
+
_setter("instance_id", instance_id)
|
|
37
52
|
if vpc_id is not None:
|
|
38
|
-
|
|
53
|
+
_setter("vpc_id", vpc_id)
|
|
39
54
|
if wait_on_peering_status is not None:
|
|
40
|
-
|
|
55
|
+
_setter("wait_on_peering_status", wait_on_peering_status)
|
|
41
56
|
|
|
42
57
|
@property
|
|
43
58
|
@pulumi.getter(name="peerNetworkUri")
|
|
@@ -120,20 +135,41 @@ class _VpcGcpPeeringState:
|
|
|
120
135
|
|
|
121
136
|
***Note: Added as optional in version v1.28.0. Default set to false and will not wait until the peering is done from both VPCs***
|
|
122
137
|
"""
|
|
138
|
+
_VpcGcpPeeringState._configure(
|
|
139
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
|
140
|
+
auto_create_routes=auto_create_routes,
|
|
141
|
+
instance_id=instance_id,
|
|
142
|
+
peer_network_uri=peer_network_uri,
|
|
143
|
+
state=state,
|
|
144
|
+
state_details=state_details,
|
|
145
|
+
vpc_id=vpc_id,
|
|
146
|
+
wait_on_peering_status=wait_on_peering_status,
|
|
147
|
+
)
|
|
148
|
+
@staticmethod
|
|
149
|
+
def _configure(
|
|
150
|
+
_setter: Callable[[Any, Any], None],
|
|
151
|
+
auto_create_routes: Optional[pulumi.Input[bool]] = None,
|
|
152
|
+
instance_id: Optional[pulumi.Input[int]] = None,
|
|
153
|
+
peer_network_uri: Optional[pulumi.Input[str]] = None,
|
|
154
|
+
state: Optional[pulumi.Input[str]] = None,
|
|
155
|
+
state_details: Optional[pulumi.Input[str]] = None,
|
|
156
|
+
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
157
|
+
wait_on_peering_status: Optional[pulumi.Input[bool]] = None,
|
|
158
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
|
123
159
|
if auto_create_routes is not None:
|
|
124
|
-
|
|
160
|
+
_setter("auto_create_routes", auto_create_routes)
|
|
125
161
|
if instance_id is not None:
|
|
126
|
-
|
|
162
|
+
_setter("instance_id", instance_id)
|
|
127
163
|
if peer_network_uri is not None:
|
|
128
|
-
|
|
164
|
+
_setter("peer_network_uri", peer_network_uri)
|
|
129
165
|
if state is not None:
|
|
130
|
-
|
|
166
|
+
_setter("state", state)
|
|
131
167
|
if state_details is not None:
|
|
132
|
-
|
|
168
|
+
_setter("state_details", state_details)
|
|
133
169
|
if vpc_id is not None:
|
|
134
|
-
|
|
170
|
+
_setter("vpc_id", vpc_id)
|
|
135
171
|
if wait_on_peering_status is not None:
|
|
136
|
-
|
|
172
|
+
_setter("wait_on_peering_status", wait_on_peering_status)
|
|
137
173
|
|
|
138
174
|
@property
|
|
139
175
|
@pulumi.getter(name="autoCreateRoutes")
|
|
@@ -521,6 +557,10 @@ class VpcGcpPeering(pulumi.CustomResource):
|
|
|
521
557
|
if resource_args is not None:
|
|
522
558
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
523
559
|
else:
|
|
560
|
+
kwargs = kwargs or {}
|
|
561
|
+
def _setter(key, value):
|
|
562
|
+
kwargs[key] = value
|
|
563
|
+
VpcGcpPeeringArgs._configure(_setter, **kwargs)
|
|
524
564
|
__self__._internal_init(resource_name, *args, **kwargs)
|
|
525
565
|
|
|
526
566
|
def _internal_init(__self__,
|
pulumi_cloudamqp/vpc_peering.py
CHANGED
|
@@ -6,7 +6,7 @@ import copy
|
|
|
6
6
|
import warnings
|
|
7
7
|
import pulumi
|
|
8
8
|
import pulumi.runtime
|
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
9
|
+
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
|
|
10
10
|
from . import _utilities
|
|
11
11
|
|
|
12
12
|
__all__ = ['VpcPeeringArgs', 'VpcPeering']
|
|
@@ -31,15 +31,32 @@ class VpcPeeringArgs:
|
|
|
31
31
|
|
|
32
32
|
***Note: Introduced as optional in version v1.16.0, will be required in next major version (v2.0)***
|
|
33
33
|
"""
|
|
34
|
-
|
|
34
|
+
VpcPeeringArgs._configure(
|
|
35
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
|
36
|
+
peering_id=peering_id,
|
|
37
|
+
instance_id=instance_id,
|
|
38
|
+
sleep=sleep,
|
|
39
|
+
timeout=timeout,
|
|
40
|
+
vpc_id=vpc_id,
|
|
41
|
+
)
|
|
42
|
+
@staticmethod
|
|
43
|
+
def _configure(
|
|
44
|
+
_setter: Callable[[Any, Any], None],
|
|
45
|
+
peering_id: pulumi.Input[str],
|
|
46
|
+
instance_id: Optional[pulumi.Input[int]] = None,
|
|
47
|
+
sleep: Optional[pulumi.Input[int]] = None,
|
|
48
|
+
timeout: Optional[pulumi.Input[int]] = None,
|
|
49
|
+
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
50
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
|
51
|
+
_setter("peering_id", peering_id)
|
|
35
52
|
if instance_id is not None:
|
|
36
|
-
|
|
53
|
+
_setter("instance_id", instance_id)
|
|
37
54
|
if sleep is not None:
|
|
38
|
-
|
|
55
|
+
_setter("sleep", sleep)
|
|
39
56
|
if timeout is not None:
|
|
40
|
-
|
|
57
|
+
_setter("timeout", timeout)
|
|
41
58
|
if vpc_id is not None:
|
|
42
|
-
|
|
59
|
+
_setter("vpc_id", vpc_id)
|
|
43
60
|
|
|
44
61
|
@property
|
|
45
62
|
@pulumi.getter(name="peeringId")
|
|
@@ -128,18 +145,37 @@ class _VpcPeeringState:
|
|
|
128
145
|
|
|
129
146
|
***Note: Introduced as optional in version v1.16.0, will be required in next major version (v2.0)***
|
|
130
147
|
"""
|
|
148
|
+
_VpcPeeringState._configure(
|
|
149
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
|
150
|
+
instance_id=instance_id,
|
|
151
|
+
peering_id=peering_id,
|
|
152
|
+
sleep=sleep,
|
|
153
|
+
status=status,
|
|
154
|
+
timeout=timeout,
|
|
155
|
+
vpc_id=vpc_id,
|
|
156
|
+
)
|
|
157
|
+
@staticmethod
|
|
158
|
+
def _configure(
|
|
159
|
+
_setter: Callable[[Any, Any], None],
|
|
160
|
+
instance_id: Optional[pulumi.Input[int]] = None,
|
|
161
|
+
peering_id: Optional[pulumi.Input[str]] = None,
|
|
162
|
+
sleep: Optional[pulumi.Input[int]] = None,
|
|
163
|
+
status: Optional[pulumi.Input[str]] = None,
|
|
164
|
+
timeout: Optional[pulumi.Input[int]] = None,
|
|
165
|
+
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
166
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
|
131
167
|
if instance_id is not None:
|
|
132
|
-
|
|
168
|
+
_setter("instance_id", instance_id)
|
|
133
169
|
if peering_id is not None:
|
|
134
|
-
|
|
170
|
+
_setter("peering_id", peering_id)
|
|
135
171
|
if sleep is not None:
|
|
136
|
-
|
|
172
|
+
_setter("sleep", sleep)
|
|
137
173
|
if status is not None:
|
|
138
|
-
|
|
174
|
+
_setter("status", status)
|
|
139
175
|
if timeout is not None:
|
|
140
|
-
|
|
176
|
+
_setter("timeout", timeout)
|
|
141
177
|
if vpc_id is not None:
|
|
142
|
-
|
|
178
|
+
_setter("vpc_id", vpc_id)
|
|
143
179
|
|
|
144
180
|
@property
|
|
145
181
|
@pulumi.getter(name="instanceId")
|
|
@@ -267,6 +303,10 @@ class VpcPeering(pulumi.CustomResource):
|
|
|
267
303
|
if resource_args is not None:
|
|
268
304
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
269
305
|
else:
|
|
306
|
+
kwargs = kwargs or {}
|
|
307
|
+
def _setter(key, value):
|
|
308
|
+
kwargs[key] = value
|
|
309
|
+
VpcPeeringArgs._configure(_setter, **kwargs)
|
|
270
310
|
__self__._internal_init(resource_name, *args, **kwargs)
|
|
271
311
|
|
|
272
312
|
def _internal_init(__self__,
|