pulumi-cloudamqp 3.18.0a1710156088__py3-none-any.whl → 3.21.0a1736849154__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.

Files changed (48) hide show
  1. pulumi_cloudamqp/__init__.py +9 -0
  2. pulumi_cloudamqp/_inputs.py +157 -6
  3. pulumi_cloudamqp/_utilities.py +41 -5
  4. pulumi_cloudamqp/account_action.py +5 -0
  5. pulumi_cloudamqp/alarm.py +5 -130
  6. pulumi_cloudamqp/config/__init__.pyi +5 -0
  7. pulumi_cloudamqp/config/vars.py +5 -0
  8. pulumi_cloudamqp/custom_domain.py +7 -6
  9. pulumi_cloudamqp/extra_disk_size.py +44 -31
  10. pulumi_cloudamqp/get_account.py +12 -77
  11. pulumi_cloudamqp/get_account_vpcs.py +12 -9
  12. pulumi_cloudamqp/get_alarm.py +29 -11
  13. pulumi_cloudamqp/get_credentials.py +17 -11
  14. pulumi_cloudamqp/get_instance.py +30 -5
  15. pulumi_cloudamqp/get_nodes.py +20 -11
  16. pulumi_cloudamqp/get_notification.py +23 -11
  17. pulumi_cloudamqp/get_plugins.py +49 -14
  18. pulumi_cloudamqp/get_plugins_community.py +49 -14
  19. pulumi_cloudamqp/get_upgradable_versions.py +17 -11
  20. pulumi_cloudamqp/get_vpc_gcp_info.py +26 -17
  21. pulumi_cloudamqp/get_vpc_info.py +23 -17
  22. pulumi_cloudamqp/instance.py +68 -147
  23. pulumi_cloudamqp/integration_aws_eventbridge.py +9 -6
  24. pulumi_cloudamqp/integration_log.py +120 -121
  25. pulumi_cloudamqp/integration_metric.py +326 -23
  26. pulumi_cloudamqp/node_actions.py +57 -58
  27. pulumi_cloudamqp/notification.py +114 -87
  28. pulumi_cloudamqp/outputs.py +71 -60
  29. pulumi_cloudamqp/plugin.py +54 -35
  30. pulumi_cloudamqp/plugin_community.py +54 -35
  31. pulumi_cloudamqp/privatelink_aws.py +43 -74
  32. pulumi_cloudamqp/privatelink_azure.py +43 -74
  33. pulumi_cloudamqp/provider.py +5 -5
  34. pulumi_cloudamqp/pulumi-plugin.json +2 -1
  35. pulumi_cloudamqp/rabbit_configuration.py +5 -0
  36. pulumi_cloudamqp/security_firewall.py +70 -24
  37. pulumi_cloudamqp/upgrade_lavinmq.py +276 -0
  38. pulumi_cloudamqp/upgrade_rabbitmq.py +300 -39
  39. pulumi_cloudamqp/vpc.py +13 -6
  40. pulumi_cloudamqp/vpc_connect.py +57 -102
  41. pulumi_cloudamqp/vpc_gcp_peering.py +260 -139
  42. pulumi_cloudamqp/vpc_peering.py +19 -2
  43. pulumi_cloudamqp/webhook.py +91 -90
  44. {pulumi_cloudamqp-3.18.0a1710156088.dist-info → pulumi_cloudamqp-3.21.0a1736849154.dist-info}/METADATA +7 -6
  45. pulumi_cloudamqp-3.21.0a1736849154.dist-info/RECORD +49 -0
  46. {pulumi_cloudamqp-3.18.0a1710156088.dist-info → pulumi_cloudamqp-3.21.0a1736849154.dist-info}/WHEEL +1 -1
  47. pulumi_cloudamqp-3.18.0a1710156088.dist-info/RECORD +0 -48
  48. {pulumi_cloudamqp-3.18.0a1710156088.dist-info → pulumi_cloudamqp-3.21.0a1736849154.dist-info}/top_level.txt +0 -0
