pulumi-cloudamqp 3.18.0a1709359306__tar.gz → 3.21.0a1736832130__tar.gz
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-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/PKG-INFO +5 -4
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/__init__.py +9 -0
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/_inputs.py +157 -6
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/_utilities.py +41 -5
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/account_action.py +5 -0
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/alarm.py +5 -124
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/config/__init__.pyi +5 -0
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/config/vars.py +5 -0
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/custom_domain.py +9 -2
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/extra_disk_size.py +46 -15
- pulumi_cloudamqp-3.21.0a1736832130/pulumi_cloudamqp/get_account.py +82 -0
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/get_account_vpcs.py +14 -5
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/get_alarm.py +31 -7
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/get_credentials.py +19 -7
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/get_instance.py +30 -47
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/get_nodes.py +22 -7
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/get_notification.py +25 -7
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/get_plugins.py +51 -10
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/get_plugins_community.py +51 -10
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/get_upgradable_versions.py +19 -7
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/get_vpc_gcp_info.py +28 -9
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/get_vpc_info.py +25 -9
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/instance.py +70 -115
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/integration_aws_eventbridge.py +11 -2
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/integration_log.py +432 -43
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/integration_metric.py +326 -23
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/node_actions.py +59 -46
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/notification.py +118 -61
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/outputs.py +71 -60
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/plugin.py +54 -35
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/plugin_community.py +56 -37
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/privatelink_aws.py +49 -60
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/privatelink_azure.py +49 -60
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/provider.py +5 -5
- pulumi_cloudamqp-3.21.0a1736832130/pulumi_cloudamqp/pulumi-plugin.json +5 -0
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/rabbit_configuration.py +5 -0
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/security_firewall.py +70 -24
- pulumi_cloudamqp-3.21.0a1736832130/pulumi_cloudamqp/upgrade_lavinmq.py +276 -0
- pulumi_cloudamqp-3.21.0a1736832130/pulumi_cloudamqp/upgrade_rabbitmq.py +503 -0
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/vpc.py +17 -6
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/vpc_connect.py +63 -80
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/vpc_gcp_peering.py +310 -103
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/vpc_peering.py +19 -2
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/webhook.py +91 -84
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp.egg-info/PKG-INFO +5 -4
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp.egg-info/SOURCES.txt +1 -0
- pulumi_cloudamqp-3.21.0a1736832130/pulumi_cloudamqp.egg-info/requires.txt +6 -0
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pyproject.toml +3 -3
- pulumi_cloudamqp-3.18.0a1709359306/pulumi_cloudamqp/get_account.py +0 -141
- pulumi_cloudamqp-3.18.0a1709359306/pulumi_cloudamqp/pulumi-plugin.json +0 -4
- pulumi_cloudamqp-3.18.0a1709359306/pulumi_cloudamqp/upgrade_rabbitmq.py +0 -230
- pulumi_cloudamqp-3.18.0a1709359306/pulumi_cloudamqp.egg-info/requires.txt +0 -3
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/README.md +0 -0
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/config/__init__.py +0 -0
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/py.typed +0 -0
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp.egg-info/dependency_links.txt +0 -0
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp.egg-info/top_level.txt +0 -0
- {pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/setup.cfg +0 -0
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: pulumi_cloudamqp
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.21.0a1736832130
|
|
4
4
|
Summary: A Pulumi package for creating and managing CloudAMQP resources.
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Project-URL: Homepage, https://pulumi.io
|
|
7
7
|
Project-URL: Repository, https://github.com/pulumi/pulumi-cloudamqp
|
|
8
8
|
Keywords: pulumi,cloudamqp
|
|
9
|
-
Requires-Python: >=3.
|
|
9
|
+
Requires-Python: >=3.9
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
Requires-Dist: parver>=0.2.1
|
|
12
|
-
Requires-Dist: pulumi<4.0.0,>=3.
|
|
12
|
+
Requires-Dist: pulumi<4.0.0,>=3.142.0
|
|
13
13
|
Requires-Dist: semver>=2.8.1
|
|
14
|
+
Requires-Dist: typing-extensions>=4.11; python_version < "3.11"
|
|
14
15
|
|
|
15
16
|
[](https://github.com/pulumi/pulumi-cloudamqp/actions)
|
|
16
17
|
[](https://slack.pulumi.com)
|
|
@@ -34,6 +34,7 @@ from .privatelink_azure import *
|
|
|
34
34
|
from .provider import *
|
|
35
35
|
from .rabbit_configuration import *
|
|
36
36
|
from .security_firewall import *
|
|
37
|
+
from .upgrade_lavinmq import *
|
|
37
38
|
from .upgrade_rabbitmq import *
|
|
38
39
|
from .vpc import *
|
|
39
40
|
from .vpc_connect import *
|
|
@@ -181,6 +182,14 @@ _utilities.register(
|
|
|
181
182
|
"cloudamqp:index/securityFirewall:SecurityFirewall": "SecurityFirewall"
|
|
182
183
|
}
|
|
183
184
|
},
|
|
185
|
+
{
|
|
186
|
+
"pkg": "cloudamqp",
|
|
187
|
+
"mod": "index/upgradeLavinmq",
|
|
188
|
+
"fqn": "pulumi_cloudamqp",
|
|
189
|
+
"classes": {
|
|
190
|
+
"cloudamqp:index/upgradeLavinmq:UpgradeLavinmq": "UpgradeLavinmq"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
184
193
|
{
|
|
185
194
|
"pkg": "cloudamqp",
|
|
186
195
|
"mod": "index/upgradeRabbitmq",
|
|
@@ -4,18 +4,43 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = [
|
|
13
18
|
'ExtraDiskSizeNodeArgs',
|
|
19
|
+
'ExtraDiskSizeNodeArgsDict',
|
|
14
20
|
'InstanceCopySettingArgs',
|
|
21
|
+
'InstanceCopySettingArgsDict',
|
|
15
22
|
'NotificationResponderArgs',
|
|
23
|
+
'NotificationResponderArgsDict',
|
|
16
24
|
'SecurityFirewallRuleArgs',
|
|
25
|
+
'SecurityFirewallRuleArgsDict',
|
|
17
26
|
]
|
|
18
27
|
|
|
28
|
+
MYPY = False
|
|
29
|
+
|
|
30
|
+
if not MYPY:
|
|
31
|
+
class ExtraDiskSizeNodeArgsDict(TypedDict):
|
|
32
|
+
additional_disk_size: NotRequired[pulumi.Input[int]]
|
|
33
|
+
"""
|
|
34
|
+
Additional added disk size
|
|
35
|
+
"""
|
|
36
|
+
disk_size: NotRequired[pulumi.Input[int]]
|
|
37
|
+
"""
|
|
38
|
+
Subscription plan disk size
|
|
39
|
+
"""
|
|
40
|
+
name: NotRequired[pulumi.Input[str]]
|
|
41
|
+
elif False:
|
|
42
|
+
ExtraDiskSizeNodeArgsDict: TypeAlias = Mapping[str, Any]
|
|
43
|
+
|
|
19
44
|
@pulumi.input_type
|
|
20
45
|
class ExtraDiskSizeNodeArgs:
|
|
21
46
|
def __init__(__self__, *,
|
|
@@ -67,6 +92,21 @@ class ExtraDiskSizeNodeArgs:
|
|
|
67
92
|
pulumi.set(self, "name", value)
|
|
68
93
|
|
|
69
94
|
|
|
95
|
+
if not MYPY:
|
|
96
|
+
class InstanceCopySettingArgsDict(TypedDict):
|
|
97
|
+
settings: pulumi.Input[Sequence[pulumi.Input[str]]]
|
|
98
|
+
"""
|
|
99
|
+
Array of one or more settings to be copied. Allowed values: [alarms, config, definitions, firewall, logs, metrics, plugins]
|
|
100
|
+
|
|
101
|
+
See more below, copy settings
|
|
102
|
+
"""
|
|
103
|
+
subscription_id: pulumi.Input[str]
|
|
104
|
+
"""
|
|
105
|
+
Instance identifier of the CloudAMQP instance to copy the settings from.
|
|
106
|
+
"""
|
|
107
|
+
elif False:
|
|
108
|
+
InstanceCopySettingArgsDict: TypeAlias = Mapping[str, Any]
|
|
109
|
+
|
|
70
110
|
@pulumi.input_type
|
|
71
111
|
class InstanceCopySettingArgs:
|
|
72
112
|
def __init__(__self__, *,
|
|
@@ -108,6 +148,30 @@ class InstanceCopySettingArgs:
|
|
|
108
148
|
pulumi.set(self, "subscription_id", value)
|
|
109
149
|
|
|
110
150
|
|
|
151
|
+
if not MYPY:
|
|
152
|
+
class NotificationResponderArgsDict(TypedDict):
|
|
153
|
+
type: pulumi.Input[str]
|
|
154
|
+
"""
|
|
155
|
+
Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
156
|
+
"""
|
|
157
|
+
id: NotRequired[pulumi.Input[str]]
|
|
158
|
+
"""
|
|
159
|
+
Identifier in UUID format
|
|
160
|
+
"""
|
|
161
|
+
name: NotRequired[pulumi.Input[str]]
|
|
162
|
+
"""
|
|
163
|
+
Name of the responder
|
|
164
|
+
"""
|
|
165
|
+
username: NotRequired[pulumi.Input[str]]
|
|
166
|
+
"""
|
|
167
|
+
Username of the responder
|
|
168
|
+
|
|
169
|
+
Responders of type `team`, `escalation` and `schedule` can use either id or name.
|
|
170
|
+
While `user` can use either id or username.
|
|
171
|
+
"""
|
|
172
|
+
elif False:
|
|
173
|
+
NotificationResponderArgsDict: TypeAlias = Mapping[str, Any]
|
|
174
|
+
|
|
111
175
|
@pulumi.input_type
|
|
112
176
|
class NotificationResponderArgs:
|
|
113
177
|
def __init__(__self__, *,
|
|
@@ -184,6 +248,49 @@ class NotificationResponderArgs:
|
|
|
184
248
|
pulumi.set(self, "username", value)
|
|
185
249
|
|
|
186
250
|
|
|
251
|
+
if not MYPY:
|
|
252
|
+
class SecurityFirewallRuleArgsDict(TypedDict):
|
|
253
|
+
ip: pulumi.Input[str]
|
|
254
|
+
"""
|
|
255
|
+
CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
|
|
256
|
+
"""
|
|
257
|
+
description: NotRequired[pulumi.Input[str]]
|
|
258
|
+
"""
|
|
259
|
+
Description name of the rule. e.g. Default.
|
|
260
|
+
|
|
261
|
+
Pre-defined services for RabbitMQ:
|
|
262
|
+
|
|
263
|
+
| Service name | Port |
|
|
264
|
+
|--------------|-------|
|
|
265
|
+
| AMQP | 5672 |
|
|
266
|
+
| AMQPS | 5671 |
|
|
267
|
+
| HTTPS | 443 |
|
|
268
|
+
| MQTT | 1883 |
|
|
269
|
+
| MQTTS | 8883 |
|
|
270
|
+
| STOMP | 61613 |
|
|
271
|
+
| STOMPS | 61614 |
|
|
272
|
+
| STREAM | 5552 |
|
|
273
|
+
| STREAM_SSL | 5551 |
|
|
274
|
+
|
|
275
|
+
Pre-defined services for LavinMQ:
|
|
276
|
+
|
|
277
|
+
| Service name | Port |
|
|
278
|
+
|--------------|-------|
|
|
279
|
+
| AMQP | 5672 |
|
|
280
|
+
| AMQPS | 5671 |
|
|
281
|
+
| HTTPS | 443 |
|
|
282
|
+
"""
|
|
283
|
+
ports: NotRequired[pulumi.Input[Sequence[pulumi.Input[int]]]]
|
|
284
|
+
"""
|
|
285
|
+
Custom ports to be opened
|
|
286
|
+
"""
|
|
287
|
+
services: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
288
|
+
"""
|
|
289
|
+
Pre-defined service ports, see table below
|
|
290
|
+
"""
|
|
291
|
+
elif False:
|
|
292
|
+
SecurityFirewallRuleArgsDict: TypeAlias = Mapping[str, Any]
|
|
293
|
+
|
|
187
294
|
@pulumi.input_type
|
|
188
295
|
class SecurityFirewallRuleArgs:
|
|
189
296
|
def __init__(__self__, *,
|
|
@@ -193,9 +300,31 @@ class SecurityFirewallRuleArgs:
|
|
|
193
300
|
services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
194
301
|
"""
|
|
195
302
|
:param pulumi.Input[str] ip: CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
|
|
196
|
-
:param pulumi.Input[str] description:
|
|
197
|
-
|
|
198
|
-
|
|
303
|
+
:param pulumi.Input[str] description: Description name of the rule. e.g. Default.
|
|
304
|
+
|
|
305
|
+
Pre-defined services for RabbitMQ:
|
|
306
|
+
|
|
307
|
+
| Service name | Port |
|
|
308
|
+
|--------------|-------|
|
|
309
|
+
| AMQP | 5672 |
|
|
310
|
+
| AMQPS | 5671 |
|
|
311
|
+
| HTTPS | 443 |
|
|
312
|
+
| MQTT | 1883 |
|
|
313
|
+
| MQTTS | 8883 |
|
|
314
|
+
| STOMP | 61613 |
|
|
315
|
+
| STOMPS | 61614 |
|
|
316
|
+
| STREAM | 5552 |
|
|
317
|
+
| STREAM_SSL | 5551 |
|
|
318
|
+
|
|
319
|
+
Pre-defined services for LavinMQ:
|
|
320
|
+
|
|
321
|
+
| Service name | Port |
|
|
322
|
+
|--------------|-------|
|
|
323
|
+
| AMQP | 5672 |
|
|
324
|
+
| AMQPS | 5671 |
|
|
325
|
+
| HTTPS | 443 |
|
|
326
|
+
:param pulumi.Input[Sequence[pulumi.Input[int]]] ports: Custom ports to be opened
|
|
327
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] services: Pre-defined service ports, see table below
|
|
199
328
|
"""
|
|
200
329
|
pulumi.set(__self__, "ip", ip)
|
|
201
330
|
if description is not None:
|
|
@@ -221,7 +350,29 @@ class SecurityFirewallRuleArgs:
|
|
|
221
350
|
@pulumi.getter
|
|
222
351
|
def description(self) -> Optional[pulumi.Input[str]]:
|
|
223
352
|
"""
|
|
224
|
-
|
|
353
|
+
Description name of the rule. e.g. Default.
|
|
354
|
+
|
|
355
|
+
Pre-defined services for RabbitMQ:
|
|
356
|
+
|
|
357
|
+
| Service name | Port |
|
|
358
|
+
|--------------|-------|
|
|
359
|
+
| AMQP | 5672 |
|
|
360
|
+
| AMQPS | 5671 |
|
|
361
|
+
| HTTPS | 443 |
|
|
362
|
+
| MQTT | 1883 |
|
|
363
|
+
| MQTTS | 8883 |
|
|
364
|
+
| STOMP | 61613 |
|
|
365
|
+
| STOMPS | 61614 |
|
|
366
|
+
| STREAM | 5552 |
|
|
367
|
+
| STREAM_SSL | 5551 |
|
|
368
|
+
|
|
369
|
+
Pre-defined services for LavinMQ:
|
|
370
|
+
|
|
371
|
+
| Service name | Port |
|
|
372
|
+
|--------------|-------|
|
|
373
|
+
| AMQP | 5672 |
|
|
374
|
+
| AMQPS | 5671 |
|
|
375
|
+
| HTTPS | 443 |
|
|
225
376
|
"""
|
|
226
377
|
return pulumi.get(self, "description")
|
|
227
378
|
|
|
@@ -233,7 +384,7 @@ class SecurityFirewallRuleArgs:
|
|
|
233
384
|
@pulumi.getter
|
|
234
385
|
def ports(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
|
|
235
386
|
"""
|
|
236
|
-
Custom ports
|
|
387
|
+
Custom ports to be opened
|
|
237
388
|
"""
|
|
238
389
|
return pulumi.get(self, "ports")
|
|
239
390
|
|
|
@@ -245,7 +396,7 @@ class SecurityFirewallRuleArgs:
|
|
|
245
396
|
@pulumi.getter
|
|
246
397
|
def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
247
398
|
"""
|
|
248
|
-
Pre-defined
|
|
399
|
+
Pre-defined service ports, see table below
|
|
249
400
|
"""
|
|
250
401
|
return pulumi.get(self, "services")
|
|
251
402
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
import asyncio
|
|
7
|
+
import functools
|
|
7
8
|
import importlib.metadata
|
|
8
9
|
import importlib.util
|
|
9
10
|
import inspect
|
|
@@ -11,14 +12,19 @@ import json
|
|
|
11
12
|
import os
|
|
12
13
|
import sys
|
|
13
14
|
import typing
|
|
15
|
+
import warnings
|
|
16
|
+
import base64
|
|
14
17
|
|
|
15
18
|
import pulumi
|
|
16
19
|
import pulumi.runtime
|
|
17
20
|
from pulumi.runtime.sync_await import _sync_await
|
|
21
|
+
from pulumi.runtime.proto import resource_pb2
|
|
18
22
|
|
|
19
23
|
from semver import VersionInfo as SemverVersion
|
|
20
24
|
from parver import Version as PEP440Version
|
|
21
25
|
|
|
26
|
+
C = typing.TypeVar("C", bound=typing.Callable)
|
|
27
|
+
|
|
22
28
|
|
|
23
29
|
def get_env(*args):
|
|
24
30
|
for v in args:
|
|
@@ -96,10 +102,6 @@ def _get_semver_version():
|
|
|
96
102
|
_version = _get_semver_version()
|
|
97
103
|
_version_str = str(_version)
|
|
98
104
|
|
|
99
|
-
|
|
100
|
-
def get_version():
|
|
101
|
-
return _version_str
|
|
102
|
-
|
|
103
105
|
def get_resource_opts_defaults() -> pulumi.ResourceOptions:
|
|
104
106
|
return pulumi.ResourceOptions(
|
|
105
107
|
version=get_version(),
|
|
@@ -262,7 +264,7 @@ def call_plain(
|
|
|
262
264
|
output = pulumi.runtime.call(tok, props, res, typ)
|
|
263
265
|
|
|
264
266
|
# Ingoring deps silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
265
|
-
result, known, secret, _ = _sync_await(asyncio.
|
|
267
|
+
result, known, secret, _ = _sync_await(asyncio.create_task(_await_output(output)))
|
|
266
268
|
|
|
267
269
|
problem = None
|
|
268
270
|
if not known:
|
|
@@ -287,5 +289,39 @@ async def _await_output(o: pulumi.Output[typing.Any]) -> typing.Tuple[object, bo
|
|
|
287
289
|
await o._resources,
|
|
288
290
|
)
|
|
289
291
|
|
|
292
|
+
|
|
293
|
+
# This is included to provide an upgrade path for users who are using a version
|
|
294
|
+
# of the Pulumi SDK (<3.121.0) that does not include the `deprecated` decorator.
|
|
295
|
+
def deprecated(message: str) -> typing.Callable[[C], C]:
|
|
296
|
+
"""
|
|
297
|
+
Decorator to indicate a function is deprecated.
|
|
298
|
+
|
|
299
|
+
As well as inserting appropriate statements to indicate that the function is
|
|
300
|
+
deprecated, this decorator also tags the function with a special attribute
|
|
301
|
+
so that Pulumi code can detect that it is deprecated and react appropriately
|
|
302
|
+
in certain situations.
|
|
303
|
+
|
|
304
|
+
message is the deprecation message that should be printed if the function is called.
|
|
305
|
+
"""
|
|
306
|
+
|
|
307
|
+
def decorator(fn: C) -> C:
|
|
308
|
+
if not callable(fn):
|
|
309
|
+
raise TypeError("Expected fn to be callable")
|
|
310
|
+
|
|
311
|
+
@functools.wraps(fn)
|
|
312
|
+
def deprecated_fn(*args, **kwargs):
|
|
313
|
+
warnings.warn(message)
|
|
314
|
+
pulumi.warn(f"{fn.__name__} is deprecated: {message}")
|
|
315
|
+
|
|
316
|
+
return fn(*args, **kwargs)
|
|
317
|
+
|
|
318
|
+
deprecated_fn.__dict__["_pulumi_deprecated_callable"] = fn
|
|
319
|
+
return typing.cast(C, deprecated_fn)
|
|
320
|
+
|
|
321
|
+
return decorator
|
|
322
|
+
|
|
290
323
|
def get_plugin_download_url():
|
|
291
324
|
return None
|
|
325
|
+
|
|
326
|
+
def get_version():
|
|
327
|
+
return _version_str
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = ['AccountActionArgs', 'AccountAction']
|
{pulumi_cloudamqp-3.18.0a1709359306 → pulumi_cloudamqp-3.21.0a1736832130}/pulumi_cloudamqp/alarm.py
RENAMED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = ['AlarmArgs', 'Alarm']
|
|
@@ -409,68 +414,6 @@ class Alarm(pulumi.CustomResource):
|
|
|
409
414
|
vhost_regex: Optional[pulumi.Input[str]] = None,
|
|
410
415
|
__props__=None):
|
|
411
416
|
"""
|
|
412
|
-
This resource allows you to create and manage alarms to trigger based on a set of conditions. Once triggerd a notification will be sent to the assigned recipients. When creating a new instance, there will also be a set of default alarms (cpu, memory and disk) created. All default alarms uses the default recipient for notifications.
|
|
413
|
-
|
|
414
|
-
By setting `no_default_alarms` to *true* in `Instance`. This will create the instance without default alarms and avoid the need to import them to get full control.
|
|
415
|
-
|
|
416
|
-
Available for all subscription plans, but `lemur`and `tiger`are limited to fewer alarm types. The limited types supported can be seen in the table below in Alarm Type Reference.
|
|
417
|
-
|
|
418
|
-
## Example Usage
|
|
419
|
-
|
|
420
|
-
```python
|
|
421
|
-
import pulumi
|
|
422
|
-
import pulumi_cloudamqp as cloudamqp
|
|
423
|
-
|
|
424
|
-
# New recipient
|
|
425
|
-
recipient01 = cloudamqp.Notification("recipient01",
|
|
426
|
-
instance_id=cloudamqp_instance["instance"]["id"],
|
|
427
|
-
type="email",
|
|
428
|
-
value="alarm@example.com")
|
|
429
|
-
# New cpu alarm
|
|
430
|
-
cpu_alarm = cloudamqp.Alarm("cpuAlarm",
|
|
431
|
-
instance_id=cloudamqp_instance["instance"]["id"],
|
|
432
|
-
type="cpu",
|
|
433
|
-
enabled=True,
|
|
434
|
-
reminder_interval=600,
|
|
435
|
-
value_threshold=95,
|
|
436
|
-
time_threshold=600,
|
|
437
|
-
recipients=[recipient01.id])
|
|
438
|
-
# New memory alarm
|
|
439
|
-
memory_alarm = cloudamqp.Alarm("memoryAlarm",
|
|
440
|
-
instance_id=cloudamqp_instance["instance"]["id"],
|
|
441
|
-
type="memory",
|
|
442
|
-
enabled=True,
|
|
443
|
-
reminder_interval=600,
|
|
444
|
-
value_threshold=95,
|
|
445
|
-
time_threshold=600,
|
|
446
|
-
recipients=[recipient01.id])
|
|
447
|
-
```
|
|
448
|
-
## Alarm Type reference
|
|
449
|
-
|
|
450
|
-
Supported alarm types: `cpu, memory, disk, queue, connection, flow, consumer, netsplit, server_unreachable, notice`
|
|
451
|
-
|
|
452
|
-
Required arguments for all alarms: `instance_id, type, enabled`<br>
|
|
453
|
-
Optional argument for all alarms: `tags, queue_regex, vhost_regex`
|
|
454
|
-
|
|
455
|
-
| Name | Type | Shared | Dedicated | Required arguments |
|
|
456
|
-
| ---- | ---- | ---- | ---- | ---- |
|
|
457
|
-
| CPU | cpu | - | ✔ | time_threshold, value_threshold |
|
|
458
|
-
| Memory | memory | - | ✔ | time_threshold, value_threshold |
|
|
459
|
-
| Disk space | disk | - | ✔ | time_threshold, value_threshold |
|
|
460
|
-
| Queue | queue | ✔ | ✔ | time_threshold, value_threshold, queue_regex, vhost_regex, message_type |
|
|
461
|
-
| Connection | connection | ✔ | ✔ | time_threshold, value_threshold |
|
|
462
|
-
| Connection flow | flow | ✔ | ✔ | time_threshold, value_threshold |
|
|
463
|
-
| Consumer | consumer | ✔ | ✔ | time_threshold, value_threshold, queue, vhost |
|
|
464
|
-
| Netsplit | netsplit | - | ✔ | time_threshold |
|
|
465
|
-
| Server unreachable | server_unreachable | - | ✔ | time_threshold |
|
|
466
|
-
| Notice | notice | ✔ | ✔ | |
|
|
467
|
-
|
|
468
|
-
> Notice alarm is manadatory! Only one can exists and cannot be deleted. Setting `no_default_alarm` to true, will still create this alarm.
|
|
469
|
-
|
|
470
|
-
## Dependency
|
|
471
|
-
|
|
472
|
-
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
473
|
-
|
|
474
417
|
## Import
|
|
475
418
|
|
|
476
419
|
`cloudamqp_alarm` can be imported using CloudAMQP internal identifier of the alarm together (CSV separated) with the instance identifier. To retrieve the alarm identifier, use [CloudAMQP API](https://docs.cloudamqp.com/cloudamqp_api.html#list-alarms)
|
|
@@ -504,68 +447,6 @@ class Alarm(pulumi.CustomResource):
|
|
|
504
447
|
args: AlarmArgs,
|
|
505
448
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
506
449
|
"""
|
|
507
|
-
This resource allows you to create and manage alarms to trigger based on a set of conditions. Once triggerd a notification will be sent to the assigned recipients. When creating a new instance, there will also be a set of default alarms (cpu, memory and disk) created. All default alarms uses the default recipient for notifications.
|
|
508
|
-
|
|
509
|
-
By setting `no_default_alarms` to *true* in `Instance`. This will create the instance without default alarms and avoid the need to import them to get full control.
|
|
510
|
-
|
|
511
|
-
Available for all subscription plans, but `lemur`and `tiger`are limited to fewer alarm types. The limited types supported can be seen in the table below in Alarm Type Reference.
|
|
512
|
-
|
|
513
|
-
## Example Usage
|
|
514
|
-
|
|
515
|
-
```python
|
|
516
|
-
import pulumi
|
|
517
|
-
import pulumi_cloudamqp as cloudamqp
|
|
518
|
-
|
|
519
|
-
# New recipient
|
|
520
|
-
recipient01 = cloudamqp.Notification("recipient01",
|
|
521
|
-
instance_id=cloudamqp_instance["instance"]["id"],
|
|
522
|
-
type="email",
|
|
523
|
-
value="alarm@example.com")
|
|
524
|
-
# New cpu alarm
|
|
525
|
-
cpu_alarm = cloudamqp.Alarm("cpuAlarm",
|
|
526
|
-
instance_id=cloudamqp_instance["instance"]["id"],
|
|
527
|
-
type="cpu",
|
|
528
|
-
enabled=True,
|
|
529
|
-
reminder_interval=600,
|
|
530
|
-
value_threshold=95,
|
|
531
|
-
time_threshold=600,
|
|
532
|
-
recipients=[recipient01.id])
|
|
533
|
-
# New memory alarm
|
|
534
|
-
memory_alarm = cloudamqp.Alarm("memoryAlarm",
|
|
535
|
-
instance_id=cloudamqp_instance["instance"]["id"],
|
|
536
|
-
type="memory",
|
|
537
|
-
enabled=True,
|
|
538
|
-
reminder_interval=600,
|
|
539
|
-
value_threshold=95,
|
|
540
|
-
time_threshold=600,
|
|
541
|
-
recipients=[recipient01.id])
|
|
542
|
-
```
|
|
543
|
-
## Alarm Type reference
|
|
544
|
-
|
|
545
|
-
Supported alarm types: `cpu, memory, disk, queue, connection, flow, consumer, netsplit, server_unreachable, notice`
|
|
546
|
-
|
|
547
|
-
Required arguments for all alarms: `instance_id, type, enabled`<br>
|
|
548
|
-
Optional argument for all alarms: `tags, queue_regex, vhost_regex`
|
|
549
|
-
|
|
550
|
-
| Name | Type | Shared | Dedicated | Required arguments |
|
|
551
|
-
| ---- | ---- | ---- | ---- | ---- |
|
|
552
|
-
| CPU | cpu | - | ✔ | time_threshold, value_threshold |
|
|
553
|
-
| Memory | memory | - | ✔ | time_threshold, value_threshold |
|
|
554
|
-
| Disk space | disk | - | ✔ | time_threshold, value_threshold |
|
|
555
|
-
| Queue | queue | ✔ | ✔ | time_threshold, value_threshold, queue_regex, vhost_regex, message_type |
|
|
556
|
-
| Connection | connection | ✔ | ✔ | time_threshold, value_threshold |
|
|
557
|
-
| Connection flow | flow | ✔ | ✔ | time_threshold, value_threshold |
|
|
558
|
-
| Consumer | consumer | ✔ | ✔ | time_threshold, value_threshold, queue, vhost |
|
|
559
|
-
| Netsplit | netsplit | - | ✔ | time_threshold |
|
|
560
|
-
| Server unreachable | server_unreachable | - | ✔ | time_threshold |
|
|
561
|
-
| Notice | notice | ✔ | ✔ | |
|
|
562
|
-
|
|
563
|
-
> Notice alarm is manadatory! Only one can exists and cannot be deleted. Setting `no_default_alarm` to true, will still create this alarm.
|
|
564
|
-
|
|
565
|
-
## Dependency
|
|
566
|
-
|
|
567
|
-
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
568
|
-
|
|
569
450
|
## Import
|
|
570
451
|
|
|
571
452
|
`cloudamqp_alarm` can be imported using CloudAMQP internal identifier of the alarm together (CSV separated) with the instance identifier. To retrieve the alarm identifier, use [CloudAMQP API](https://docs.cloudamqp.com/cloudamqp_api.html#list-alarms)
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from .. import _utilities
|
|
11
16
|
|
|
12
17
|
apikey: Optional[str]
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from .. import _utilities
|
|
11
16
|
|
|
12
17
|
import types
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = ['CustomDomainArgs', 'CustomDomain']
|
|
@@ -115,9 +120,10 @@ class CustomDomain(pulumi.CustomResource):
|
|
|
115
120
|
import pulumi_cloudamqp as cloudamqp
|
|
116
121
|
|
|
117
122
|
settings = cloudamqp.CustomDomain("settings",
|
|
118
|
-
instance_id=
|
|
123
|
+
instance_id=instance["id"],
|
|
119
124
|
hostname="myname.mydomain")
|
|
120
125
|
```
|
|
126
|
+
|
|
121
127
|
## Depedency
|
|
122
128
|
|
|
123
129
|
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
@@ -161,9 +167,10 @@ class CustomDomain(pulumi.CustomResource):
|
|
|
161
167
|
import pulumi_cloudamqp as cloudamqp
|
|
162
168
|
|
|
163
169
|
settings = cloudamqp.CustomDomain("settings",
|
|
164
|
-
instance_id=
|
|
170
|
+
instance_id=instance["id"],
|
|
165
171
|
hostname="myname.mydomain")
|
|
166
172
|
```
|
|
173
|
+
|
|
167
174
|
## Depedency
|
|
168
175
|
|
|
169
176
|
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|