pulumi-checkly 2.0.0a1738674781__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.
- pulumi_checkly/__init__.py +143 -0
- pulumi_checkly/_inputs.py +3131 -0
- pulumi_checkly/_utilities.py +327 -0
- pulumi_checkly/alert_channel.py +742 -0
- pulumi_checkly/check.py +1579 -0
- pulumi_checkly/check_group.py +1073 -0
- pulumi_checkly/config/__init__.py +8 -0
- pulumi_checkly/config/__init__.pyi +22 -0
- pulumi_checkly/config/vars.py +34 -0
- pulumi_checkly/dashboard.py +920 -0
- pulumi_checkly/environment_variable.py +269 -0
- pulumi_checkly/get_static_ips.py +126 -0
- pulumi_checkly/heartbeat_check.py +480 -0
- pulumi_checkly/maintenance_window.py +462 -0
- pulumi_checkly/outputs.py +2413 -0
- pulumi_checkly/private_location.py +293 -0
- pulumi_checkly/provider.py +144 -0
- pulumi_checkly/pulumi-plugin.json +6 -0
- pulumi_checkly/py.typed +0 -0
- pulumi_checkly/snippet.py +228 -0
- pulumi_checkly/tcp_check.py +1171 -0
- pulumi_checkly/trigger_check.py +261 -0
- pulumi_checkly/trigger_check_group.py +261 -0
- pulumi_checkly-2.0.0a1738674781.dist-info/METADATA +69 -0
- pulumi_checkly-2.0.0a1738674781.dist-info/RECORD +27 -0
- pulumi_checkly-2.0.0a1738674781.dist-info/WHEEL +5 -0
- pulumi_checkly-2.0.0a1738674781.dist-info/top_level.txt +1 -0
@@ -0,0 +1,261 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
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
|
15
|
+
from . import _utilities
|
16
|
+
|
17
|
+
__all__ = ['TriggerCheckArgs', 'TriggerCheck']
|
18
|
+
|
19
|
+
@pulumi.input_type
|
20
|
+
class TriggerCheckArgs:
|
21
|
+
def __init__(__self__, *,
|
22
|
+
check_id: pulumi.Input[str],
|
23
|
+
token: Optional[pulumi.Input[str]] = None,
|
24
|
+
url: Optional[pulumi.Input[str]] = None):
|
25
|
+
"""
|
26
|
+
The set of arguments for constructing a TriggerCheck resource.
|
27
|
+
:param pulumi.Input[str] check_id: The id of the check that you want to attach the trigger to.
|
28
|
+
:param pulumi.Input[str] token: The token value created to trigger the check
|
29
|
+
:param pulumi.Input[str] url: The request URL to trigger the check run.
|
30
|
+
"""
|
31
|
+
pulumi.set(__self__, "check_id", check_id)
|
32
|
+
if token is not None:
|
33
|
+
pulumi.set(__self__, "token", token)
|
34
|
+
if url is not None:
|
35
|
+
pulumi.set(__self__, "url", url)
|
36
|
+
|
37
|
+
@property
|
38
|
+
@pulumi.getter(name="checkId")
|
39
|
+
def check_id(self) -> pulumi.Input[str]:
|
40
|
+
"""
|
41
|
+
The id of the check that you want to attach the trigger to.
|
42
|
+
"""
|
43
|
+
return pulumi.get(self, "check_id")
|
44
|
+
|
45
|
+
@check_id.setter
|
46
|
+
def check_id(self, value: pulumi.Input[str]):
|
47
|
+
pulumi.set(self, "check_id", value)
|
48
|
+
|
49
|
+
@property
|
50
|
+
@pulumi.getter
|
51
|
+
def token(self) -> Optional[pulumi.Input[str]]:
|
52
|
+
"""
|
53
|
+
The token value created to trigger the check
|
54
|
+
"""
|
55
|
+
return pulumi.get(self, "token")
|
56
|
+
|
57
|
+
@token.setter
|
58
|
+
def token(self, value: Optional[pulumi.Input[str]]):
|
59
|
+
pulumi.set(self, "token", value)
|
60
|
+
|
61
|
+
@property
|
62
|
+
@pulumi.getter
|
63
|
+
def url(self) -> Optional[pulumi.Input[str]]:
|
64
|
+
"""
|
65
|
+
The request URL to trigger the check run.
|
66
|
+
"""
|
67
|
+
return pulumi.get(self, "url")
|
68
|
+
|
69
|
+
@url.setter
|
70
|
+
def url(self, value: Optional[pulumi.Input[str]]):
|
71
|
+
pulumi.set(self, "url", value)
|
72
|
+
|
73
|
+
|
74
|
+
@pulumi.input_type
|
75
|
+
class _TriggerCheckState:
|
76
|
+
def __init__(__self__, *,
|
77
|
+
check_id: Optional[pulumi.Input[str]] = None,
|
78
|
+
token: Optional[pulumi.Input[str]] = None,
|
79
|
+
url: Optional[pulumi.Input[str]] = None):
|
80
|
+
"""
|
81
|
+
Input properties used for looking up and filtering TriggerCheck resources.
|
82
|
+
:param pulumi.Input[str] check_id: The id of the check that you want to attach the trigger to.
|
83
|
+
:param pulumi.Input[str] token: The token value created to trigger the check
|
84
|
+
:param pulumi.Input[str] url: The request URL to trigger the check run.
|
85
|
+
"""
|
86
|
+
if check_id is not None:
|
87
|
+
pulumi.set(__self__, "check_id", check_id)
|
88
|
+
if token is not None:
|
89
|
+
pulumi.set(__self__, "token", token)
|
90
|
+
if url is not None:
|
91
|
+
pulumi.set(__self__, "url", url)
|
92
|
+
|
93
|
+
@property
|
94
|
+
@pulumi.getter(name="checkId")
|
95
|
+
def check_id(self) -> Optional[pulumi.Input[str]]:
|
96
|
+
"""
|
97
|
+
The id of the check that you want to attach the trigger to.
|
98
|
+
"""
|
99
|
+
return pulumi.get(self, "check_id")
|
100
|
+
|
101
|
+
@check_id.setter
|
102
|
+
def check_id(self, value: Optional[pulumi.Input[str]]):
|
103
|
+
pulumi.set(self, "check_id", value)
|
104
|
+
|
105
|
+
@property
|
106
|
+
@pulumi.getter
|
107
|
+
def token(self) -> Optional[pulumi.Input[str]]:
|
108
|
+
"""
|
109
|
+
The token value created to trigger the check
|
110
|
+
"""
|
111
|
+
return pulumi.get(self, "token")
|
112
|
+
|
113
|
+
@token.setter
|
114
|
+
def token(self, value: Optional[pulumi.Input[str]]):
|
115
|
+
pulumi.set(self, "token", value)
|
116
|
+
|
117
|
+
@property
|
118
|
+
@pulumi.getter
|
119
|
+
def url(self) -> Optional[pulumi.Input[str]]:
|
120
|
+
"""
|
121
|
+
The request URL to trigger the check run.
|
122
|
+
"""
|
123
|
+
return pulumi.get(self, "url")
|
124
|
+
|
125
|
+
@url.setter
|
126
|
+
def url(self, value: Optional[pulumi.Input[str]]):
|
127
|
+
pulumi.set(self, "url", value)
|
128
|
+
|
129
|
+
|
130
|
+
class TriggerCheck(pulumi.CustomResource):
|
131
|
+
@overload
|
132
|
+
def __init__(__self__,
|
133
|
+
resource_name: str,
|
134
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
135
|
+
check_id: Optional[pulumi.Input[str]] = None,
|
136
|
+
token: Optional[pulumi.Input[str]] = None,
|
137
|
+
url: Optional[pulumi.Input[str]] = None,
|
138
|
+
__props__=None):
|
139
|
+
"""
|
140
|
+
## Example Usage
|
141
|
+
|
142
|
+
```python
|
143
|
+
import pulumi
|
144
|
+
import pulumi_checkly as checkly
|
145
|
+
|
146
|
+
test_trigger_check = checkly.TriggerCheck("test_trigger_check", check_id="c1ff95c5-d7f6-4a90-9ce2-1e605f117592")
|
147
|
+
pulumi.export("testTriggerCheckUrl", test_trigger_check.url)
|
148
|
+
```
|
149
|
+
|
150
|
+
:param str resource_name: The name of the resource.
|
151
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
152
|
+
:param pulumi.Input[str] check_id: The id of the check that you want to attach the trigger to.
|
153
|
+
:param pulumi.Input[str] token: The token value created to trigger the check
|
154
|
+
:param pulumi.Input[str] url: The request URL to trigger the check run.
|
155
|
+
"""
|
156
|
+
...
|
157
|
+
@overload
|
158
|
+
def __init__(__self__,
|
159
|
+
resource_name: str,
|
160
|
+
args: TriggerCheckArgs,
|
161
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
162
|
+
"""
|
163
|
+
## Example Usage
|
164
|
+
|
165
|
+
```python
|
166
|
+
import pulumi
|
167
|
+
import pulumi_checkly as checkly
|
168
|
+
|
169
|
+
test_trigger_check = checkly.TriggerCheck("test_trigger_check", check_id="c1ff95c5-d7f6-4a90-9ce2-1e605f117592")
|
170
|
+
pulumi.export("testTriggerCheckUrl", test_trigger_check.url)
|
171
|
+
```
|
172
|
+
|
173
|
+
:param str resource_name: The name of the resource.
|
174
|
+
:param TriggerCheckArgs args: The arguments to use to populate this resource's properties.
|
175
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
176
|
+
"""
|
177
|
+
...
|
178
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
179
|
+
resource_args, opts = _utilities.get_resource_args_opts(TriggerCheckArgs, pulumi.ResourceOptions, *args, **kwargs)
|
180
|
+
if resource_args is not None:
|
181
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
182
|
+
else:
|
183
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
184
|
+
|
185
|
+
def _internal_init(__self__,
|
186
|
+
resource_name: str,
|
187
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
188
|
+
check_id: Optional[pulumi.Input[str]] = None,
|
189
|
+
token: Optional[pulumi.Input[str]] = None,
|
190
|
+
url: Optional[pulumi.Input[str]] = None,
|
191
|
+
__props__=None):
|
192
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
193
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
194
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
195
|
+
if opts.id is None:
|
196
|
+
if __props__ is not None:
|
197
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
198
|
+
__props__ = TriggerCheckArgs.__new__(TriggerCheckArgs)
|
199
|
+
|
200
|
+
if check_id is None and not opts.urn:
|
201
|
+
raise TypeError("Missing required property 'check_id'")
|
202
|
+
__props__.__dict__["check_id"] = check_id
|
203
|
+
__props__.__dict__["token"] = token
|
204
|
+
__props__.__dict__["url"] = url
|
205
|
+
super(TriggerCheck, __self__).__init__(
|
206
|
+
'checkly:index/triggerCheck:TriggerCheck',
|
207
|
+
resource_name,
|
208
|
+
__props__,
|
209
|
+
opts)
|
210
|
+
|
211
|
+
@staticmethod
|
212
|
+
def get(resource_name: str,
|
213
|
+
id: pulumi.Input[str],
|
214
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
215
|
+
check_id: Optional[pulumi.Input[str]] = None,
|
216
|
+
token: Optional[pulumi.Input[str]] = None,
|
217
|
+
url: Optional[pulumi.Input[str]] = None) -> 'TriggerCheck':
|
218
|
+
"""
|
219
|
+
Get an existing TriggerCheck resource's state with the given name, id, and optional extra
|
220
|
+
properties used to qualify the lookup.
|
221
|
+
|
222
|
+
:param str resource_name: The unique name of the resulting resource.
|
223
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
224
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
225
|
+
:param pulumi.Input[str] check_id: The id of the check that you want to attach the trigger to.
|
226
|
+
:param pulumi.Input[str] token: The token value created to trigger the check
|
227
|
+
:param pulumi.Input[str] url: The request URL to trigger the check run.
|
228
|
+
"""
|
229
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
230
|
+
|
231
|
+
__props__ = _TriggerCheckState.__new__(_TriggerCheckState)
|
232
|
+
|
233
|
+
__props__.__dict__["check_id"] = check_id
|
234
|
+
__props__.__dict__["token"] = token
|
235
|
+
__props__.__dict__["url"] = url
|
236
|
+
return TriggerCheck(resource_name, opts=opts, __props__=__props__)
|
237
|
+
|
238
|
+
@property
|
239
|
+
@pulumi.getter(name="checkId")
|
240
|
+
def check_id(self) -> pulumi.Output[str]:
|
241
|
+
"""
|
242
|
+
The id of the check that you want to attach the trigger to.
|
243
|
+
"""
|
244
|
+
return pulumi.get(self, "check_id")
|
245
|
+
|
246
|
+
@property
|
247
|
+
@pulumi.getter
|
248
|
+
def token(self) -> pulumi.Output[str]:
|
249
|
+
"""
|
250
|
+
The token value created to trigger the check
|
251
|
+
"""
|
252
|
+
return pulumi.get(self, "token")
|
253
|
+
|
254
|
+
@property
|
255
|
+
@pulumi.getter
|
256
|
+
def url(self) -> pulumi.Output[str]:
|
257
|
+
"""
|
258
|
+
The request URL to trigger the check run.
|
259
|
+
"""
|
260
|
+
return pulumi.get(self, "url")
|
261
|
+
|
@@ -0,0 +1,261 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
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
|
15
|
+
from . import _utilities
|
16
|
+
|
17
|
+
__all__ = ['TriggerCheckGroupArgs', 'TriggerCheckGroup']
|
18
|
+
|
19
|
+
@pulumi.input_type
|
20
|
+
class TriggerCheckGroupArgs:
|
21
|
+
def __init__(__self__, *,
|
22
|
+
group_id: pulumi.Input[int],
|
23
|
+
token: Optional[pulumi.Input[str]] = None,
|
24
|
+
url: Optional[pulumi.Input[str]] = None):
|
25
|
+
"""
|
26
|
+
The set of arguments for constructing a TriggerCheckGroup resource.
|
27
|
+
:param pulumi.Input[int] group_id: The id of the group that you want to attach the trigger to.
|
28
|
+
:param pulumi.Input[str] token: The token value created to trigger the group
|
29
|
+
:param pulumi.Input[str] url: The request URL to trigger the group run.
|
30
|
+
"""
|
31
|
+
pulumi.set(__self__, "group_id", group_id)
|
32
|
+
if token is not None:
|
33
|
+
pulumi.set(__self__, "token", token)
|
34
|
+
if url is not None:
|
35
|
+
pulumi.set(__self__, "url", url)
|
36
|
+
|
37
|
+
@property
|
38
|
+
@pulumi.getter(name="groupId")
|
39
|
+
def group_id(self) -> pulumi.Input[int]:
|
40
|
+
"""
|
41
|
+
The id of the group that you want to attach the trigger to.
|
42
|
+
"""
|
43
|
+
return pulumi.get(self, "group_id")
|
44
|
+
|
45
|
+
@group_id.setter
|
46
|
+
def group_id(self, value: pulumi.Input[int]):
|
47
|
+
pulumi.set(self, "group_id", value)
|
48
|
+
|
49
|
+
@property
|
50
|
+
@pulumi.getter
|
51
|
+
def token(self) -> Optional[pulumi.Input[str]]:
|
52
|
+
"""
|
53
|
+
The token value created to trigger the group
|
54
|
+
"""
|
55
|
+
return pulumi.get(self, "token")
|
56
|
+
|
57
|
+
@token.setter
|
58
|
+
def token(self, value: Optional[pulumi.Input[str]]):
|
59
|
+
pulumi.set(self, "token", value)
|
60
|
+
|
61
|
+
@property
|
62
|
+
@pulumi.getter
|
63
|
+
def url(self) -> Optional[pulumi.Input[str]]:
|
64
|
+
"""
|
65
|
+
The request URL to trigger the group run.
|
66
|
+
"""
|
67
|
+
return pulumi.get(self, "url")
|
68
|
+
|
69
|
+
@url.setter
|
70
|
+
def url(self, value: Optional[pulumi.Input[str]]):
|
71
|
+
pulumi.set(self, "url", value)
|
72
|
+
|
73
|
+
|
74
|
+
@pulumi.input_type
|
75
|
+
class _TriggerCheckGroupState:
|
76
|
+
def __init__(__self__, *,
|
77
|
+
group_id: Optional[pulumi.Input[int]] = None,
|
78
|
+
token: Optional[pulumi.Input[str]] = None,
|
79
|
+
url: Optional[pulumi.Input[str]] = None):
|
80
|
+
"""
|
81
|
+
Input properties used for looking up and filtering TriggerCheckGroup resources.
|
82
|
+
:param pulumi.Input[int] group_id: The id of the group that you want to attach the trigger to.
|
83
|
+
:param pulumi.Input[str] token: The token value created to trigger the group
|
84
|
+
:param pulumi.Input[str] url: The request URL to trigger the group run.
|
85
|
+
"""
|
86
|
+
if group_id is not None:
|
87
|
+
pulumi.set(__self__, "group_id", group_id)
|
88
|
+
if token is not None:
|
89
|
+
pulumi.set(__self__, "token", token)
|
90
|
+
if url is not None:
|
91
|
+
pulumi.set(__self__, "url", url)
|
92
|
+
|
93
|
+
@property
|
94
|
+
@pulumi.getter(name="groupId")
|
95
|
+
def group_id(self) -> Optional[pulumi.Input[int]]:
|
96
|
+
"""
|
97
|
+
The id of the group that you want to attach the trigger to.
|
98
|
+
"""
|
99
|
+
return pulumi.get(self, "group_id")
|
100
|
+
|
101
|
+
@group_id.setter
|
102
|
+
def group_id(self, value: Optional[pulumi.Input[int]]):
|
103
|
+
pulumi.set(self, "group_id", value)
|
104
|
+
|
105
|
+
@property
|
106
|
+
@pulumi.getter
|
107
|
+
def token(self) -> Optional[pulumi.Input[str]]:
|
108
|
+
"""
|
109
|
+
The token value created to trigger the group
|
110
|
+
"""
|
111
|
+
return pulumi.get(self, "token")
|
112
|
+
|
113
|
+
@token.setter
|
114
|
+
def token(self, value: Optional[pulumi.Input[str]]):
|
115
|
+
pulumi.set(self, "token", value)
|
116
|
+
|
117
|
+
@property
|
118
|
+
@pulumi.getter
|
119
|
+
def url(self) -> Optional[pulumi.Input[str]]:
|
120
|
+
"""
|
121
|
+
The request URL to trigger the group run.
|
122
|
+
"""
|
123
|
+
return pulumi.get(self, "url")
|
124
|
+
|
125
|
+
@url.setter
|
126
|
+
def url(self, value: Optional[pulumi.Input[str]]):
|
127
|
+
pulumi.set(self, "url", value)
|
128
|
+
|
129
|
+
|
130
|
+
class TriggerCheckGroup(pulumi.CustomResource):
|
131
|
+
@overload
|
132
|
+
def __init__(__self__,
|
133
|
+
resource_name: str,
|
134
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
135
|
+
group_id: Optional[pulumi.Input[int]] = None,
|
136
|
+
token: Optional[pulumi.Input[str]] = None,
|
137
|
+
url: Optional[pulumi.Input[str]] = None,
|
138
|
+
__props__=None):
|
139
|
+
"""
|
140
|
+
## Example Usage
|
141
|
+
|
142
|
+
```python
|
143
|
+
import pulumi
|
144
|
+
import pulumi_checkly as checkly
|
145
|
+
|
146
|
+
test_trigger_group = checkly.TriggerCheckGroup("test_trigger_group", group_id=215)
|
147
|
+
pulumi.export("testTriggerGroupUrl", test_trigger_group.url)
|
148
|
+
```
|
149
|
+
|
150
|
+
:param str resource_name: The name of the resource.
|
151
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
152
|
+
:param pulumi.Input[int] group_id: The id of the group that you want to attach the trigger to.
|
153
|
+
:param pulumi.Input[str] token: The token value created to trigger the group
|
154
|
+
:param pulumi.Input[str] url: The request URL to trigger the group run.
|
155
|
+
"""
|
156
|
+
...
|
157
|
+
@overload
|
158
|
+
def __init__(__self__,
|
159
|
+
resource_name: str,
|
160
|
+
args: TriggerCheckGroupArgs,
|
161
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
162
|
+
"""
|
163
|
+
## Example Usage
|
164
|
+
|
165
|
+
```python
|
166
|
+
import pulumi
|
167
|
+
import pulumi_checkly as checkly
|
168
|
+
|
169
|
+
test_trigger_group = checkly.TriggerCheckGroup("test_trigger_group", group_id=215)
|
170
|
+
pulumi.export("testTriggerGroupUrl", test_trigger_group.url)
|
171
|
+
```
|
172
|
+
|
173
|
+
:param str resource_name: The name of the resource.
|
174
|
+
:param TriggerCheckGroupArgs args: The arguments to use to populate this resource's properties.
|
175
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
176
|
+
"""
|
177
|
+
...
|
178
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
179
|
+
resource_args, opts = _utilities.get_resource_args_opts(TriggerCheckGroupArgs, pulumi.ResourceOptions, *args, **kwargs)
|
180
|
+
if resource_args is not None:
|
181
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
182
|
+
else:
|
183
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
184
|
+
|
185
|
+
def _internal_init(__self__,
|
186
|
+
resource_name: str,
|
187
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
188
|
+
group_id: Optional[pulumi.Input[int]] = None,
|
189
|
+
token: Optional[pulumi.Input[str]] = None,
|
190
|
+
url: Optional[pulumi.Input[str]] = None,
|
191
|
+
__props__=None):
|
192
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
193
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
194
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
195
|
+
if opts.id is None:
|
196
|
+
if __props__ is not None:
|
197
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
198
|
+
__props__ = TriggerCheckGroupArgs.__new__(TriggerCheckGroupArgs)
|
199
|
+
|
200
|
+
if group_id is None and not opts.urn:
|
201
|
+
raise TypeError("Missing required property 'group_id'")
|
202
|
+
__props__.__dict__["group_id"] = group_id
|
203
|
+
__props__.__dict__["token"] = token
|
204
|
+
__props__.__dict__["url"] = url
|
205
|
+
super(TriggerCheckGroup, __self__).__init__(
|
206
|
+
'checkly:index/triggerCheckGroup:TriggerCheckGroup',
|
207
|
+
resource_name,
|
208
|
+
__props__,
|
209
|
+
opts)
|
210
|
+
|
211
|
+
@staticmethod
|
212
|
+
def get(resource_name: str,
|
213
|
+
id: pulumi.Input[str],
|
214
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
215
|
+
group_id: Optional[pulumi.Input[int]] = None,
|
216
|
+
token: Optional[pulumi.Input[str]] = None,
|
217
|
+
url: Optional[pulumi.Input[str]] = None) -> 'TriggerCheckGroup':
|
218
|
+
"""
|
219
|
+
Get an existing TriggerCheckGroup resource's state with the given name, id, and optional extra
|
220
|
+
properties used to qualify the lookup.
|
221
|
+
|
222
|
+
:param str resource_name: The unique name of the resulting resource.
|
223
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
224
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
225
|
+
:param pulumi.Input[int] group_id: The id of the group that you want to attach the trigger to.
|
226
|
+
:param pulumi.Input[str] token: The token value created to trigger the group
|
227
|
+
:param pulumi.Input[str] url: The request URL to trigger the group run.
|
228
|
+
"""
|
229
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
230
|
+
|
231
|
+
__props__ = _TriggerCheckGroupState.__new__(_TriggerCheckGroupState)
|
232
|
+
|
233
|
+
__props__.__dict__["group_id"] = group_id
|
234
|
+
__props__.__dict__["token"] = token
|
235
|
+
__props__.__dict__["url"] = url
|
236
|
+
return TriggerCheckGroup(resource_name, opts=opts, __props__=__props__)
|
237
|
+
|
238
|
+
@property
|
239
|
+
@pulumi.getter(name="groupId")
|
240
|
+
def group_id(self) -> pulumi.Output[int]:
|
241
|
+
"""
|
242
|
+
The id of the group that you want to attach the trigger to.
|
243
|
+
"""
|
244
|
+
return pulumi.get(self, "group_id")
|
245
|
+
|
246
|
+
@property
|
247
|
+
@pulumi.getter
|
248
|
+
def token(self) -> pulumi.Output[str]:
|
249
|
+
"""
|
250
|
+
The token value created to trigger the group
|
251
|
+
"""
|
252
|
+
return pulumi.get(self, "token")
|
253
|
+
|
254
|
+
@property
|
255
|
+
@pulumi.getter
|
256
|
+
def url(self) -> pulumi.Output[str]:
|
257
|
+
"""
|
258
|
+
The request URL to trigger the group run.
|
259
|
+
"""
|
260
|
+
return pulumi.get(self, "url")
|
261
|
+
|
@@ -0,0 +1,69 @@
|
|
1
|
+
Metadata-Version: 2.2
|
2
|
+
Name: pulumi_checkly
|
3
|
+
Version: 2.0.0a1738674781
|
4
|
+
Summary: A Pulumi package for creating and managing Checkly monitoring resources.
|
5
|
+
License: Apache-2.0
|
6
|
+
Project-URL: Homepage, https://www.pulumi.com/registry/packages/checkly
|
7
|
+
Project-URL: Repository, https://github.com/checkly/pulumi-checkly
|
8
|
+
Keywords: pulumi,checkly,category/monitoring
|
9
|
+
Requires-Python: >=3.9
|
10
|
+
Description-Content-Type: text/markdown
|
11
|
+
Requires-Dist: parver>=0.2.1
|
12
|
+
Requires-Dist: pulumi<4.0.0,>=3.0.0
|
13
|
+
Requires-Dist: semver>=2.8.1
|
14
|
+
Requires-Dist: typing-extensions>=4.11; python_version < "3.11"
|
15
|
+
|
16
|
+
# Checkly Provider for Pulumi
|
17
|
+
|
18
|
+

|
19
|
+

|
20
|
+
|
21
|
+
The Checkly provider for Pulumi can be used to provision any of the monitoring resources available in [Checkly](https://www.checklyhq.com/).
|
22
|
+
|
23
|
+
## Installation
|
24
|
+
|
25
|
+
The Checkly provider is available as a package in most Pulumi languages:
|
26
|
+
|
27
|
+
* JavaScript/TypeScript: [`@checkly/pulumi`](https://www.npmjs.com/package/@checkly/pulumi)
|
28
|
+
* Python: [`pulumi-checkly`](https://pypi.org/project/pulumi-checkly/)
|
29
|
+
* Go: [`github.com/checkly/pulumi-checkly/sdk/go/checkly`](https://github.com/checkly/pulumi-checkly)
|
30
|
+
* .NET: [`Pulumi.Checkly`](https://www.nuget.org/packages/Pulumi.Checkly)
|
31
|
+
|
32
|
+
|
33
|
+
## Authentication
|
34
|
+
|
35
|
+
The Checkly provider must be configured with an `API Key` and an `Account ID` in order to deploy Checkly resources. Sign up for a [Checkly](https://www.checklyhq.com) account and follow our [integration guide](https://www.checklyhq.com/docs/integrations/pulumi/) to create and configure your credentials.
|
36
|
+
|
37
|
+
### Example configuration
|
38
|
+
|
39
|
+
First, configure your Checkly Account ID:
|
40
|
+
|
41
|
+
```
|
42
|
+
pulumi config set checkly:accountId YOUR_CHECKLY_ACCOUNT_ID
|
43
|
+
```
|
44
|
+
|
45
|
+
Then, configure you Checkly API key (with `--secret`):
|
46
|
+
|
47
|
+
```
|
48
|
+
pulumi config set checkly:apiKey YOUR_CHECKLY_API_KEY --secret
|
49
|
+
```
|
50
|
+
|
51
|
+
You should now be able to deploy Checkly resources.
|
52
|
+
|
53
|
+
## Example usage
|
54
|
+
|
55
|
+
You can find working JavaScript and TypeScript code samples in the [`./examples`](https://github.com/checkly/pulumi-checkly/tree/main/examples) directory.
|
56
|
+
|
57
|
+
## Configuration options
|
58
|
+
|
59
|
+
The following configuration points are available for the Checkly provider:
|
60
|
+
|
61
|
+
- `checkly:accountId` (environment: `CHECKLY_ACCOUNT_ID`) - your Checkly Account ID
|
62
|
+
- `checkly:apiKey` (environment: `CHECKLY_API_KEY`) - your Checkly API Key
|
63
|
+
* If you don't have an API Key, you can create one [here](https://app.checklyhq.com/settings/user/api-keys).
|
64
|
+
* Make sure to use the `--secret` flag with `pulumi config set`.
|
65
|
+
- `checkly:apiUrl` (environment: `CHECKLY_API_URL`) - for internal development purposes only
|
66
|
+
|
67
|
+
## Reference
|
68
|
+
|
69
|
+
For detailed reference documentation, please visit [the Pulumi registry](https://www.pulumi.com/registry/packages/checkly/api-docs/).
|
@@ -0,0 +1,27 @@
|
|
1
|
+
pulumi_checkly/__init__.py,sha256=0CsTXFcw16T4pVPwiPgqPrURu3Hxk--ihjenI0R_6fM,3093
|
2
|
+
pulumi_checkly/_inputs.py,sha256=Xf2QZYg2oQTqtvFvZklnoDw1Te7lkXKn2Auz1jzil-E,128369
|
3
|
+
pulumi_checkly/_utilities.py,sha256=GxpBUMlXYTk7YrVGFAGjHfL-BVibLeIvwRfmSiVbIpY,10533
|
4
|
+
pulumi_checkly/alert_channel.py,sha256=3zoTr0x0k8RaVJ-bl0bi_rPwsTUTFNuYXpBrj80ESSo,29910
|
5
|
+
pulumi_checkly/check.py,sha256=1RKemc45tO13RcwKDTiNHPCV_cAWgnIIHvFVmGbG1C0,87656
|
6
|
+
pulumi_checkly/check_group.py,sha256=7t5xUdFXL1A4BVhYG_Q4TcnxL9gmt_5Ab-EerdUmvdE,59577
|
7
|
+
pulumi_checkly/dashboard.py,sha256=aZ8woX74siC8tMwqrsuzgwMfd3GWCzoe_7L5y3-2dA8,38827
|
8
|
+
pulumi_checkly/environment_variable.py,sha256=bvFEMIHoNlAIN4fHLbOCoLtv_zId34VUgRO1bmo-mTU,9560
|
9
|
+
pulumi_checkly/get_static_ips.py,sha256=dyNQ2dCQaDClMJOIG_d-IMoj2_aPLx3-v4urKFVnbWo,5026
|
10
|
+
pulumi_checkly/heartbeat_check.py,sha256=CSX9mwxH26t04guhv10v3qVTs8fd6pxflociojsQCXs,22033
|
11
|
+
pulumi_checkly/maintenance_window.py,sha256=LWrPK7ZBtj8paG8K5aS7hZCxVUgZX9MOVOO29eFcz1A,19198
|
12
|
+
pulumi_checkly/outputs.py,sha256=9-U4YpWu7HhtE9_nGtEP74CxGplzDB3xX0hOH9tQMao,91797
|
13
|
+
pulumi_checkly/private_location.py,sha256=RqBW5lQbvmKlL3gQL0DqR_nYkhhZ9nE1ADf8q0dWQ6w,10528
|
14
|
+
pulumi_checkly/provider.py,sha256=t8RlYsceAV-_DMVTbtdyr6SQyQ462L_8ni1mNXhZvGw,5875
|
15
|
+
pulumi_checkly/pulumi-plugin.json,sha256=5Vru_n1Qk9iP--WTq3RzxtzV-ooOgF889VO4etGKF5M,130
|
16
|
+
pulumi_checkly/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
17
|
+
pulumi_checkly/snippet.py,sha256=xQCa0HQeoGljCRg2hs8yfuWI-TcDOE6cRv0_hszQVLw,8431
|
18
|
+
pulumi_checkly/tcp_check.py,sha256=XQN-qHwQ7zhue799iOffA_4hXA2w0J2Nlh4rV-ouTd8,57603
|
19
|
+
pulumi_checkly/trigger_check.py,sha256=cnozFnPJS30arFqCEmI4m6UeOy5bCW3QfLJFC8f3swg,9787
|
20
|
+
pulumi_checkly/trigger_check_group.py,sha256=wJkACfvIh-xzcPNekcil0WgQtA8DpQGyjevTOh7zPg0,9827
|
21
|
+
pulumi_checkly/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
|
22
|
+
pulumi_checkly/config/__init__.pyi,sha256=Fpk-O56lUiCTFequ30t3iJiEmChj_bG4iJMrQ-x0wp0,591
|
23
|
+
pulumi_checkly/config/vars.py,sha256=lv8NkDSQLIvNDzktM9EO-XFf39KPqFhim4nvCHQd8wE,907
|
24
|
+
pulumi_checkly-2.0.0a1738674781.dist-info/METADATA,sha256=E3ouXWcQQsdm56MHPJgv_CDvRNWRt3gv4n5TZp2NSeY,2884
|
25
|
+
pulumi_checkly-2.0.0a1738674781.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
26
|
+
pulumi_checkly-2.0.0a1738674781.dist-info/top_level.txt,sha256=qWgkLdBIceubF5gJGeOwoEFK1XXVtmkd6AKHMl9Qnk4,15
|
27
|
+
pulumi_checkly-2.0.0a1738674781.dist-info/RECORD,,
|
@@ -0,0 +1 @@
|
|
1
|
+
pulumi_checkly
|