@@ -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: Naming descripton e.g. 'Default'
197
- :param pulumi.Input[Sequence[pulumi.Input[int]]] ports: Custom ports between 0 - 65554
198
- :param pulumi.Input[Sequence[pulumi.Input[str]]] services: Pre-defined services 'AMQP', 'AMQPS', 'HTTPS', 'MQTT', 'MQTTS', 'STOMP', 'STOMPS', 'STREAM', 'STREAM_SSL'
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
- Naming descripton e.g. 'Default'
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 between 0 - 65554
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 services 'AMQP', 'AMQPS', 'HTTPS', 'MQTT', 'MQTTS', 'STOMP', 'STOMPS', 'STREAM', 'STREAM_SSL'
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.ensure_future(_await_output(output)))
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/alarm.py CHANGED
@@ -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,71 +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
- <!--Start PulumiCodeChooser -->
421
- ```python
422
- import pulumi
423
- import pulumi_cloudamqp as cloudamqp
424
-
425
- # New recipient
426
- recipient01 = cloudamqp.Notification("recipient01",
427
- instance_id=cloudamqp_instance["instance"]["id"],
428
- type="email",
429
- value="alarm@example.com")
430
- # New cpu alarm
431
- cpu_alarm = cloudamqp.Alarm("cpuAlarm",
432
- instance_id=cloudamqp_instance["instance"]["id"],
433
- type="cpu",
434
- enabled=True,
435
- reminder_interval=600,
436
- value_threshold=95,
437
- time_threshold=600,
438
- recipients=[recipient01.id])
439
- # New memory alarm
440
- memory_alarm = cloudamqp.Alarm("memoryAlarm",
441
- instance_id=cloudamqp_instance["instance"]["id"],
442
- type="memory",
443
- enabled=True,
444
- reminder_interval=600,
445
- value_threshold=95,
446
- time_threshold=600,
447
- recipients=[recipient01.id])
448
- ```
449
- <!--End PulumiCodeChooser -->
450
-
451
- ## Alarm Type reference
452
-
453
- Supported alarm types: `cpu, memory, disk, queue, connection, flow, consumer, netsplit, server_unreachable, notice`
454
-
455
- Required arguments for all alarms: `instance_id, type, enabled`<br>
456
- Optional argument for all alarms: `tags, queue_regex, vhost_regex`
457
-
458
- | Name | Type | Shared | Dedicated | Required arguments |
459
- | ---- | ---- | ---- | ---- | ---- |
460
- | CPU | cpu | - | &#10004; | time_threshold, value_threshold |
461
- | Memory | memory | - | &#10004; | time_threshold, value_threshold |
462
- | Disk space | disk | - | &#10004; | time_threshold, value_threshold |
463
- | Queue | queue | &#10004; | &#10004; | time_threshold, value_threshold, queue_regex, vhost_regex, message_type |
464
- | Connection | connection | &#10004; | &#10004; | time_threshold, value_threshold |
465
- | Connection flow | flow | &#10004; | &#10004; | time_threshold, value_threshold |
466
- | Consumer | consumer | &#10004; | &#10004; | time_threshold, value_threshold, queue, vhost |
467
- | Netsplit | netsplit | - | &#10004; | time_threshold |
468
- | Server unreachable | server_unreachable | - | &#10004; | time_threshold |
469
- | Notice | notice | &#10004; | &#10004; | |
470
-
471
- > Notice alarm is manadatory! Only one can exists and cannot be deleted. Setting `no_default_alarm` to true, will still create this alarm.
472
-
473
- ## Dependency
474
-
475
- This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
476
-
477
417
  ## Import
478
418
 
479
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)
@@ -507,71 +447,6 @@ class Alarm(pulumi.CustomResource):
507
447
  args: AlarmArgs,
508
448
  opts: Optional[pulumi.ResourceOptions] = None):
