pulumi-cloudamqp 3.18.0a1709359306__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 -124
- pulumi_cloudamqp/config/__init__.pyi +5 -0
- pulumi_cloudamqp/config/vars.py +5 -0
- pulumi_cloudamqp/custom_domain.py +9 -2
- pulumi_cloudamqp/extra_disk_size.py +46 -15
- pulumi_cloudamqp/get_account.py +12 -71
- pulumi_cloudamqp/get_account_vpcs.py +14 -5
- pulumi_cloudamqp/get_alarm.py +31 -7
- pulumi_cloudamqp/get_credentials.py +19 -7
- pulumi_cloudamqp/get_instance.py +30 -47
- pulumi_cloudamqp/get_nodes.py +22 -7
- pulumi_cloudamqp/get_notification.py +25 -7
- pulumi_cloudamqp/get_plugins.py +51 -10
- pulumi_cloudamqp/get_plugins_community.py +51 -10
- pulumi_cloudamqp/get_upgradable_versions.py +19 -7
- pulumi_cloudamqp/get_vpc_gcp_info.py +28 -9
- pulumi_cloudamqp/get_vpc_info.py +25 -9
- pulumi_cloudamqp/instance.py +70 -115
- pulumi_cloudamqp/integration_aws_eventbridge.py +11 -2
- pulumi_cloudamqp/integration_log.py +432 -43
- pulumi_cloudamqp/integration_metric.py +326 -23
- pulumi_cloudamqp/node_actions.py +59 -46
- pulumi_cloudamqp/notification.py +118 -61
- pulumi_cloudamqp/outputs.py +71 -60
- pulumi_cloudamqp/plugin.py +54 -35
- pulumi_cloudamqp/plugin_community.py +56 -37
- pulumi_cloudamqp/privatelink_aws.py +49 -60
- pulumi_cloudamqp/privatelink_azure.py +49 -60
- 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 -27
- pulumi_cloudamqp/vpc.py +17 -6
- pulumi_cloudamqp/vpc_connect.py +63 -80
- pulumi_cloudamqp/vpc_gcp_peering.py +310 -103
- pulumi_cloudamqp/vpc_peering.py +19 -2
- pulumi_cloudamqp/webhook.py +91 -84
- {pulumi_cloudamqp-3.18.0a1709359306.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.0a1709359306.dist-info → pulumi_cloudamqp-3.21.0a1736832130.dist-info}/WHEEL +1 -1
- pulumi_cloudamqp-3.18.0a1709359306.dist-info/RECORD +0 -48
- {pulumi_cloudamqp-3.18.0a1709359306.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,7 +252,7 @@ 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
|
|
|
@@ -257,12 +262,15 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
257
262
|
|
|
258
263
|
# Instance
|
|
259
264
|
instance = cloudamqp.Instance("instance",
|
|
265
|
+
name="Instance",
|
|
260
266
|
plan="bunny-1",
|
|
261
267
|
region="amazon-web-services::us-west-2")
|
|
262
268
|
# Resize disk with 25 extra GB
|
|
263
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
269
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
264
270
|
instance_id=instance.id,
|
|
265
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
|
|
266
274
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
267
275
|
```
|
|
268
276
|
|
|
@@ -281,12 +289,15 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
281
289
|
|
|
282
290
|
# Instance
|
|
283
291
|
instance = cloudamqp.Instance("instance",
|
|
292
|
+
name="Instance",
|
|
284
293
|
plan="bunny-1",
|
|
285
294
|
region="amazon-web-services::us-west-2")
|
|
286
295
|
# Resize disk with 25 extra GB, without downtime
|
|
287
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
296
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
288
297
|
instance_id=instance.id,
|
|
289
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
|
|
290
301
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
291
302
|
```
|
|
292
303
|
|
|
@@ -305,12 +316,15 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
305
316
|
|
|
306
317
|
# Instance
|
|
307
318
|
instance = cloudamqp.Instance("instance",
|
|
319
|
+
name="Instance",
|
|
308
320
|
plan="bunny-1",
|
|
309
321
|
region="google-compute-engine::us-central1")
|
|
310
322
|
# Resize disk with 25 extra GB, without downtime
|
|
311
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
323
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
312
324
|
instance_id=instance.id,
|
|
313
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
|
|
314
328
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
315
329
|
```
|
|
316
330
|
|
|
@@ -329,17 +343,21 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
329
343
|
|
|
330
344
|
# Instance
|
|
331
345
|
instance = cloudamqp.Instance("instance",
|
|
346
|
+
name="Instance",
|
|
332
347
|
plan="bunny-1",
|
|
333
348
|
region="azure-arm::centralus")
|
|
334
349
|
# Resize disk with 25 extra GB, with downtime
|
|
335
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
350
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
336
351
|
instance_id=instance.id,
|
|
337
352
|
extra_disk_size=25,
|
|
338
353
|
allow_downtime=True)
|
|
354
|
+
# Optional, refresh nodes info after disk resize by adding dependency
|
|
355
|
+
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
339
356
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
340
357
|
```
|
|
341
358
|
|
|
342
359
|
</details>
|
|
360
|
+
|
|
343
361
|
## Attributes reference
|
|
344
362
|
|
|
345
363
|
All attributes reference are computed
|
|
@@ -384,9 +402,9 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
384
402
|
"""
|
|
385
403
|
This resource allows you to resize the disk with additional storage capacity.
|
|
386
404
|
|
|
387
|
-
***
|
|
405
|
+
***Before v1.25.0***: Only available for Amazon Web Services (AWS) without downtime.
|
|
388
406
|
|
|
389
|
-
***
|
|
407
|
+
***From v1.25.0***: Google Compute Engine (GCE) and Azure available.
|
|
390
408
|
|
|
391
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*.
|
|
392
410
|
While *Azure* only support swapping the disk, and this argument needs to be set to *true*.
|
|
@@ -410,7 +428,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
410
428
|
<details>
|
|
411
429
|
<summary>
|
|
412
430
|
<b>
|
|
413
|
-
<i>AWS extra disk size (
|
|
431
|
+
<i>AWS extra disk size (before v1.25.0)</i>
|
|
414
432
|
</b>
|
|
415
433
|
</summary>
|
|
416
434
|
|
|
@@ -420,12 +438,15 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
420
438
|
|
|
421
439
|
# Instance
|
|
422
440
|
instance = cloudamqp.Instance("instance",
|
|
441
|
+
name="Instance",
|
|
423
442
|
plan="bunny-1",
|
|
424
443
|
region="amazon-web-services::us-west-2")
|
|
425
444
|
# Resize disk with 25 extra GB
|
|
426
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
445
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
427
446
|
instance_id=instance.id,
|
|
428
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
|
|
429
450
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
430
451
|
```
|
|
431
452
|
|
|
@@ -444,12 +465,15 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
444
465
|
|
|
445
466
|
# Instance
|
|
446
467
|
instance = cloudamqp.Instance("instance",
|
|
468
|
+
name="Instance",
|
|
447
469
|
plan="bunny-1",
|
|
448
470
|
region="amazon-web-services::us-west-2")
|
|
449
471
|
# Resize disk with 25 extra GB, without downtime
|
|
450
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
472
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
451
473
|
instance_id=instance.id,
|
|
452
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
|
|
453
477
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
454
478
|
```
|
|
455
479
|
|
|
@@ -468,12 +492,15 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
468
492
|
|
|
469
493
|
# Instance
|
|
470
494
|
instance = cloudamqp.Instance("instance",
|
|
495
|
+
name="Instance",
|
|
471
496
|
plan="bunny-1",
|
|
472
497
|
region="google-compute-engine::us-central1")
|
|
473
498
|
# Resize disk with 25 extra GB, without downtime
|
|
474
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
499
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
475
500
|
instance_id=instance.id,
|
|
476
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
|
|
477
504
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
478
505
|
```
|
|
479
506
|
|
|
@@ -492,17 +519,21 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
492
519
|
|
|
493
520
|
# Instance
|
|
494
521
|
instance = cloudamqp.Instance("instance",
|
|
522
|
+
name="Instance",
|
|
495
523
|
plan="bunny-1",
|
|
496
524
|
region="azure-arm::centralus")
|
|
497
525
|
# Resize disk with 25 extra GB, with downtime
|
|
498
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
526
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
499
527
|
instance_id=instance.id,
|
|
500
528
|
extra_disk_size=25,
|
|
501
529
|
allow_downtime=True)
|
|
530
|
+
# Optional, refresh nodes info after disk resize by adding dependency
|
|
531
|
+
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
502
532
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
503
533
|
```
|
|
504
534
|
|
|
505
535
|
</details>
|
|
536
|
+
|
|
506
537
|
## Attributes reference
|
|
507
538
|
|
|
508
539
|
All attributes reference are computed
|
|
@@ -580,7 +611,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
580
611
|
allow_downtime: Optional[pulumi.Input[bool]] = None,
|
|
581
612
|
extra_disk_size: Optional[pulumi.Input[int]] = None,
|
|
582
613
|
instance_id: Optional[pulumi.Input[int]] = None,
|
|
583
|
-
nodes: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
614
|
+
nodes: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExtraDiskSizeNodeArgs', 'ExtraDiskSizeNodeArgsDict']]]]] = None,
|
|
584
615
|
sleep: Optional[pulumi.Input[int]] = None,
|
|
585
616
|
timeout: Optional[pulumi.Input[int]] = None) -> 'ExtraDiskSize':
|
|
586
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,39 +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
|
-
```python
|
|
66
|
-
import pulumi
|
|
67
|
-
import pulumi_cloudamqp as cloudamqp
|
|
68
|
-
|
|
69
|
-
instance_name = "<instance_name>"
|
|
70
|
-
instance_list = cloudamqp.get_account()
|
|
71
|
-
pulumi.export("instanceId", <nil>)
|
|
72
|
-
```
|
|
73
|
-
## Attributes reference
|
|
74
|
-
|
|
75
|
-
All attributes reference are computed
|
|
76
|
-
|
|
77
|
-
* `id` - The identifier for this data source. Set to `na` since there is no unique identifier.
|
|
78
|
-
* `instances` - An array of instances. Each `instances` block consists of the fields documented below.
|
|
79
|
-
|
|
80
|
-
***
|
|
81
|
-
|
|
82
|
-
The `instances` block consist of
|
|
83
|
-
|
|
84
|
-
* `id` - The instance identifier.
|
|
85
|
-
* `name` - The name of the instance.
|
|
86
|
-
* `plan` - The subscription plan used for the instance.
|
|
87
|
-
* `region` - The region were the instanece is located in.
|
|
88
|
-
* `tags` - Optional tags set for the instance.
|
|
89
|
-
|
|
90
|
-
## Dependency
|
|
91
|
-
|
|
92
|
-
This data source depends on apikey set in the provider configuration.
|
|
93
65
|
"""
|
|
94
66
|
__args__ = dict()
|
|
95
67
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
@@ -98,44 +70,13 @@ def get_account(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAcco
|
|
|
98
70
|
return AwaitableGetAccountResult(
|
|
99
71
|
id=pulumi.get(__ret__, 'id'),
|
|
100
72
|
instances=pulumi.get(__ret__, 'instances'))
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
@_utilities.lift_output_func(get_account)
|
|
104
|
-
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]:
|
|
105
74
|
"""
|
|
106
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.
|
|
107
|
-
|
|
108
|
-
## Example Usage
|
|
109
|
-
|
|
110
|
-
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.
|
|
111
|
-
|
|
112
|
-
```python
|
|
113
|
-
import pulumi
|
|
114
|
-
import pulumi_cloudamqp as cloudamqp
|
|
115
|
-
|
|
116
|
-
instance_name = "<instance_name>"
|
|
117
|
-
instance_list = cloudamqp.get_account()
|
|
118
|
-
pulumi.export("instanceId", <nil>)
|
|
119
|
-
```
|
|
120
|
-
## Attributes reference
|
|
121
|
-
|
|
122
|
-
All attributes reference are computed
|
|
123
|
-
|
|
124
|
-
* `id` - The identifier for this data source. Set to `na` since there is no unique identifier.
|
|
125
|
-
* `instances` - An array of instances. Each `instances` block consists of the fields documented below.
|
|
126
|
-
|
|
127
|
-
***
|
|
128
|
-
|
|
129
|
-
The `instances` block consist of
|
|
130
|
-
|
|
131
|
-
* `id` - The instance identifier.
|
|
132
|
-
* `name` - The name of the instance.
|
|
133
|
-
* `plan` - The subscription plan used for the instance.
|
|
134
|
-
* `region` - The region were the instanece is located in.
|
|
135
|
-
* `tags` - Optional tags set for the instance.
|
|
136
|
-
|
|
137
|
-
## Dependency
|
|
138
|
-
|
|
139
|
-
This data source depends on apikey set in the provider configuration.
|
|
140
76
|
"""
|
|
141
|
-
|
|
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
|
|
|
@@ -70,6 +75,7 @@ def get_account_vpcs(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe
|
|
|
70
75
|
vpc_list = cloudamqp.get_account_vpcs()
|
|
71
76
|
pulumi.export("vpcId", [vpc for vpc in vpc_list.vpcs if vpc.name == my_vpc_name][0].id)
|
|
72
77
|
```
|
|
78
|
+
|
|
73
79
|
## Attributes reference
|
|
74
80
|
|
|
75
81
|
All attributes reference are computed
|
|
@@ -99,10 +105,7 @@ def get_account_vpcs(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe
|
|
|
99
105
|
return AwaitableGetAccountVpcsResult(
|
|
100
106
|
id=pulumi.get(__ret__, 'id'),
|
|
101
107
|
vpcs=pulumi.get(__ret__, 'vpcs'))
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
@_utilities.lift_output_func(get_account_vpcs)
|
|
105
|
-
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]:
|
|
106
109
|
"""
|
|
107
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.
|
|
108
111
|
|
|
@@ -118,6 +121,7 @@ def get_account_vpcs_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulu
|
|
|
118
121
|
vpc_list = cloudamqp.get_account_vpcs()
|
|
119
122
|
pulumi.export("vpcId", [vpc for vpc in vpc_list.vpcs if vpc.name == my_vpc_name][0].id)
|
|
120
123
|
```
|
|
124
|
+
|
|
121
125
|
## Attributes reference
|
|
122
126
|
|
|
123
127
|
All attributes reference are computed
|
|
@@ -140,4 +144,9 @@ def get_account_vpcs_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulu
|
|
|
140
144
|
|
|
141
145
|
This data source depends on apikey set in the provider configuration.
|
|
142
146
|
"""
|
|
143
|
-
|
|
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__ = [
|
|
@@ -166,9 +171,10 @@ def get_alarm(alarm_id: Optional[int] = None,
|
|
|
166
171
|
import pulumi
|
|
167
172
|
import pulumi_cloudamqp as cloudamqp
|
|
168
173
|
|
|
169
|
-
default_cpu_alarm = cloudamqp.get_alarm(instance_id=
|
|
174
|
+
default_cpu_alarm = cloudamqp.get_alarm(instance_id=instance["id"],
|
|
170
175
|
type="cpu")
|
|
171
176
|
```
|
|
177
|
+
|
|
172
178
|
## Attributes reference
|
|
173
179
|
|
|
174
180
|
All attributes reference are computed
|
|
@@ -222,14 +228,11 @@ def get_alarm(alarm_id: Optional[int] = None,
|
|
|
222
228
|
value_calculation=pulumi.get(__ret__, 'value_calculation'),
|
|
223
229
|
value_threshold=pulumi.get(__ret__, 'value_threshold'),
|
|
224
230
|
vhost_regex=pulumi.get(__ret__, 'vhost_regex'))
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
@_utilities.lift_output_func(get_alarm)
|
|
228
231
|
def get_alarm_output(alarm_id: Optional[pulumi.Input[Optional[int]]] = None,
|
|
229
232
|
instance_id: Optional[pulumi.Input[int]] = None,
|
|
230
233
|
type: Optional[pulumi.Input[Optional[str]]] = None,
|
|
231
234
|
value_calculation: Optional[pulumi.Input[Optional[str]]] = None,
|
|
232
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAlarmResult]:
|
|
235
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAlarmResult]:
|
|
233
236
|
"""
|
|
234
237
|
Use this data source to retrieve information about default or created alarms. Either use `alarm_id` or `type` to retrieve the alarm.
|
|
235
238
|
|
|
@@ -239,9 +242,10 @@ def get_alarm_output(alarm_id: Optional[pulumi.Input[Optional[int]]] = None,
|
|
|
239
242
|
import pulumi
|
|
240
243
|
import pulumi_cloudamqp as cloudamqp
|
|
241
244
|
|
|
242
|
-
default_cpu_alarm = cloudamqp.get_alarm(instance_id=
|
|
245
|
+
default_cpu_alarm = cloudamqp.get_alarm(instance_id=instance["id"],
|
|
243
246
|
type="cpu")
|
|
244
247
|
```
|
|
248
|
+
|
|
245
249
|
## Attributes reference
|
|
246
250
|
|
|
247
251
|
All attributes reference are computed
|
|
@@ -273,4 +277,24 @@ def get_alarm_output(alarm_id: Optional[pulumi.Input[Optional[int]]] = None,
|
|
|
273
277
|
:param int instance_id: The CloudAMQP instance identifier.
|
|
274
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
|
|
275
279
|
"""
|
|
276
|
-
|
|
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__ = [
|
|
@@ -82,8 +87,9 @@ def get_credentials(instance_id: Optional[int] = None,
|
|
|
82
87
|
import pulumi
|
|
83
88
|
import pulumi_cloudamqp as cloudamqp
|
|
84
89
|
|
|
85
|
-
credentials = cloudamqp.get_credentials(instance_id=
|
|
90
|
+
credentials = cloudamqp.get_credentials(instance_id=instance["id"])
|
|
86
91
|
```
|
|
92
|
+
|
|
87
93
|
## Attributes reference
|
|
88
94
|
|
|
89
95
|
All attributes reference are computed.
|
|
@@ -109,11 +115,8 @@ def get_credentials(instance_id: Optional[int] = None,
|
|
|
109
115
|
instance_id=pulumi.get(__ret__, 'instance_id'),
|
|
110
116
|
password=pulumi.get(__ret__, 'password'),
|
|
111
117
|
username=pulumi.get(__ret__, 'username'))
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
@_utilities.lift_output_func(get_credentials)
|
|
115
118
|
def get_credentials_output(instance_id: Optional[pulumi.Input[int]] = None,
|
|
116
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCredentialsResult]:
|
|
119
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCredentialsResult]:
|
|
117
120
|
"""
|
|
118
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`.
|
|
119
122
|
|
|
@@ -123,8 +126,9 @@ def get_credentials_output(instance_id: Optional[pulumi.Input[int]] = None,
|
|
|
123
126
|
import pulumi
|
|
124
127
|
import pulumi_cloudamqp as cloudamqp
|
|
125
128
|
|
|
126
|
-
credentials = cloudamqp.get_credentials(instance_id=
|
|
129
|
+
credentials = cloudamqp.get_credentials(instance_id=instance["id"])
|
|
127
130
|
```
|
|
131
|
+
|
|
128
132
|
## Attributes reference
|
|
129
133
|
|
|
130
134
|
All attributes reference are computed.
|
|
@@ -140,4 +144,12 @@ def get_credentials_output(instance_id: Optional[pulumi.Input[int]] = None,
|
|
|
140
144
|
|
|
141
145
|
:param int instance_id: The CloudAMQP instance identifier.
|
|
142
146
|
"""
|
|
143
|
-
|
|
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__ = [
|
|
@@ -211,27 +216,6 @@ def get_instance(instance_id: Optional[int] = None,
|
|
|
211
216
|
"""
|
|
212
217
|
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.
|
|
213
218
|
|
|
214
|
-
## Attributes reference
|
|
215
|
-
|
|
216
|
-
All attributes reference are computed
|
|
217
|
-
|
|
218
|
-
* `id` - The identifier for this resource.
|
|
219
|
-
* `name` - The name of the CloudAMQP instance.
|
|
220
|
-
* `plan` - The subscription plan for the CloudAMQP instance.
|
|
221
|
-
* `region` - The cloud platform and region that host the CloudAMQP instance, `{platform}::{region}`.
|
|
222
|
-
* `vpc_id` - ID of the VPC configured for the CloudAMQP instance.
|
|
223
|
-
* `vpc_subnet` - Dedicated VPC subnet configured for the CloudAMQP instance.
|
|
224
|
-
* `nodes` - Number of nodes in the cluster of the CloudAMQP instance.
|
|
225
|
-
* `rmq_version` - The version of installed Rabbit MQ.
|
|
226
|
-
* `url` - (Sensitive) The AMQP URL (uses the internal hostname if the instance was created with VPC), used by clients to connect for pub/sub.
|
|
227
|
-
* `apikey` - (Sensitive) The API key to secondary API handing alarms, integration etc.
|
|
228
|
-
* `tags` - Tags the CloudAMQP instance with categories.
|
|
229
|
-
* `host` - The external hostname for the CloudAMQP instance.
|
|
230
|
-
* `host_internal` - The internal hostname for the CloudAMQP instance.
|
|
231
|
-
* `vhost` - The virtual host configured in Rabbit MQ.
|
|
232
|
-
* `dedicated` - Information if the CloudAMQP instance is shared or dedicated.
|
|
233
|
-
* `backend` - Information if the CloudAMQP instance runs either RabbitMQ or LavinMQ.
|
|
234
|
-
|
|
235
219
|
|
|
236
220
|
:param int instance_id: The CloudAMQP instance identifier.
|
|
237
221
|
"""
|
|
@@ -260,36 +244,35 @@ def get_instance(instance_id: Optional[int] = None,
|
|
|
260
244
|
vhost=pulumi.get(__ret__, 'vhost'),
|
|
261
245
|
vpc_id=pulumi.get(__ret__, 'vpc_id'),
|
|
262
246
|
vpc_subnet=pulumi.get(__ret__, 'vpc_subnet'))
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
@_utilities.lift_output_func(get_instance)
|
|
266
247
|
def get_instance_output(instance_id: Optional[pulumi.Input[int]] = None,
|
|
267
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetInstanceResult]:
|
|
248
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetInstanceResult]:
|
|
268
249
|
"""
|
|
269
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.
|
|
270
251
|
|
|
271
|
-
## Attributes reference
|
|
272
|
-
|
|
273
|
-
All attributes reference are computed
|
|
274
|
-
|
|
275
|
-
* `id` - The identifier for this resource.
|
|
276
|
-
* `name` - The name of the CloudAMQP instance.
|
|
277
|
-
* `plan` - The subscription plan for the CloudAMQP instance.
|
|
278
|
-
* `region` - The cloud platform and region that host the CloudAMQP instance, `{platform}::{region}`.
|
|
279
|
-
* `vpc_id` - ID of the VPC configured for the CloudAMQP instance.
|
|
280
|
-
* `vpc_subnet` - Dedicated VPC subnet configured for the CloudAMQP instance.
|
|
281
|
-
* `nodes` - Number of nodes in the cluster of the CloudAMQP instance.
|
|
282
|
-
* `rmq_version` - The version of installed Rabbit MQ.
|
|
283
|
-
* `url` - (Sensitive) The AMQP URL (uses the internal hostname if the instance was created with VPC), used by clients to connect for pub/sub.
|
|
284
|
-
* `apikey` - (Sensitive) The API key to secondary API handing alarms, integration etc.
|
|
285
|
-
* `tags` - Tags the CloudAMQP instance with categories.
|
|
286
|
-
* `host` - The external hostname for the CloudAMQP instance.
|
|
287
|
-
* `host_internal` - The internal hostname for the CloudAMQP instance.
|
|
288
|
-
* `vhost` - The virtual host configured in Rabbit MQ.
|
|
289
|
-
* `dedicated` - Information if the CloudAMQP instance is shared or dedicated.
|
|
290
|
-
* `backend` - Information if the CloudAMQP instance runs either RabbitMQ or LavinMQ.
|
|
291
|
-
|
|
292
252
|
|
|
293
253
|
:param int instance_id: The CloudAMQP instance identifier.
|
|
294
254
|
"""
|
|
295
|
-
|
|
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')))
|