pulumi-cloudamqp 3.22.0a1746163592__py3-none-any.whl → 3.23.0__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 +6 -4
- pulumi_cloudamqp/_inputs.py +1 -1
- pulumi_cloudamqp/_utilities.py +1 -1
- pulumi_cloudamqp/{account_action.py → account_actions.py} +34 -49
- pulumi_cloudamqp/alarm.py +2 -4
- pulumi_cloudamqp/config/__init__.py +1 -1
- pulumi_cloudamqp/config/__init__.pyi +1 -1
- pulumi_cloudamqp/config/vars.py +1 -1
- pulumi_cloudamqp/custom_domain.py +2 -4
- pulumi_cloudamqp/extra_disk_size.py +2 -4
- pulumi_cloudamqp/get_account.py +1 -1
- pulumi_cloudamqp/get_account_vpcs.py +1 -1
- pulumi_cloudamqp/get_alarm.py +1 -1
- pulumi_cloudamqp/get_alarms.py +165 -0
- pulumi_cloudamqp/get_credentials.py +1 -1
- pulumi_cloudamqp/get_instance.py +1 -1
- pulumi_cloudamqp/get_nodes.py +1 -1
- pulumi_cloudamqp/get_notification.py +1 -1
- pulumi_cloudamqp/get_notifications.py +135 -0
- pulumi_cloudamqp/get_plugins.py +1 -1
- pulumi_cloudamqp/get_plugins_community.py +1 -1
- pulumi_cloudamqp/get_upgradable_versions.py +1 -1
- pulumi_cloudamqp/get_vpc_gcp_info.py +1 -1
- pulumi_cloudamqp/get_vpc_info.py +1 -1
- pulumi_cloudamqp/instance.py +2 -4
- pulumi_cloudamqp/integration_aws_eventbridge.py +2 -4
- pulumi_cloudamqp/integration_log.py +2 -4
- pulumi_cloudamqp/integration_metric.py +2 -4
- pulumi_cloudamqp/maintenance_window.py +2 -4
- pulumi_cloudamqp/node_actions.py +2 -4
- pulumi_cloudamqp/notification.py +2 -4
- pulumi_cloudamqp/outputs.py +204 -1
- pulumi_cloudamqp/plugin.py +2 -4
- pulumi_cloudamqp/plugin_community.py +2 -4
- pulumi_cloudamqp/privatelink_aws.py +2 -4
- pulumi_cloudamqp/privatelink_azure.py +2 -4
- pulumi_cloudamqp/provider.py +29 -12
- pulumi_cloudamqp/pulumi-plugin.json +1 -1
- pulumi_cloudamqp/rabbit_configuration.py +4 -20
- pulumi_cloudamqp/security_firewall.py +2 -4
- pulumi_cloudamqp/upgrade_lavinmq.py +2 -4
- pulumi_cloudamqp/upgrade_rabbitmq.py +2 -4
- pulumi_cloudamqp/vpc.py +2 -4
- pulumi_cloudamqp/vpc_connect.py +2 -4
- pulumi_cloudamqp/vpc_gcp_peering.py +2 -4
- pulumi_cloudamqp/vpc_peering.py +2 -4
- pulumi_cloudamqp/webhook.py +2 -4
- {pulumi_cloudamqp-3.22.0a1746163592.dist-info → pulumi_cloudamqp-3.23.0.dist-info}/METADATA +3 -3
- pulumi_cloudamqp-3.23.0.dist-info/RECORD +52 -0
- {pulumi_cloudamqp-3.22.0a1746163592.dist-info → pulumi_cloudamqp-3.23.0.dist-info}/WHEEL +1 -1
- pulumi_cloudamqp-3.22.0a1746163592.dist-info/RECORD +0 -50
- {pulumi_cloudamqp-3.22.0a1746163592.dist-info → pulumi_cloudamqp-3.23.0.dist-info}/top_level.txt +0 -0
pulumi_cloudamqp/__init__.py
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
5
|
import builtins
|
|
6
6
|
from . import _utilities
|
|
7
7
|
import typing
|
|
8
8
|
# Export this package's modules as members:
|
|
9
|
-
from .
|
|
9
|
+
from .account_actions import *
|
|
10
10
|
from .alarm import *
|
|
11
11
|
from .custom_domain import *
|
|
12
12
|
from .extra_disk_size import *
|
|
13
13
|
from .get_account import *
|
|
14
14
|
from .get_account_vpcs import *
|
|
15
15
|
from .get_alarm import *
|
|
16
|
+
from .get_alarms import *
|
|
16
17
|
from .get_credentials import *
|
|
17
18
|
from .get_instance import *
|
|
18
19
|
from .get_nodes import *
|
|
19
20
|
from .get_notification import *
|
|
21
|
+
from .get_notifications import *
|
|
20
22
|
from .get_plugins import *
|
|
21
23
|
from .get_plugins_community import *
|
|
22
24
|
from .get_upgradable_versions import *
|
|
@@ -58,10 +60,10 @@ _utilities.register(
|
|
|
58
60
|
[
|
|
59
61
|
{
|
|
60
62
|
"pkg": "cloudamqp",
|
|
61
|
-
"mod": "index/
|
|
63
|
+
"mod": "index/accountActions",
|
|
62
64
|
"fqn": "pulumi_cloudamqp",
|
|
63
65
|
"classes": {
|
|
64
|
-
"cloudamqp:index/
|
|
66
|
+
"cloudamqp:index/accountActions:AccountActions": "AccountActions"
|
|
65
67
|
}
|
|
66
68
|
},
|
|
67
69
|
{
|
pulumi_cloudamqp/_inputs.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
5
|
import builtins
|
pulumi_cloudamqp/_utilities.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
5
|
import builtins
|
|
@@ -15,18 +15,17 @@ else:
|
|
|
15
15
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
16
16
|
from . import _utilities
|
|
17
17
|
|
|
18
|
-
__all__ = ['
|
|
18
|
+
__all__ = ['AccountActionsArgs', 'AccountActions']
|
|
19
19
|
|
|
20
20
|
@pulumi.input_type
|
|
21
|
-
class
|
|
21
|
+
class AccountActionsArgs:
|
|
22
22
|
def __init__(__self__, *,
|
|
23
23
|
action: pulumi.Input[builtins.str],
|
|
24
24
|
instance_id: pulumi.Input[builtins.int]):
|
|
25
25
|
"""
|
|
26
|
-
The set of arguments for constructing a
|
|
27
|
-
:param pulumi.Input[builtins.str] action: The action to
|
|
28
|
-
|
|
29
|
-
:param pulumi.Input[builtins.int] instance_id: The CloudAMQP instance ID.
|
|
26
|
+
The set of arguments for constructing a AccountActions resource.
|
|
27
|
+
:param pulumi.Input[builtins.str] action: The action to perform on the node
|
|
28
|
+
:param pulumi.Input[builtins.int] instance_id: Instance identifier
|
|
30
29
|
"""
|
|
31
30
|
pulumi.set(__self__, "action", action)
|
|
32
31
|
pulumi.set(__self__, "instance_id", instance_id)
|
|
@@ -35,8 +34,7 @@ class AccountActionArgs:
|
|
|
35
34
|
@pulumi.getter
|
|
36
35
|
def action(self) -> pulumi.Input[builtins.str]:
|
|
37
36
|
"""
|
|
38
|
-
The action to
|
|
39
|
-
`rotate-password`, `rotate-apikey`.
|
|
37
|
+
The action to perform on the node
|
|
40
38
|
"""
|
|
41
39
|
return pulumi.get(self, "action")
|
|
42
40
|
|
|
@@ -48,7 +46,7 @@ class AccountActionArgs:
|
|
|
48
46
|
@pulumi.getter(name="instanceId")
|
|
49
47
|
def instance_id(self) -> pulumi.Input[builtins.int]:
|
|
50
48
|
"""
|
|
51
|
-
|
|
49
|
+
Instance identifier
|
|
52
50
|
"""
|
|
53
51
|
return pulumi.get(self, "instance_id")
|
|
54
52
|
|
|
@@ -58,15 +56,14 @@ class AccountActionArgs:
|
|
|
58
56
|
|
|
59
57
|
|
|
60
58
|
@pulumi.input_type
|
|
61
|
-
class
|
|
59
|
+
class _AccountActionsState:
|
|
62
60
|
def __init__(__self__, *,
|
|
63
61
|
action: Optional[pulumi.Input[builtins.str]] = None,
|
|
64
62
|
instance_id: Optional[pulumi.Input[builtins.int]] = None):
|
|
65
63
|
"""
|
|
66
|
-
Input properties used for looking up and filtering
|
|
67
|
-
:param pulumi.Input[builtins.str] action: The action to
|
|
68
|
-
|
|
69
|
-
:param pulumi.Input[builtins.int] instance_id: The CloudAMQP instance ID.
|
|
64
|
+
Input properties used for looking up and filtering AccountActions resources.
|
|
65
|
+
:param pulumi.Input[builtins.str] action: The action to perform on the node
|
|
66
|
+
:param pulumi.Input[builtins.int] instance_id: Instance identifier
|
|
70
67
|
"""
|
|
71
68
|
if action is not None:
|
|
72
69
|
pulumi.set(__self__, "action", action)
|
|
@@ -77,8 +74,7 @@ class _AccountActionState:
|
|
|
77
74
|
@pulumi.getter
|
|
78
75
|
def action(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
79
76
|
"""
|
|
80
|
-
The action to
|
|
81
|
-
`rotate-password`, `rotate-apikey`.
|
|
77
|
+
The action to perform on the node
|
|
82
78
|
"""
|
|
83
79
|
return pulumi.get(self, "action")
|
|
84
80
|
|
|
@@ -90,7 +86,7 @@ class _AccountActionState:
|
|
|
90
86
|
@pulumi.getter(name="instanceId")
|
|
91
87
|
def instance_id(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
92
88
|
"""
|
|
93
|
-
|
|
89
|
+
Instance identifier
|
|
94
90
|
"""
|
|
95
91
|
return pulumi.get(self, "instance_id")
|
|
96
92
|
|
|
@@ -99,10 +95,8 @@ class _AccountActionState:
|
|
|
99
95
|
pulumi.set(self, "instance_id", value)
|
|
100
96
|
|
|
101
97
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
pulumi_type = "cloudamqp:index/accountAction:AccountAction"
|
|
105
|
-
|
|
98
|
+
@pulumi.type_token("cloudamqp:index/accountActions:AccountActions")
|
|
99
|
+
class AccountActions(pulumi.CustomResource):
|
|
106
100
|
@overload
|
|
107
101
|
def __init__(__self__,
|
|
108
102
|
resource_name: str,
|
|
@@ -111,34 +105,27 @@ class AccountAction(pulumi.CustomResource):
|
|
|
111
105
|
instance_id: Optional[pulumi.Input[builtins.int]] = None,
|
|
112
106
|
__props__=None):
|
|
113
107
|
"""
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
Not possible to import this resource.
|
|
117
|
-
|
|
108
|
+
Create a AccountActions resource with the given unique name, props, and options.
|
|
118
109
|
:param str resource_name: The name of the resource.
|
|
119
110
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
120
|
-
:param pulumi.Input[builtins.str] action: The action to
|
|
121
|
-
|
|
122
|
-
:param pulumi.Input[builtins.int] instance_id: The CloudAMQP instance ID.
|
|
111
|
+
:param pulumi.Input[builtins.str] action: The action to perform on the node
|
|
112
|
+
:param pulumi.Input[builtins.int] instance_id: Instance identifier
|
|
123
113
|
"""
|
|
124
114
|
...
|
|
125
115
|
@overload
|
|
126
116
|
def __init__(__self__,
|
|
127
117
|
resource_name: str,
|
|
128
|
-
args:
|
|
118
|
+
args: AccountActionsArgs,
|
|
129
119
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
130
120
|
"""
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
Not possible to import this resource.
|
|
134
|
-
|
|
121
|
+
Create a AccountActions resource with the given unique name, props, and options.
|
|
135
122
|
:param str resource_name: The name of the resource.
|
|
136
|
-
:param
|
|
123
|
+
:param AccountActionsArgs args: The arguments to use to populate this resource's properties.
|
|
137
124
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
138
125
|
"""
|
|
139
126
|
...
|
|
140
127
|
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
141
|
-
resource_args, opts = _utilities.get_resource_args_opts(
|
|
128
|
+
resource_args, opts = _utilities.get_resource_args_opts(AccountActionsArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
142
129
|
if resource_args is not None:
|
|
143
130
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
144
131
|
else:
|
|
@@ -156,7 +143,7 @@ class AccountAction(pulumi.CustomResource):
|
|
|
156
143
|
if opts.id is None:
|
|
157
144
|
if __props__ is not None:
|
|
158
145
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
159
|
-
__props__ =
|
|
146
|
+
__props__ = AccountActionsArgs.__new__(AccountActionsArgs)
|
|
160
147
|
|
|
161
148
|
if action is None and not opts.urn:
|
|
162
149
|
raise TypeError("Missing required property 'action'")
|
|
@@ -164,8 +151,8 @@ class AccountAction(pulumi.CustomResource):
|
|
|
164
151
|
if instance_id is None and not opts.urn:
|
|
165
152
|
raise TypeError("Missing required property 'instance_id'")
|
|
166
153
|
__props__.__dict__["instance_id"] = instance_id
|
|
167
|
-
super(
|
|
168
|
-
'cloudamqp:index/
|
|
154
|
+
super(AccountActions, __self__).__init__(
|
|
155
|
+
'cloudamqp:index/accountActions:AccountActions',
|
|
169
156
|
resource_name,
|
|
170
157
|
__props__,
|
|
171
158
|
opts)
|
|
@@ -175,32 +162,30 @@ class AccountAction(pulumi.CustomResource):
|
|
|
175
162
|
id: pulumi.Input[str],
|
|
176
163
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
177
164
|
action: Optional[pulumi.Input[builtins.str]] = None,
|
|
178
|
-
instance_id: Optional[pulumi.Input[builtins.int]] = None) -> '
|
|
165
|
+
instance_id: Optional[pulumi.Input[builtins.int]] = None) -> 'AccountActions':
|
|
179
166
|
"""
|
|
180
|
-
Get an existing
|
|
167
|
+
Get an existing AccountActions resource's state with the given name, id, and optional extra
|
|
181
168
|
properties used to qualify the lookup.
|
|
182
169
|
|
|
183
170
|
:param str resource_name: The unique name of the resulting resource.
|
|
184
171
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
185
172
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
186
|
-
:param pulumi.Input[builtins.str] action: The action to
|
|
187
|
-
|
|
188
|
-
:param pulumi.Input[builtins.int] instance_id: The CloudAMQP instance ID.
|
|
173
|
+
:param pulumi.Input[builtins.str] action: The action to perform on the node
|
|
174
|
+
:param pulumi.Input[builtins.int] instance_id: Instance identifier
|
|
189
175
|
"""
|
|
190
176
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
191
177
|
|
|
192
|
-
__props__ =
|
|
178
|
+
__props__ = _AccountActionsState.__new__(_AccountActionsState)
|
|
193
179
|
|
|
194
180
|
__props__.__dict__["action"] = action
|
|
195
181
|
__props__.__dict__["instance_id"] = instance_id
|
|
196
|
-
return
|
|
182
|
+
return AccountActions(resource_name, opts=opts, __props__=__props__)
|
|
197
183
|
|
|
198
184
|
@property
|
|
199
185
|
@pulumi.getter
|
|
200
186
|
def action(self) -> pulumi.Output[builtins.str]:
|
|
201
187
|
"""
|
|
202
|
-
The action to
|
|
203
|
-
`rotate-password`, `rotate-apikey`.
|
|
188
|
+
The action to perform on the node
|
|
204
189
|
"""
|
|
205
190
|
return pulumi.get(self, "action")
|
|
206
191
|
|
|
@@ -208,7 +193,7 @@ class AccountAction(pulumi.CustomResource):
|
|
|
208
193
|
@pulumi.getter(name="instanceId")
|
|
209
194
|
def instance_id(self) -> pulumi.Output[builtins.int]:
|
|
210
195
|
"""
|
|
211
|
-
|
|
196
|
+
Instance identifier
|
|
212
197
|
"""
|
|
213
198
|
return pulumi.get(self, "instance_id")
|
|
214
199
|
|
pulumi_cloudamqp/alarm.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
5
|
import builtins
|
|
@@ -413,10 +413,8 @@ class _AlarmState:
|
|
|
413
413
|
pulumi.set(self, "vhost_regex", value)
|
|
414
414
|
|
|
415
415
|
|
|
416
|
+
@pulumi.type_token("cloudamqp:index/alarm:Alarm")
|
|
416
417
|
class Alarm(pulumi.CustomResource):
|
|
417
|
-
|
|
418
|
-
pulumi_type = "cloudamqp:index/alarm:Alarm"
|
|
419
|
-
|
|
420
418
|
@overload
|
|
421
419
|
def __init__(__self__,
|
|
422
420
|
resource_name: str,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
5
|
import builtins
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
5
|
import builtins
|
pulumi_cloudamqp/config/vars.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
5
|
import builtins
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
5
|
import builtins
|
|
@@ -95,10 +95,8 @@ class _CustomDomainState:
|
|
|
95
95
|
pulumi.set(self, "instance_id", value)
|
|
96
96
|
|
|
97
97
|
|
|
98
|
+
@pulumi.type_token("cloudamqp:index/customDomain:CustomDomain")
|
|
98
99
|
class CustomDomain(pulumi.CustomResource):
|
|
99
|
-
|
|
100
|
-
pulumi_type = "cloudamqp:index/customDomain:CustomDomain"
|
|
101
|
-
|
|
102
100
|
@overload
|
|
103
101
|
def __init__(__self__,
|
|
104
102
|
resource_name: str,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
5
|
import builtins
|
|
@@ -233,10 +233,8 @@ class _ExtraDiskSizeState:
|
|
|
233
233
|
pulumi.set(self, "timeout", value)
|
|
234
234
|
|
|
235
235
|
|
|
236
|
+
@pulumi.type_token("cloudamqp:index/extraDiskSize:ExtraDiskSize")
|
|
236
237
|
class ExtraDiskSize(pulumi.CustomResource):
|
|
237
|
-
|
|
238
|
-
pulumi_type = "cloudamqp:index/extraDiskSize:ExtraDiskSize"
|
|
239
|
-
|
|
240
238
|
@overload
|
|
241
239
|
def __init__(__self__,
|
|
242
240
|
resource_name: str,
|
pulumi_cloudamqp/get_account.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
5
|
import builtins
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
5
|
import builtins
|
pulumi_cloudamqp/get_alarm.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
5
|
import builtins
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins
|
|
6
|
+
import copy
|
|
7
|
+
import warnings
|
|
8
|
+
import sys
|
|
9
|
+
import pulumi
|
|
10
|
+
import pulumi.runtime
|
|
11
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
12
|
+
if sys.version_info >= (3, 11):
|
|
13
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
14
|
+
else:
|
|
15
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
16
|
+
from . import _utilities
|
|
17
|
+
from . import outputs
|
|
18
|
+
|
|
19
|
+
__all__ = [
|
|
20
|
+
'GetAlarmsResult',
|
|
21
|
+
'AwaitableGetAlarmsResult',
|
|
22
|
+
'get_alarms',
|
|
23
|
+
'get_alarms_output',
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
@pulumi.output_type
|
|
27
|
+
class GetAlarmsResult:
|
|
28
|
+
"""
|
|
29
|
+
A collection of values returned by getAlarms.
|
|
30
|
+
"""
|
|
31
|
+
def __init__(__self__, alarms=None, id=None, instance_id=None, type=None):
|
|
32
|
+
if alarms and not isinstance(alarms, list):
|
|
33
|
+
raise TypeError("Expected argument 'alarms' to be a list")
|
|
34
|
+
pulumi.set(__self__, "alarms", alarms)
|
|
35
|
+
if id and not isinstance(id, str):
|
|
36
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
37
|
+
pulumi.set(__self__, "id", id)
|
|
38
|
+
if instance_id and not isinstance(instance_id, int):
|
|
39
|
+
raise TypeError("Expected argument 'instance_id' to be a int")
|
|
40
|
+
pulumi.set(__self__, "instance_id", instance_id)
|
|
41
|
+
if type and not isinstance(type, str):
|
|
42
|
+
raise TypeError("Expected argument 'type' to be a str")
|
|
43
|
+
pulumi.set(__self__, "type", type)
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
@pulumi.getter
|
|
47
|
+
def alarms(self) -> Sequence['outputs.GetAlarmsAlarmResult']:
|
|
48
|
+
"""
|
|
49
|
+
List of alarms (see below for nested schema)
|
|
50
|
+
"""
|
|
51
|
+
return pulumi.get(self, "alarms")
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
@pulumi.getter
|
|
55
|
+
def id(self) -> builtins.str:
|
|
56
|
+
"""
|
|
57
|
+
The provider-assigned unique ID for this managed resource.
|
|
58
|
+
"""
|
|
59
|
+
return pulumi.get(self, "id")
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
@pulumi.getter(name="instanceId")
|
|
63
|
+
def instance_id(self) -> builtins.int:
|
|
64
|
+
return pulumi.get(self, "instance_id")
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
@pulumi.getter
|
|
68
|
+
def type(self) -> Optional[builtins.str]:
|
|
69
|
+
"""
|
|
70
|
+
The type of the alarm.
|
|
71
|
+
"""
|
|
72
|
+
return pulumi.get(self, "type")
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class AwaitableGetAlarmsResult(GetAlarmsResult):
|
|
76
|
+
# pylint: disable=using-constant-test
|
|
77
|
+
def __await__(self):
|
|
78
|
+
if False:
|
|
79
|
+
yield self
|
|
80
|
+
return GetAlarmsResult(
|
|
81
|
+
alarms=self.alarms,
|
|
82
|
+
id=self.id,
|
|
83
|
+
instance_id=self.instance_id,
|
|
84
|
+
type=self.type)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def get_alarms(instance_id: Optional[builtins.int] = None,
|
|
88
|
+
type: Optional[builtins.str] = None,
|
|
89
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlarmsResult:
|
|
90
|
+
"""
|
|
91
|
+
Use this data source to retrieve a list of default or created alarms.
|
|
92
|
+
|
|
93
|
+
## Example Usage
|
|
94
|
+
|
|
95
|
+
```python
|
|
96
|
+
import pulumi
|
|
97
|
+
import pulumi_cloudamqp as cloudamqp
|
|
98
|
+
|
|
99
|
+
queue_alarms = cloudamqp.get_alarms(instance_id=instance["id"],
|
|
100
|
+
type="queue")
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Dependency
|
|
104
|
+
|
|
105
|
+
This data source depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
106
|
+
|
|
107
|
+
## Alarm Types
|
|
108
|
+
|
|
109
|
+
`cpu, memory, disk, queue, connection, flow, consumer, netsplit, server_unreachable, notice`
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
:param builtins.int instance_id: The CloudAMQP instance identifier.
|
|
113
|
+
:param builtins.str type: The alarm type to filter for. Supported
|
|
114
|
+
alarm types.
|
|
115
|
+
"""
|
|
116
|
+
__args__ = dict()
|
|
117
|
+
__args__['instanceId'] = instance_id
|
|
118
|
+
__args__['type'] = type
|
|
119
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
120
|
+
__ret__ = pulumi.runtime.invoke('cloudamqp:index/getAlarms:getAlarms', __args__, opts=opts, typ=GetAlarmsResult).value
|
|
121
|
+
|
|
122
|
+
return AwaitableGetAlarmsResult(
|
|
123
|
+
alarms=pulumi.get(__ret__, 'alarms'),
|
|
124
|
+
id=pulumi.get(__ret__, 'id'),
|
|
125
|
+
instance_id=pulumi.get(__ret__, 'instance_id'),
|
|
126
|
+
type=pulumi.get(__ret__, 'type'))
|
|
127
|
+
def get_alarms_output(instance_id: Optional[pulumi.Input[builtins.int]] = None,
|
|
128
|
+
type: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
129
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAlarmsResult]:
|
|
130
|
+
"""
|
|
131
|
+
Use this data source to retrieve a list of default or created alarms.
|
|
132
|
+
|
|
133
|
+
## Example Usage
|
|
134
|
+
|
|
135
|
+
```python
|
|
136
|
+
import pulumi
|
|
137
|
+
import pulumi_cloudamqp as cloudamqp
|
|
138
|
+
|
|
139
|
+
queue_alarms = cloudamqp.get_alarms(instance_id=instance["id"],
|
|
140
|
+
type="queue")
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Dependency
|
|
144
|
+
|
|
145
|
+
This data source depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
146
|
+
|
|
147
|
+
## Alarm Types
|
|
148
|
+
|
|
149
|
+
`cpu, memory, disk, queue, connection, flow, consumer, netsplit, server_unreachable, notice`
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
:param builtins.int instance_id: The CloudAMQP instance identifier.
|
|
153
|
+
:param builtins.str type: The alarm type to filter for. Supported
|
|
154
|
+
alarm types.
|
|
155
|
+
"""
|
|
156
|
+
__args__ = dict()
|
|
157
|
+
__args__['instanceId'] = instance_id
|
|
158
|
+
__args__['type'] = type
|
|
159
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
160
|
+
__ret__ = pulumi.runtime.invoke_output('cloudamqp:index/getAlarms:getAlarms', __args__, opts=opts, typ=GetAlarmsResult)
|
|
161
|
+
return __ret__.apply(lambda __response__: GetAlarmsResult(
|
|
162
|
+
alarms=pulumi.get(__response__, 'alarms'),
|
|
163
|
+
id=pulumi.get(__response__, 'id'),
|
|
164
|
+
instance_id=pulumi.get(__response__, 'instance_id'),
|
|
165
|
+
type=pulumi.get(__response__, 'type')))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
5
|
import builtins
|
pulumi_cloudamqp/get_instance.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
5
|
import builtins
|
pulumi_cloudamqp/get_nodes.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
5
|
import builtins
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
5
|
import builtins
|