509
449
  """
510
- 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.
511
-
512
- 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.
513
-
514
- 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.
515
-
516
- ## Example Usage
517
-
518
- <!--Start PulumiCodeChooser -->
519
- ```python
520
- import pulumi
521
- import pulumi_cloudamqp as cloudamqp
522
-
523
- # New recipient
524
- recipient01 = cloudamqp.Notification("recipient01",
525
- instance_id=cloudamqp_instance["instance"]["id"],
526
- type="email",
527
- value="alarm@example.com")
528
- # New cpu alarm
529
- cpu_alarm = cloudamqp.Alarm("cpuAlarm",
530
- instance_id=cloudamqp_instance["instance"]["id"],
531
- type="cpu",
532
- enabled=True,
533
- reminder_interval=600,
534
- value_threshold=95,
535
- time_threshold=600,
536
- recipients=[recipient01.id])
537
- # New memory alarm
538
- memory_alarm = cloudamqp.Alarm("memoryAlarm",
539
- instance_id=cloudamqp_instance["instance"]["id"],
540
- type="memory",
541
- enabled=True,
542
- reminder_interval=600,
543
- value_threshold=95,
544
- time_threshold=600,
545
- recipients=[recipient01.id])
546
- ```
547
- <!--End PulumiCodeChooser -->
548
-
549
- ## Alarm Type reference
550
-
551
- Supported alarm types: `cpu, memory, disk, queue, connection, flow, consumer, netsplit, server_unreachable, notice`
552
-
553
- Required arguments for all alarms: `instance_id, type, enabled`<br>
554
- Optional argument for all alarms: `tags, queue_regex, vhost_regex`
555
-
556
- | Name | Type | Shared | Dedicated | Required arguments |
557
- | ---- | ---- | ---- | ---- | ---- |
558
- | CPU | cpu | - | &#10004; | time_threshold, value_threshold |
559
- | Memory | memory | - | &#10004; | time_threshold, value_threshold |
560
- | Disk space | disk | - | &#10004; | time_threshold, value_threshold |
561
- | Queue | queue | &#10004; | &#10004; | time_threshold, value_threshold, queue_regex, vhost_regex, message_type |
562
- | Connection | connection | &#10004; | &#10004; | time_threshold, value_threshold |
563
- | Connection flow | flow | &#10004; | &#10004; | time_threshold, value_threshold |
564
- | Consumer | consumer | &#10004; | &#10004; | time_threshold, value_threshold, queue, vhost |
565
- | Netsplit | netsplit | - | &#10004; | time_threshold |
566
- | Server unreachable | server_unreachable | - | &#10004; | time_threshold |
567
- | Notice | notice | &#10004; | &#10004; | |
568
-
569
- > Notice alarm is manadatory! Only one can exists and cannot be deleted. Setting `no_default_alarm` to true, will still create this alarm.
570
-
571
- ## Dependency
572
-
573
- This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
574
-
575
450
  ## Import
576
451
 
577
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']
@@ -110,16 +115,14 @@ class CustomDomain(pulumi.CustomResource):
110
115
 
111
116
  ## Example Usage
112
117
 
113
- <!--Start PulumiCodeChooser -->
114
118
  ```python
115
119
  import pulumi
116
120
  import pulumi_cloudamqp as cloudamqp
117
121
 
118
122
  settings = cloudamqp.CustomDomain("settings",
119
- instance_id=cloudamqp_instance["instance"]["id"],
123
+ instance_id=instance["id"],
120
124
  hostname="myname.mydomain")
121
125
  ```
122
- <!--End PulumiCodeChooser -->
123
126
 
124
127
  ## Depedency
125
128
 
@@ -159,16 +162,14 @@ class CustomDomain(pulumi.CustomResource):
159
162
 
160
163
  ## Example Usage
161
164
 
162
- <!--Start PulumiCodeChooser -->
163
165
  ```python
164
166
  import pulumi
165
167
  import pulumi_cloudamqp as cloudamqp
166
168
 
167
169
  settings = cloudamqp.CustomDomain("settings",
168
- instance_id=cloudamqp_instance["instance"]["id"],
170
+ instance_id=instance["id"],
169
171
  hostname="myname.mydomain")
170
172
  ```
171
- <!--End PulumiCodeChooser -->
172
173
 
173
174
  ## Depedency
174
175