pulumi-cloudamqp 3.18.0a1710156088__py3-none-any.whl → 3.21.0a1736832130__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/__init__.py +9 -0
- pulumi_cloudamqp/_inputs.py +157 -6
- pulumi_cloudamqp/_utilities.py +41 -5
- pulumi_cloudamqp/account_action.py +5 -0
- pulumi_cloudamqp/alarm.py +5 -130
- pulumi_cloudamqp/config/__init__.pyi +5 -0
- pulumi_cloudamqp/config/vars.py +5 -0
- pulumi_cloudamqp/custom_domain.py +7 -6
- pulumi_cloudamqp/extra_disk_size.py +44 -31
- pulumi_cloudamqp/get_account.py +12 -77
- pulumi_cloudamqp/get_account_vpcs.py +12 -9
- pulumi_cloudamqp/get_alarm.py +29 -11
- pulumi_cloudamqp/get_credentials.py +17 -11
- pulumi_cloudamqp/get_instance.py +30 -5
- pulumi_cloudamqp/get_nodes.py +20 -11
- pulumi_cloudamqp/get_notification.py +23 -11
- pulumi_cloudamqp/get_plugins.py +49 -14
- pulumi_cloudamqp/get_plugins_community.py +49 -14
- pulumi_cloudamqp/get_upgradable_versions.py +17 -11
- pulumi_cloudamqp/get_vpc_gcp_info.py +26 -17
- pulumi_cloudamqp/get_vpc_info.py +23 -17
- pulumi_cloudamqp/instance.py +68 -147
- pulumi_cloudamqp/integration_aws_eventbridge.py +9 -6
- pulumi_cloudamqp/integration_log.py +120 -121
- pulumi_cloudamqp/integration_metric.py +326 -23
- pulumi_cloudamqp/node_actions.py +57 -58
- pulumi_cloudamqp/notification.py +114 -87
- pulumi_cloudamqp/outputs.py +71 -60
- pulumi_cloudamqp/plugin.py +54 -35
- pulumi_cloudamqp/plugin_community.py +54 -35
- pulumi_cloudamqp/privatelink_aws.py +43 -74
- pulumi_cloudamqp/privatelink_azure.py +43 -74
- pulumi_cloudamqp/provider.py +5 -5
- pulumi_cloudamqp/pulumi-plugin.json +2 -1
- pulumi_cloudamqp/rabbit_configuration.py +5 -0
- pulumi_cloudamqp/security_firewall.py +70 -24
- pulumi_cloudamqp/upgrade_lavinmq.py +276 -0
- pulumi_cloudamqp/upgrade_rabbitmq.py +300 -39
- pulumi_cloudamqp/vpc.py +13 -6
- pulumi_cloudamqp/vpc_connect.py +57 -102
- pulumi_cloudamqp/vpc_gcp_peering.py +260 -139
- pulumi_cloudamqp/vpc_peering.py +19 -2
- pulumi_cloudamqp/webhook.py +91 -90
- {pulumi_cloudamqp-3.18.0a1710156088.dist-info → pulumi_cloudamqp-3.21.0a1736832130.dist-info}/METADATA +7 -6
- pulumi_cloudamqp-3.21.0a1736832130.dist-info/RECORD +49 -0
- {pulumi_cloudamqp-3.18.0a1710156088.dist-info → pulumi_cloudamqp-3.21.0a1736832130.dist-info}/WHEEL +1 -1
- pulumi_cloudamqp-3.18.0a1710156088.dist-info/RECORD +0 -48
- {pulumi_cloudamqp-3.18.0a1710156088.dist-info → pulumi_cloudamqp-3.21.0a1736832130.dist-info}/top_level.txt +0 -0
|
@@ -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
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -221,9 +226,9 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
221
226
|
"""
|
|
222
227
|
This resource allows you to resize the disk with additional storage capacity.
|
|
223
228
|
|
|
224
|
-
***
|
|
229
|
+
***Before v1.25.0***: Only available for Amazon Web Services (AWS) without downtime.
|
|
225
230
|
|
|
226
|
-
***
|
|
231
|
+
***From v1.25.0***: Google Compute Engine (GCE) and Azure available.
|
|
227
232
|
|
|
228
233
|
Introducing a new optional argument called `allow_downtime`. Leaving it out or set it to false will proceed to try and resize the disk without downtime, available for *AWS* and *GCE*.
|
|
229
234
|
While *Azure* only support swapping the disk, and this argument needs to be set to *true*.
|
|
@@ -247,26 +252,27 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
247
252
|
<details>
|
|
248
253
|
<summary>
|
|
249
254
|
<b>
|
|
250
|
-
<i>AWS extra disk size (
|
|
255
|
+
<i>AWS extra disk size (before v1.25.0)</i>
|
|
251
256
|
</b>
|
|
252
257
|
</summary>
|
|
253
258
|
|
|
254
|
-
<!--Start PulumiCodeChooser -->
|
|
255
259
|
```python
|
|
256
260
|
import pulumi
|
|
257
261
|
import pulumi_cloudamqp as cloudamqp
|
|
258
262
|
|
|
259
263
|
# Instance
|
|
260
264
|
instance = cloudamqp.Instance("instance",
|
|
265
|
+
name="Instance",
|
|
261
266
|
plan="bunny-1",
|
|
262
267
|
region="amazon-web-services::us-west-2")
|
|
263
268
|
# Resize disk with 25 extra GB
|
|
264
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
269
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
265
270
|
instance_id=instance.id,
|
|
266
271
|
extra_disk_size=25)
|
|
272
|
+
# Optional, refresh nodes info after disk resize by adding dependency
|
|
273
|
+
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
267
274
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
268
275
|
```
|
|
269
|
-
<!--End PulumiCodeChooser -->
|
|
270
276
|
|
|
271
277
|
</details>
|
|
272
278
|
|
|
@@ -277,22 +283,23 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
277
283
|
</b>
|
|
278
284
|
</summary>
|
|
279
285
|
|
|
280
|
-
<!--Start PulumiCodeChooser -->
|
|
281
286
|
```python
|
|
282
287
|
import pulumi
|
|
283
288
|
import pulumi_cloudamqp as cloudamqp
|
|
284
289
|
|
|
285
290
|
# Instance
|
|
286
291
|
instance = cloudamqp.Instance("instance",
|
|
292
|
+
name="Instance",
|
|
287
293
|
plan="bunny-1",
|
|
288
294
|
region="amazon-web-services::us-west-2")
|
|
289
295
|
# Resize disk with 25 extra GB, without downtime
|
|
290
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
296
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
291
297
|
instance_id=instance.id,
|
|
292
298
|
extra_disk_size=25)
|
|
299
|
+
# Optional, refresh nodes info after disk resize by adding dependency
|
|
300
|
+
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
293
301
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
294
302
|
```
|
|
295
|
-
<!--End PulumiCodeChooser -->
|
|
296
303
|
|
|
297
304
|
</details>
|
|
298
305
|
|
|
@@ -303,22 +310,23 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
303
310
|
</b>
|
|
304
311
|
</summary>
|
|
305
312
|
|
|
306
|
-
<!--Start PulumiCodeChooser -->
|
|
307
313
|
```python
|
|
308
314
|
import pulumi
|
|
309
315
|
import pulumi_cloudamqp as cloudamqp
|
|
310
316
|
|
|
311
317
|
# Instance
|
|
312
318
|
instance = cloudamqp.Instance("instance",
|
|
319
|
+
name="Instance",
|
|
313
320
|
plan="bunny-1",
|
|
314
321
|
region="google-compute-engine::us-central1")
|
|
315
322
|
# Resize disk with 25 extra GB, without downtime
|
|
316
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
323
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
317
324
|
instance_id=instance.id,
|
|
318
325
|
extra_disk_size=25)
|
|
326
|
+
# Optional, refresh nodes info after disk resize by adding dependency
|
|
327
|
+
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
319
328
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
320
329
|
```
|
|
321
|
-
<!--End PulumiCodeChooser -->
|
|
322
330
|
|
|
323
331
|
</details>
|
|
324
332
|
|
|
@@ -329,23 +337,24 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
329
337
|
</b>
|
|
330
338
|
</summary>
|
|
331
339
|
|
|
332
|
-
<!--Start PulumiCodeChooser -->
|
|
333
340
|
```python
|
|
334
341
|
import pulumi
|
|
335
342
|
import pulumi_cloudamqp as cloudamqp
|
|
336
343
|
|
|
337
344
|
# Instance
|
|
338
345
|
instance = cloudamqp.Instance("instance",
|
|
346
|
+
name="Instance",
|
|
339
347
|
plan="bunny-1",
|
|
340
348
|
region="azure-arm::centralus")
|
|
341
349
|
# Resize disk with 25 extra GB, with downtime
|
|
342
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
350
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
343
351
|
instance_id=instance.id,
|
|
344
352
|
extra_disk_size=25,
|
|
345
353
|
allow_downtime=True)
|
|
354
|
+
# Optional, refresh nodes info after disk resize by adding dependency
|
|
355
|
+
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
346
356
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
347
357
|
```
|
|
348
|
-
<!--End PulumiCodeChooser -->
|
|
349
358
|
|
|
350
359
|
</details>
|
|
351
360
|
|
|
@@ -393,9 +402,9 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
393
402
|
"""
|
|
394
403
|
This resource allows you to resize the disk with additional storage capacity.
|
|
395
404
|
|
|
396
|
-
***
|
|
405
|
+
***Before v1.25.0***: Only available for Amazon Web Services (AWS) without downtime.
|
|
397
406
|
|
|
398
|
-
***
|
|
407
|
+
***From v1.25.0***: Google Compute Engine (GCE) and Azure available.
|
|
399
408
|
|
|
400
409
|
Introducing a new optional argument called `allow_downtime`. Leaving it out or set it to false will proceed to try and resize the disk without downtime, available for *AWS* and *GCE*.
|
|
401
410
|
While *Azure* only support swapping the disk, and this argument needs to be set to *true*.
|
|
@@ -419,26 +428,27 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
419
428
|
<details>
|
|
420
429
|
<summary>
|
|
421
430
|
<b>
|
|
422
|
-
<i>AWS extra disk size (
|
|
431
|
+
<i>AWS extra disk size (before v1.25.0)</i>
|
|
423
432
|
</b>
|
|
424
433
|
</summary>
|
|
425
434
|
|
|
426
|
-
<!--Start PulumiCodeChooser -->
|
|
427
435
|
```python
|
|
428
436
|
import pulumi
|
|
429
437
|
import pulumi_cloudamqp as cloudamqp
|
|
430
438
|
|
|
431
439
|
# Instance
|
|
432
440
|
instance = cloudamqp.Instance("instance",
|
|
441
|
+
name="Instance",
|
|
433
442
|
plan="bunny-1",
|
|
434
443
|
region="amazon-web-services::us-west-2")
|
|
435
444
|
# Resize disk with 25 extra GB
|
|
436
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
445
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
437
446
|
instance_id=instance.id,
|
|
438
447
|
extra_disk_size=25)
|
|
448
|
+
# Optional, refresh nodes info after disk resize by adding dependency
|
|
449
|
+
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
439
450
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
440
451
|
```
|
|
441
|
-
<!--End PulumiCodeChooser -->
|
|
442
452
|
|
|
443
453
|
</details>
|
|
444
454
|
|
|
@@ -449,22 +459,23 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
449
459
|
</b>
|
|
450
460
|
</summary>
|
|
451
461
|
|
|
452
|
-
<!--Start PulumiCodeChooser -->
|
|
453
462
|
```python
|
|
454
463
|
import pulumi
|
|
455
464
|
import pulumi_cloudamqp as cloudamqp
|
|
456
465
|
|
|
457
466
|
# Instance
|
|
458
467
|
instance = cloudamqp.Instance("instance",
|
|
468
|
+
name="Instance",
|
|
459
469
|
plan="bunny-1",
|
|
460
470
|
region="amazon-web-services::us-west-2")
|
|
461
471
|
# Resize disk with 25 extra GB, without downtime
|
|
462
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
472
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
463
473
|
instance_id=instance.id,
|
|
464
474
|
extra_disk_size=25)
|
|
475
|
+
# Optional, refresh nodes info after disk resize by adding dependency
|
|
476
|
+
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
465
477
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
466
478
|
```
|
|
467
|
-
<!--End PulumiCodeChooser -->
|
|
468
479
|
|
|
469
480
|
</details>
|
|
470
481
|
|
|
@@ -475,22 +486,23 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
475
486
|
</b>
|
|
476
487
|
</summary>
|
|
477
488
|
|
|
478
|
-
<!--Start PulumiCodeChooser -->
|
|
479
489
|
```python
|
|
480
490
|
import pulumi
|
|
481
491
|
import pulumi_cloudamqp as cloudamqp
|
|
482
492
|
|
|
483
493
|
# Instance
|
|
484
494
|
instance = cloudamqp.Instance("instance",
|
|
495
|
+
name="Instance",
|
|
485
496
|
plan="bunny-1",
|
|
486
497
|
region="google-compute-engine::us-central1")
|
|
487
498
|
# Resize disk with 25 extra GB, without downtime
|
|
488
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
499
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
489
500
|
instance_id=instance.id,
|
|
490
501
|
extra_disk_size=25)
|
|
502
|
+
# Optional, refresh nodes info after disk resize by adding dependency
|
|
503
|
+
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
491
504
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
492
505
|
```
|
|
493
|
-
<!--End PulumiCodeChooser -->
|
|
494
506
|
|
|
495
507
|
</details>
|
|
496
508
|
|
|
@@ -501,23 +513,24 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
501
513
|
</b>
|
|
502
514
|
</summary>
|
|
503
515
|
|
|
504
|
-
<!--Start PulumiCodeChooser -->
|
|
505
516
|
```python
|
|
506
517
|
import pulumi
|
|
507
518
|
import pulumi_cloudamqp as cloudamqp
|
|
508
519
|
|
|
509
520
|
# Instance
|
|
510
521
|
instance = cloudamqp.Instance("instance",
|
|
522
|
+
name="Instance",
|
|
511
523
|
plan="bunny-1",
|
|
512
524
|
region="azure-arm::centralus")
|
|
513
525
|
# Resize disk with 25 extra GB, with downtime
|
|
514
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
526
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
515
527
|
instance_id=instance.id,
|
|
516
528
|
extra_disk_size=25,
|
|
517
529
|
allow_downtime=True)
|
|
530
|
+
# Optional, refresh nodes info after disk resize by adding dependency
|
|
531
|
+
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
518
532
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
519
533
|
```
|
|
520
|
-
<!--End PulumiCodeChooser -->
|
|
521
534
|
|
|
522
535
|
</details>
|
|
523
536
|
|
|
@@ -598,7 +611,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
598
611
|
allow_downtime: Optional[pulumi.Input[bool]] = None,
|
|
599
612
|
extra_disk_size: Optional[pulumi.Input[int]] = None,
|
|
600
613
|
instance_id: Optional[pulumi.Input[int]] = None,
|
|
601
|
-
nodes: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
614
|
+
nodes: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExtraDiskSizeNodeArgs', 'ExtraDiskSizeNodeArgsDict']]]]] = None,
|
|
602
615
|
sleep: Optional[pulumi.Input[int]] = None,
|
|
603
616
|
timeout: Optional[pulumi.Input[int]] = None) -> 'ExtraDiskSize':
|
|
604
617
|
"""
|
pulumi_cloudamqp/get_account.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
|
from . import outputs
|
|
12
17
|
|
|
@@ -57,42 +62,6 @@ class AwaitableGetAccountResult(GetAccountResult):
|
|
|
57
62
|
def get_account(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAccountResult:
|
|
58
63
|
"""
|
|
59
64
|
Use this data source to retrieve basic information about all instances available for an account. Uses the included apikey in provider configuration, to determine which account to read from.
|
|
60
|
-
|
|
61
|
-
## Example Usage
|
|
62
|
-
|
|
63
|
-
Can be used in other resources/data sources when instance identifier is unknown, while other attributes are known. E.g. find correct instance from `instance name`. Then iterate over instances to find the matching one and extract the instance identifier.
|
|
64
|
-
|
|
65
|
-
<!--Start PulumiCodeChooser -->
|
|
66
|
-
```python
|
|
67
|
-
import pulumi
|
|
68
|
-
import pulumi_cloudamqp as cloudamqp
|
|
69
|
-
|
|
70
|
-
instance_name = "<instance_name>"
|
|
71
|
-
instance_list = cloudamqp.get_account()
|
|
72
|
-
pulumi.export("instanceId", <nil>)
|
|
73
|
-
```
|
|
74
|
-
<!--End PulumiCodeChooser -->
|
|
75
|
-
|
|
76
|
-
## Attributes reference
|
|
77
|
-
|
|
78
|
-
All attributes reference are computed
|
|
79
|
-
|
|
80
|
-
* `id` - The identifier for this data source. Set to `na` since there is no unique identifier.
|
|
81
|
-
* `instances` - An array of instances. Each `instances` block consists of the fields documented below.
|
|
82
|
-
|
|
83
|
-
***
|
|
84
|
-
|
|
85
|
-
The `instances` block consist of
|
|
86
|
-
|
|
87
|
-
* `id` - The instance identifier.
|
|
88
|
-
* `name` - The name of the instance.
|
|
89
|
-
* `plan` - The subscription plan used for the instance.
|
|
90
|
-
* `region` - The region were the instanece is located in.
|
|
91
|
-
* `tags` - Optional tags set for the instance.
|
|
92
|
-
|
|
93
|
-
## Dependency
|
|
94
|
-
|
|
95
|
-
This data source depends on apikey set in the provider configuration.
|
|
96
65
|
"""
|
|
97
66
|
__args__ = dict()
|
|
98
67
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
@@ -101,47 +70,13 @@ def get_account(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAcco
|
|
|
101
70
|
return AwaitableGetAccountResult(
|
|
102
71
|
id=pulumi.get(__ret__, 'id'),
|
|
103
72
|
instances=pulumi.get(__ret__, 'instances'))
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
@_utilities.lift_output_func(get_account)
|
|
107
|
-
def get_account_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAccountResult]:
|
|
73
|
+
def get_account_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAccountResult]:
|
|
108
74
|
"""
|
|
109
75
|
Use this data source to retrieve basic information about all instances available for an account. Uses the included apikey in provider configuration, to determine which account to read from.
|
|
110
|
-
|
|
111
|
-
## Example Usage
|
|
112
|
-
|
|
113
|
-
Can be used in other resources/data sources when instance identifier is unknown, while other attributes are known. E.g. find correct instance from `instance name`. Then iterate over instances to find the matching one and extract the instance identifier.
|
|
114
|
-
|
|
115
|
-
<!--Start PulumiCodeChooser -->
|
|
116
|
-
```python
|
|
117
|
-
import pulumi
|
|
118
|
-
import pulumi_cloudamqp as cloudamqp
|
|
119
|
-
|
|
120
|
-
instance_name = "<instance_name>"
|
|
121
|
-
instance_list = cloudamqp.get_account()
|
|
122
|
-
pulumi.export("instanceId", <nil>)
|
|
123
|
-
```
|
|
124
|
-
<!--End PulumiCodeChooser -->
|
|
125
|
-
|
|
126
|
-
## Attributes reference
|
|
127
|
-
|
|
128
|
-
All attributes reference are computed
|
|
129
|
-
|
|
130
|
-
* `id` - The identifier for this data source. Set to `na` since there is no unique identifier.
|
|
131
|
-
* `instances` - An array of instances. Each `instances` block consists of the fields documented below.
|
|
132
|
-
|
|
133
|
-
***
|
|
134
|
-
|
|
135
|
-
The `instances` block consist of
|
|
136
|
-
|
|
137
|
-
* `id` - The instance identifier.
|
|
138
|
-
* `name` - The name of the instance.
|
|
139
|
-
* `plan` - The subscription plan used for the instance.
|
|
140
|
-
* `region` - The region were the instanece is located in.
|
|
141
|
-
* `tags` - Optional tags set for the instance.
|
|
142
|
-
|
|
143
|
-
## Dependency
|
|
144
|
-
|
|
145
|
-
This data source depends on apikey set in the provider configuration.
|
|
146
76
|
"""
|
|
147
|
-
|
|
77
|
+
__args__ = dict()
|
|
78
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
79
|
+
__ret__ = pulumi.runtime.invoke_output('cloudamqp:index/getAccount:getAccount', __args__, opts=opts, typ=GetAccountResult)
|
|
80
|
+
return __ret__.apply(lambda __response__: GetAccountResult(
|
|
81
|
+
id=pulumi.get(__response__, 'id'),
|
|
82
|
+
instances=pulumi.get(__response__, 'instances')))
|
|
@@ -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
|
from . import outputs
|
|
12
17
|
|
|
@@ -62,7 +67,6 @@ def get_account_vpcs(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe
|
|
|
62
67
|
|
|
63
68
|
Can be used in other resources/data sources when the VPC identifier is unknown, while other attributes are known. E.g. find correct VPC using the `name` you gave your VPC. Then iterate over VPCs to find the matching one and extract the VPC identifier.
|
|
64
69
|
|
|
65
|
-
<!--Start PulumiCodeChooser -->
|
|
66
70
|
```python
|
|
67
71
|
import pulumi
|
|
68
72
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -71,7 +75,6 @@ def get_account_vpcs(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe
|
|
|
71
75
|
vpc_list = cloudamqp.get_account_vpcs()
|
|
72
76
|
pulumi.export("vpcId", [vpc for vpc in vpc_list.vpcs if vpc.name == my_vpc_name][0].id)
|
|
73
77
|
```
|
|
74
|
-
<!--End PulumiCodeChooser -->
|
|
75
78
|
|
|
76
79
|
## Attributes reference
|
|
77
80
|
|
|
@@ -102,10 +105,7 @@ def get_account_vpcs(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe
|
|
|
102
105
|
return AwaitableGetAccountVpcsResult(
|
|
103
106
|
id=pulumi.get(__ret__, 'id'),
|
|
104
107
|
vpcs=pulumi.get(__ret__, 'vpcs'))
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
@_utilities.lift_output_func(get_account_vpcs)
|
|
108
|
-
def get_account_vpcs_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAccountVpcsResult]:
|
|
108
|
+
def get_account_vpcs_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAccountVpcsResult]:
|
|
109
109
|
"""
|
|
110
110
|
Use this data source to retrieve basic information about all standalone VPCs available for an account. Uses the included apikey in provider configuration to determine which account to read from.
|
|
111
111
|
|
|
@@ -113,7 +113,6 @@ def get_account_vpcs_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulu
|
|
|
113
113
|
|
|
114
114
|
Can be used in other resources/data sources when the VPC identifier is unknown, while other attributes are known. E.g. find correct VPC using the `name` you gave your VPC. Then iterate over VPCs to find the matching one and extract the VPC identifier.
|
|
115
115
|
|
|
116
|
-
<!--Start PulumiCodeChooser -->
|
|
117
116
|
```python
|
|
118
117
|
import pulumi
|
|
119
118
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -122,7 +121,6 @@ def get_account_vpcs_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulu
|
|
|
122
121
|
vpc_list = cloudamqp.get_account_vpcs()
|
|
123
122
|
pulumi.export("vpcId", [vpc for vpc in vpc_list.vpcs if vpc.name == my_vpc_name][0].id)
|
|
124
123
|
```
|
|
125
|
-
<!--End PulumiCodeChooser -->
|
|
126
124
|
|
|
127
125
|
## Attributes reference
|
|
128
126
|
|
|
@@ -146,4 +144,9 @@ def get_account_vpcs_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulu
|
|
|
146
144
|
|
|
147
145
|
This data source depends on apikey set in the provider configuration.
|
|
148
146
|
"""
|
|
149
|
-
|
|
147
|
+
__args__ = dict()
|
|
148
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
149
|
+
__ret__ = pulumi.runtime.invoke_output('cloudamqp:index/getAccountVpcs:getAccountVpcs', __args__, opts=opts, typ=GetAccountVpcsResult)
|
|
150
|
+
return __ret__.apply(lambda __response__: GetAccountVpcsResult(
|
|
151
|
+
id=pulumi.get(__response__, 'id'),
|
|
152
|
+
vpcs=pulumi.get(__response__, 'vpcs')))
|
pulumi_cloudamqp/get_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__ = [
|
|
@@ -162,15 +167,13 @@ def get_alarm(alarm_id: Optional[int] = None,
|
|
|
162
167
|
|
|
163
168
|
## Example Usage
|
|
164
169
|
|
|
165
|
-
<!--Start PulumiCodeChooser -->
|
|
166
170
|
```python
|
|
167
171
|
import pulumi
|
|
168
172
|
import pulumi_cloudamqp as cloudamqp
|
|
169
173
|
|
|
170
|
-
default_cpu_alarm = cloudamqp.get_alarm(instance_id=
|
|
174
|
+
default_cpu_alarm = cloudamqp.get_alarm(instance_id=instance["id"],
|
|
171
175
|
type="cpu")
|
|
172
176
|
```
|
|
173
|
-
<!--End PulumiCodeChooser -->
|
|
174
177
|
|
|
175
178
|
## Attributes reference
|
|
176
179
|
|
|
@@ -225,28 +228,23 @@ def get_alarm(alarm_id: Optional[int] = None,
|
|
|
225
228
|
value_calculation=pulumi.get(__ret__, 'value_calculation'),
|
|
226
229
|
value_threshold=pulumi.get(__ret__, 'value_threshold'),
|
|
227
230
|
vhost_regex=pulumi.get(__ret__, 'vhost_regex'))
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
@_utilities.lift_output_func(get_alarm)
|
|
231
231
|
def get_alarm_output(alarm_id: Optional[pulumi.Input[Optional[int]]] = None,
|
|
232
232
|
instance_id: Optional[pulumi.Input[int]] = None,
|
|
233
233
|
type: Optional[pulumi.Input[Optional[str]]] = None,
|
|
234
234
|
value_calculation: Optional[pulumi.Input[Optional[str]]] = None,
|
|
235
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAlarmResult]:
|
|
235
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAlarmResult]:
|
|
236
236
|
"""
|
|
237
237
|
Use this data source to retrieve information about default or created alarms. Either use `alarm_id` or `type` to retrieve the alarm.
|
|
238
238
|
|
|
239
239
|
## Example Usage
|
|
240
240
|
|
|
241
|
-
<!--Start PulumiCodeChooser -->
|
|
242
241
|
```python
|
|
243
242
|
import pulumi
|
|
244
243
|
import pulumi_cloudamqp as cloudamqp
|
|
245
244
|
|
|
246
|
-
default_cpu_alarm = cloudamqp.get_alarm(instance_id=
|
|
245
|
+
default_cpu_alarm = cloudamqp.get_alarm(instance_id=instance["id"],
|
|
247
246
|
type="cpu")
|
|
248
247
|
```
|
|
249
|
-
<!--End PulumiCodeChooser -->
|
|
250
248
|
|
|
251
249
|
## Attributes reference
|
|
252
250
|
|
|
@@ -279,4 +277,24 @@ def get_alarm_output(alarm_id: Optional[pulumi.Input[Optional[int]]] = None,
|
|
|
279
277
|
:param int instance_id: The CloudAMQP instance identifier.
|
|
280
278
|
:param str type: The alarm type. Either use this or `alarm_id` to give `Alarm` necessary information when retrieve the alarm. Supported alarm types
|
|
281
279
|
"""
|
|
282
|
-
|
|
280
|
+
__args__ = dict()
|
|
281
|
+
__args__['alarmId'] = alarm_id
|
|
282
|
+
__args__['instanceId'] = instance_id
|
|
283
|
+
__args__['type'] = type
|
|
284
|
+
__args__['valueCalculation'] = value_calculation
|
|
285
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
286
|
+
__ret__ = pulumi.runtime.invoke_output('cloudamqp:index/getAlarm:getAlarm', __args__, opts=opts, typ=GetAlarmResult)
|
|
287
|
+
return __ret__.apply(lambda __response__: GetAlarmResult(
|
|
288
|
+
alarm_id=pulumi.get(__response__, 'alarm_id'),
|
|
289
|
+
enabled=pulumi.get(__response__, 'enabled'),
|
|
290
|
+
id=pulumi.get(__response__, 'id'),
|
|
291
|
+
instance_id=pulumi.get(__response__, 'instance_id'),
|
|
292
|
+
message_type=pulumi.get(__response__, 'message_type'),
|
|
293
|
+
queue_regex=pulumi.get(__response__, 'queue_regex'),
|
|
294
|
+
recipients=pulumi.get(__response__, 'recipients'),
|
|
295
|
+
reminder_interval=pulumi.get(__response__, 'reminder_interval'),
|
|
296
|
+
time_threshold=pulumi.get(__response__, 'time_threshold'),
|
|
297
|
+
type=pulumi.get(__response__, 'type'),
|
|
298
|
+
value_calculation=pulumi.get(__response__, 'value_calculation'),
|
|
299
|
+
value_threshold=pulumi.get(__response__, 'value_threshold'),
|
|
300
|
+
vhost_regex=pulumi.get(__response__, 'vhost_regex')))
|
|
@@ -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__ = [
|
|
@@ -78,14 +83,12 @@ def get_credentials(instance_id: Optional[int] = None,
|
|
|
78
83
|
|
|
79
84
|
## Example Usage
|
|
80
85
|
|
|
81
|
-
<!--Start PulumiCodeChooser -->
|
|
82
86
|
```python
|
|
83
87
|
import pulumi
|
|
84
88
|
import pulumi_cloudamqp as cloudamqp
|
|
85
89
|
|
|
86
|
-
credentials = cloudamqp.get_credentials(instance_id=
|
|
90
|
+
credentials = cloudamqp.get_credentials(instance_id=instance["id"])
|
|
87
91
|
```
|
|
88
|
-
<!--End PulumiCodeChooser -->
|
|
89
92
|
|
|
90
93
|
## Attributes reference
|
|
91
94
|
|
|
@@ -112,24 +115,19 @@ def get_credentials(instance_id: Optional[int] = None,
|
|
|
112
115
|
instance_id=pulumi.get(__ret__, 'instance_id'),
|
|
113
116
|
password=pulumi.get(__ret__, 'password'),
|
|
114
117
|
username=pulumi.get(__ret__, 'username'))
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
@_utilities.lift_output_func(get_credentials)
|
|
118
118
|
def get_credentials_output(instance_id: Optional[pulumi.Input[int]] = None,
|
|
119
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCredentialsResult]:
|
|
119
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCredentialsResult]:
|
|
120
120
|
"""
|
|
121
121
|
Use this data source to retrieve information about the credentials of the configured user in Rabbit MQ. Information is extracted from `cloudamqp_instance.instance.url`.
|
|
122
122
|
|
|
123
123
|
## Example Usage
|
|
124
124
|
|
|
125
|
-
<!--Start PulumiCodeChooser -->
|
|
126
125
|
```python
|
|
127
126
|
import pulumi
|
|
128
127
|
import pulumi_cloudamqp as cloudamqp
|
|
129
128
|
|
|
130
|
-
credentials = cloudamqp.get_credentials(instance_id=
|
|
129
|
+
credentials = cloudamqp.get_credentials(instance_id=instance["id"])
|
|
131
130
|
```
|
|
132
|
-
<!--End PulumiCodeChooser -->
|
|
133
131
|
|
|
134
132
|
## Attributes reference
|
|
135
133
|
|
|
@@ -146,4 +144,12 @@ def get_credentials_output(instance_id: Optional[pulumi.Input[int]] = None,
|
|
|
146
144
|
|
|
147
145
|
:param int instance_id: The CloudAMQP instance identifier.
|
|
148
146
|
"""
|
|
149
|
-
|
|
147
|
+
__args__ = dict()
|
|
148
|
+
__args__['instanceId'] = instance_id
|
|
149
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
150
|
+
__ret__ = pulumi.runtime.invoke_output('cloudamqp:index/getCredentials:getCredentials', __args__, opts=opts, typ=GetCredentialsResult)
|
|
151
|
+
return __ret__.apply(lambda __response__: GetCredentialsResult(
|
|
152
|
+
id=pulumi.get(__response__, 'id'),
|
|
153
|
+
instance_id=pulumi.get(__response__, 'instance_id'),
|
|
154
|
+
password=pulumi.get(__response__, 'password'),
|
|
155
|
+
username=pulumi.get(__response__, 'username')))
|
pulumi_cloudamqp/get_instance.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__ = [
|
|
@@ -239,15 +244,35 @@ def get_instance(instance_id: Optional[int] = None,
|
|
|
239
244
|
vhost=pulumi.get(__ret__, 'vhost'),
|
|
240
245
|
vpc_id=pulumi.get(__ret__, 'vpc_id'),
|
|
241
246
|
vpc_subnet=pulumi.get(__ret__, 'vpc_subnet'))
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
@_utilities.lift_output_func(get_instance)
|
|
245
247
|
def get_instance_output(instance_id: Optional[pulumi.Input[int]] = None,
|
|
246
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetInstanceResult]:
|
|
248
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetInstanceResult]:
|
|
247
249
|
"""
|
|
248
250
|
Use this data source to retrieve information about an already created CloudAMQP instance. In order to retrieve the correct information, the CoudAMQP instance identifier is needed.
|
|
249
251
|
|
|
250
252
|
|
|
251
253
|
:param int instance_id: The CloudAMQP instance identifier.
|
|
252
254
|
"""
|
|
253
|
-
|
|
255
|
+
__args__ = dict()
|
|
256
|
+
__args__['instanceId'] = instance_id
|
|
257
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
258
|
+
__ret__ = pulumi.runtime.invoke_output('cloudamqp:index/getInstance:getInstance', __args__, opts=opts, typ=GetInstanceResult)
|
|
259
|
+
return __ret__.apply(lambda __response__: GetInstanceResult(
|
|
260
|
+
apikey=pulumi.get(__response__, 'apikey'),
|
|
261
|
+
backend=pulumi.get(__response__, 'backend'),
|
|
262
|
+
dedicated=pulumi.get(__response__, 'dedicated'),
|
|
263
|
+
host=pulumi.get(__response__, 'host'),
|
|
264
|
+
host_internal=pulumi.get(__response__, 'host_internal'),
|
|
265
|
+
id=pulumi.get(__response__, 'id'),
|
|
266
|
+
instance_id=pulumi.get(__response__, 'instance_id'),
|
|
267
|
+
name=pulumi.get(__response__, 'name'),
|
|
268
|
+
no_default_alarms=pulumi.get(__response__, 'no_default_alarms'),
|
|
269
|
+
nodes=pulumi.get(__response__, 'nodes'),
|
|
270
|
+
plan=pulumi.get(__response__, 'plan'),
|
|
271
|
+
ready=pulumi.get(__response__, 'ready'),
|
|
272
|
+
region=pulumi.get(__response__, 'region'),
|
|
273
|
+
rmq_version=pulumi.get(__response__, 'rmq_version'),
|
|
274
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
275
|
+
url=pulumi.get(__response__, 'url'),
|
|
276
|
+
vhost=pulumi.get(__response__, 'vhost'),
|
|
277
|
+
vpc_id=pulumi.get(__response__, 'vpc_id'),
|
|
278
|
+
vpc_subnet=pulumi.get(__response__, 'vpc_subnet')))
|