@checkly/pulumi 1.1.4 → 2.0.0-alpha.1738251430
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.
- package/LICENSE +202 -21
- package/README.md +39 -137
- package/alertChannel.d.ts +44 -20
- package/alertChannel.js +41 -19
- package/alertChannel.js.map +1 -1
- package/check.d.ts +101 -61
- package/check.js +8 -0
- package/check.js.map +1 -1
- package/checkGroup.d.ts +56 -104
- package/checkGroup.js +8 -87
- package/checkGroup.js.map +1 -1
- package/dashboard.d.ts +29 -9
- package/dashboard.js +12 -6
- package/dashboard.js.map +1 -1
- package/environmentVariable.d.ts +5 -2
- package/environmentVariable.js +4 -2
- package/environmentVariable.js.map +1 -1
- package/getStaticIps.d.ts +50 -0
- package/getStaticIps.js +26 -0
- package/getStaticIps.js.map +1 -0
- package/heartbeatCheck.d.ts +129 -0
- package/heartbeatCheck.js +91 -0
- package/heartbeatCheck.js.map +1 -0
- package/index.d.ts +39 -11
- package/index.js +42 -50
- package/index.js.map +1 -1
- package/maintenanceWindow.d.ts +5 -4
- package/maintenanceWindow.js +5 -4
- package/maintenanceWindow.js.map +1 -1
- package/package.json +7 -7
- package/privateLocation.d.ts +2 -2
- package/privateLocation.js +4 -2
- package/privateLocation.js.map +1 -1
- package/provider.js +1 -1
- package/provider.js.map +1 -1
- package/snippet.d.ts +20 -0
- package/snippet.js +20 -0
- package/snippet.js.map +1 -1
- package/triggerCheck.d.ts +2 -2
- package/triggerCheck.js +2 -2
- package/triggerCheckGroup.d.ts +2 -2
- package/triggerCheckGroup.js +2 -2
- package/types/index.js.map +1 -1
- package/types/input.d.ts +275 -7
- package/types/input.js.map +1 -1
- package/types/output.d.ts +281 -13
- package/types/output.js.map +1 -1
- package/utilities.d.ts +4 -0
- package/utilities.js +45 -1
- package/utilities.js.map +1 -1
- package/package.json.bak +0 -29
- package/scripts/install-pulumi-plugin.js +0 -26
package/checkGroup.d.ts
CHANGED
|
@@ -1,92 +1,8 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
3
4
|
/**
|
|
4
5
|
* Check groups allow you to group together a set of related checks, which can also share default settings for various attributes.
|
|
5
|
-
*
|
|
6
|
-
* ## Example Usage
|
|
7
|
-
*
|
|
8
|
-
* ```typescript
|
|
9
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
-
* import * as pulumi from "@checkly/pulumi";
|
|
11
|
-
*
|
|
12
|
-
* const testGroup1CheckGroup = new checkly.CheckGroup("testGroup1CheckGroup", {
|
|
13
|
-
* activated: true,
|
|
14
|
-
* muted: false,
|
|
15
|
-
* tags: ["auto"],
|
|
16
|
-
* locations: ["eu-west-1"],
|
|
17
|
-
* concurrency: 3,
|
|
18
|
-
* apiCheckDefaults: {
|
|
19
|
-
* url: "http://example.com/",
|
|
20
|
-
* headers: {
|
|
21
|
-
* "X-Test": "foo",
|
|
22
|
-
* },
|
|
23
|
-
* queryParameters: {
|
|
24
|
-
* query: "foo",
|
|
25
|
-
* },
|
|
26
|
-
* assertions: [
|
|
27
|
-
* {
|
|
28
|
-
* source: "STATUS_CODE",
|
|
29
|
-
* property: "",
|
|
30
|
-
* comparison: "EQUALS",
|
|
31
|
-
* target: "200",
|
|
32
|
-
* },
|
|
33
|
-
* {
|
|
34
|
-
* source: "TEXT_BODY",
|
|
35
|
-
* property: "",
|
|
36
|
-
* comparison: "CONTAINS",
|
|
37
|
-
* target: "welcome",
|
|
38
|
-
* },
|
|
39
|
-
* ],
|
|
40
|
-
* basicAuth: {
|
|
41
|
-
* username: "user",
|
|
42
|
-
* password: "pass",
|
|
43
|
-
* },
|
|
44
|
-
* },
|
|
45
|
-
* environmentVariables: {
|
|
46
|
-
* ENVTEST: "Hello world",
|
|
47
|
-
* },
|
|
48
|
-
* doubleCheck: true,
|
|
49
|
-
* useGlobalAlertSettings: false,
|
|
50
|
-
* alertSettings: {
|
|
51
|
-
* escalationType: "RUN_BASED",
|
|
52
|
-
* runBasedEscalations: [{
|
|
53
|
-
* failedRunThreshold: 1,
|
|
54
|
-
* }],
|
|
55
|
-
* timeBasedEscalations: [{
|
|
56
|
-
* minutesFailingThreshold: 5,
|
|
57
|
-
* }],
|
|
58
|
-
* reminders: [{
|
|
59
|
-
* amount: 2,
|
|
60
|
-
* interval: 5,
|
|
61
|
-
* }],
|
|
62
|
-
* },
|
|
63
|
-
* localSetupScript: "setup-test",
|
|
64
|
-
* localTeardownScript: "teardown-test",
|
|
65
|
-
* });
|
|
66
|
-
* // Add a check to a group
|
|
67
|
-
* const testCheck1 = new checkly.Check("testCheck1", {
|
|
68
|
-
* groupId: testGroup1CheckGroup.id,
|
|
69
|
-
* groupOrder: 1,
|
|
70
|
-
* });
|
|
71
|
-
* // Using with alert channels
|
|
72
|
-
* const emailAc1 = new checkly.AlertChannel("emailAc1", {email: {
|
|
73
|
-
* address: "info@example.com",
|
|
74
|
-
* }});
|
|
75
|
-
* const emailAc2 = new checkly.AlertChannel("emailAc2", {email: {
|
|
76
|
-
* address: "info2@example.com",
|
|
77
|
-
* }});
|
|
78
|
-
* // Connect the check group to the alert channels
|
|
79
|
-
* const testGroup1Index_checkGroupCheckGroup = new checkly.CheckGroup("testGroup1Index/checkGroupCheckGroup", {alertChannelSubscriptions: [
|
|
80
|
-
* {
|
|
81
|
-
* channelId: emailAc1.id,
|
|
82
|
-
* activated: true,
|
|
83
|
-
* },
|
|
84
|
-
* {
|
|
85
|
-
* channelId: emailAc2.id,
|
|
86
|
-
* activated: true,
|
|
87
|
-
* },
|
|
88
|
-
* ]});
|
|
89
|
-
* ```
|
|
90
6
|
*/
|
|
91
7
|
export declare class CheckGroup extends pulumi.CustomResource {
|
|
92
8
|
/**
|
|
@@ -116,18 +32,22 @@ export declare class CheckGroup extends pulumi.CustomResource {
|
|
|
116
32
|
*/
|
|
117
33
|
readonly concurrency: pulumi.Output<number>;
|
|
118
34
|
/**
|
|
119
|
-
* Setting this to `true` will trigger a retry when a check fails from the failing region and another, randomly selected
|
|
120
|
-
*
|
|
35
|
+
* Setting this to `true` will trigger a retry when a check fails from the failing region and another, randomly selected region before marking the check as failed.
|
|
36
|
+
*
|
|
37
|
+
* @deprecated The property `doubleCheck` is deprecated and will be removed in a future version. To enable retries for failed check runs, use the `retryStrategy` property instead.
|
|
121
38
|
*/
|
|
122
39
|
readonly doubleCheck: pulumi.Output<boolean | undefined>;
|
|
123
40
|
/**
|
|
124
|
-
* Key/value pairs for setting environment variables during check execution. These are only relevant for browser checks.
|
|
125
|
-
|
|
41
|
+
* Key/value pairs for setting environment variables during check execution, add locked = true to keep value hidden, add secret = true to create a secret variable. These are only relevant for browser checks. Use global environment variables whenever possible.
|
|
42
|
+
*/
|
|
43
|
+
readonly environmentVariable: pulumi.Output<outputs.CheckGroupEnvironmentVariable[] | undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* Key/value pairs for setting environment variables during check execution. These are only relevant for browser checks. Use global environment variables whenever possible.
|
|
126
46
|
*
|
|
127
|
-
* @deprecated The property `
|
|
47
|
+
* @deprecated The property `environmentVariables` is deprecated and will be removed in a future version. Consider using the new `environmentVariable` list.
|
|
128
48
|
*/
|
|
129
49
|
readonly environmentVariables: pulumi.Output<{
|
|
130
|
-
[key: string]:
|
|
50
|
+
[key: string]: string;
|
|
131
51
|
} | undefined>;
|
|
132
52
|
/**
|
|
133
53
|
* A valid piece of Node.js code to run in the setup phase of an API check in this group.
|
|
@@ -153,6 +73,14 @@ export declare class CheckGroup extends pulumi.CustomResource {
|
|
|
153
73
|
* An array of one or more private locations slugs.
|
|
154
74
|
*/
|
|
155
75
|
readonly privateLocations: pulumi.Output<string[] | undefined>;
|
|
76
|
+
/**
|
|
77
|
+
* A strategy for retrying failed check runs.
|
|
78
|
+
*/
|
|
79
|
+
readonly retryStrategy: pulumi.Output<outputs.CheckGroupRetryStrategy>;
|
|
80
|
+
/**
|
|
81
|
+
* Determines if the checks in the group should run in all selected locations in parallel or round-robin.
|
|
82
|
+
*/
|
|
83
|
+
readonly runParallel: pulumi.Output<boolean | undefined>;
|
|
156
84
|
/**
|
|
157
85
|
* The id of the runtime to use for this group.
|
|
158
86
|
*/
|
|
@@ -198,18 +126,22 @@ export interface CheckGroupState {
|
|
|
198
126
|
*/
|
|
199
127
|
concurrency?: pulumi.Input<number>;
|
|
200
128
|
/**
|
|
201
|
-
* Setting this to `true` will trigger a retry when a check fails from the failing region and another, randomly selected
|
|
202
|
-
*
|
|
129
|
+
* Setting this to `true` will trigger a retry when a check fails from the failing region and another, randomly selected region before marking the check as failed.
|
|
130
|
+
*
|
|
131
|
+
* @deprecated The property `doubleCheck` is deprecated and will be removed in a future version. To enable retries for failed check runs, use the `retryStrategy` property instead.
|
|
203
132
|
*/
|
|
204
133
|
doubleCheck?: pulumi.Input<boolean>;
|
|
205
134
|
/**
|
|
206
|
-
* Key/value pairs for setting environment variables during check execution. These are only relevant for browser checks.
|
|
207
|
-
|
|
135
|
+
* Key/value pairs for setting environment variables during check execution, add locked = true to keep value hidden, add secret = true to create a secret variable. These are only relevant for browser checks. Use global environment variables whenever possible.
|
|
136
|
+
*/
|
|
137
|
+
environmentVariable?: pulumi.Input<pulumi.Input<inputs.CheckGroupEnvironmentVariable>[]>;
|
|
138
|
+
/**
|
|
139
|
+
* Key/value pairs for setting environment variables during check execution. These are only relevant for browser checks. Use global environment variables whenever possible.
|
|
208
140
|
*
|
|
209
|
-
* @deprecated The property `
|
|
141
|
+
* @deprecated The property `environmentVariables` is deprecated and will be removed in a future version. Consider using the new `environmentVariable` list.
|
|
210
142
|
*/
|
|
211
143
|
environmentVariables?: pulumi.Input<{
|
|
212
|
-
[key: string]:
|
|
144
|
+
[key: string]: pulumi.Input<string>;
|
|
213
145
|
}>;
|
|
214
146
|
/**
|
|
215
147
|
* A valid piece of Node.js code to run in the setup phase of an API check in this group.
|
|
@@ -235,6 +167,14 @@ export interface CheckGroupState {
|
|
|
235
167
|
* An array of one or more private locations slugs.
|
|
236
168
|
*/
|
|
237
169
|
privateLocations?: pulumi.Input<pulumi.Input<string>[]>;
|
|
170
|
+
/**
|
|
171
|
+
* A strategy for retrying failed check runs.
|
|
172
|
+
*/
|
|
173
|
+
retryStrategy?: pulumi.Input<inputs.CheckGroupRetryStrategy>;
|
|
174
|
+
/**
|
|
175
|
+
* Determines if the checks in the group should run in all selected locations in parallel or round-robin.
|
|
176
|
+
*/
|
|
177
|
+
runParallel?: pulumi.Input<boolean>;
|
|
238
178
|
/**
|
|
239
179
|
* The id of the runtime to use for this group.
|
|
240
180
|
*/
|
|
@@ -272,18 +212,22 @@ export interface CheckGroupArgs {
|
|
|
272
212
|
*/
|
|
273
213
|
concurrency: pulumi.Input<number>;
|
|
274
214
|
/**
|
|
275
|
-
* Setting this to `true` will trigger a retry when a check fails from the failing region and another, randomly selected
|
|
276
|
-
*
|
|
215
|
+
* Setting this to `true` will trigger a retry when a check fails from the failing region and another, randomly selected region before marking the check as failed.
|
|
216
|
+
*
|
|
217
|
+
* @deprecated The property `doubleCheck` is deprecated and will be removed in a future version. To enable retries for failed check runs, use the `retryStrategy` property instead.
|
|
277
218
|
*/
|
|
278
219
|
doubleCheck?: pulumi.Input<boolean>;
|
|
279
220
|
/**
|
|
280
|
-
* Key/value pairs for setting environment variables during check execution. These are only relevant for browser checks.
|
|
281
|
-
|
|
221
|
+
* Key/value pairs for setting environment variables during check execution, add locked = true to keep value hidden, add secret = true to create a secret variable. These are only relevant for browser checks. Use global environment variables whenever possible.
|
|
222
|
+
*/
|
|
223
|
+
environmentVariable?: pulumi.Input<pulumi.Input<inputs.CheckGroupEnvironmentVariable>[]>;
|
|
224
|
+
/**
|
|
225
|
+
* Key/value pairs for setting environment variables during check execution. These are only relevant for browser checks. Use global environment variables whenever possible.
|
|
282
226
|
*
|
|
283
|
-
* @deprecated The property `
|
|
227
|
+
* @deprecated The property `environmentVariables` is deprecated and will be removed in a future version. Consider using the new `environmentVariable` list.
|
|
284
228
|
*/
|
|
285
229
|
environmentVariables?: pulumi.Input<{
|
|
286
|
-
[key: string]:
|
|
230
|
+
[key: string]: pulumi.Input<string>;
|
|
287
231
|
}>;
|
|
288
232
|
/**
|
|
289
233
|
* A valid piece of Node.js code to run in the setup phase of an API check in this group.
|
|
@@ -309,6 +253,14 @@ export interface CheckGroupArgs {
|
|
|
309
253
|
* An array of one or more private locations slugs.
|
|
310
254
|
*/
|
|
311
255
|
privateLocations?: pulumi.Input<pulumi.Input<string>[]>;
|
|
256
|
+
/**
|
|
257
|
+
* A strategy for retrying failed check runs.
|
|
258
|
+
*/
|
|
259
|
+
retryStrategy?: pulumi.Input<inputs.CheckGroupRetryStrategy>;
|
|
260
|
+
/**
|
|
261
|
+
* Determines if the checks in the group should run in all selected locations in parallel or round-robin.
|
|
262
|
+
*/
|
|
263
|
+
runParallel?: pulumi.Input<boolean>;
|
|
312
264
|
/**
|
|
313
265
|
* The id of the runtime to use for this group.
|
|
314
266
|
*/
|
package/checkGroup.js
CHANGED
|
@@ -4,95 +4,10 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.CheckGroup = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const
|
|
7
|
+
const inputs = require("./types/input");
|
|
8
8
|
const utilities = require("./utilities");
|
|
9
9
|
/**
|
|
10
10
|
* Check groups allow you to group together a set of related checks, which can also share default settings for various attributes.
|
|
11
|
-
*
|
|
12
|
-
* ## Example Usage
|
|
13
|
-
*
|
|
14
|
-
* ```typescript
|
|
15
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
-
* import * as pulumi from "@checkly/pulumi";
|
|
17
|
-
*
|
|
18
|
-
* const testGroup1CheckGroup = new checkly.CheckGroup("testGroup1CheckGroup", {
|
|
19
|
-
* activated: true,
|
|
20
|
-
* muted: false,
|
|
21
|
-
* tags: ["auto"],
|
|
22
|
-
* locations: ["eu-west-1"],
|
|
23
|
-
* concurrency: 3,
|
|
24
|
-
* apiCheckDefaults: {
|
|
25
|
-
* url: "http://example.com/",
|
|
26
|
-
* headers: {
|
|
27
|
-
* "X-Test": "foo",
|
|
28
|
-
* },
|
|
29
|
-
* queryParameters: {
|
|
30
|
-
* query: "foo",
|
|
31
|
-
* },
|
|
32
|
-
* assertions: [
|
|
33
|
-
* {
|
|
34
|
-
* source: "STATUS_CODE",
|
|
35
|
-
* property: "",
|
|
36
|
-
* comparison: "EQUALS",
|
|
37
|
-
* target: "200",
|
|
38
|
-
* },
|
|
39
|
-
* {
|
|
40
|
-
* source: "TEXT_BODY",
|
|
41
|
-
* property: "",
|
|
42
|
-
* comparison: "CONTAINS",
|
|
43
|
-
* target: "welcome",
|
|
44
|
-
* },
|
|
45
|
-
* ],
|
|
46
|
-
* basicAuth: {
|
|
47
|
-
* username: "user",
|
|
48
|
-
* password: "pass",
|
|
49
|
-
* },
|
|
50
|
-
* },
|
|
51
|
-
* environmentVariables: {
|
|
52
|
-
* ENVTEST: "Hello world",
|
|
53
|
-
* },
|
|
54
|
-
* doubleCheck: true,
|
|
55
|
-
* useGlobalAlertSettings: false,
|
|
56
|
-
* alertSettings: {
|
|
57
|
-
* escalationType: "RUN_BASED",
|
|
58
|
-
* runBasedEscalations: [{
|
|
59
|
-
* failedRunThreshold: 1,
|
|
60
|
-
* }],
|
|
61
|
-
* timeBasedEscalations: [{
|
|
62
|
-
* minutesFailingThreshold: 5,
|
|
63
|
-
* }],
|
|
64
|
-
* reminders: [{
|
|
65
|
-
* amount: 2,
|
|
66
|
-
* interval: 5,
|
|
67
|
-
* }],
|
|
68
|
-
* },
|
|
69
|
-
* localSetupScript: "setup-test",
|
|
70
|
-
* localTeardownScript: "teardown-test",
|
|
71
|
-
* });
|
|
72
|
-
* // Add a check to a group
|
|
73
|
-
* const testCheck1 = new checkly.Check("testCheck1", {
|
|
74
|
-
* groupId: testGroup1CheckGroup.id,
|
|
75
|
-
* groupOrder: 1,
|
|
76
|
-
* });
|
|
77
|
-
* // Using with alert channels
|
|
78
|
-
* const emailAc1 = new checkly.AlertChannel("emailAc1", {email: {
|
|
79
|
-
* address: "info@example.com",
|
|
80
|
-
* }});
|
|
81
|
-
* const emailAc2 = new checkly.AlertChannel("emailAc2", {email: {
|
|
82
|
-
* address: "info2@example.com",
|
|
83
|
-
* }});
|
|
84
|
-
* // Connect the check group to the alert channels
|
|
85
|
-
* const testGroup1Index_checkGroupCheckGroup = new checkly.CheckGroup("testGroup1Index/checkGroupCheckGroup", {alertChannelSubscriptions: [
|
|
86
|
-
* {
|
|
87
|
-
* channelId: emailAc1.id,
|
|
88
|
-
* activated: true,
|
|
89
|
-
* },
|
|
90
|
-
* {
|
|
91
|
-
* channelId: emailAc2.id,
|
|
92
|
-
* activated: true,
|
|
93
|
-
* },
|
|
94
|
-
* ]});
|
|
95
|
-
* ```
|
|
96
11
|
*/
|
|
97
12
|
class CheckGroup extends pulumi.CustomResource {
|
|
98
13
|
/**
|
|
@@ -128,6 +43,7 @@ class CheckGroup extends pulumi.CustomResource {
|
|
|
128
43
|
resourceInputs["apiCheckDefaults"] = state ? state.apiCheckDefaults : undefined;
|
|
129
44
|
resourceInputs["concurrency"] = state ? state.concurrency : undefined;
|
|
130
45
|
resourceInputs["doubleCheck"] = state ? state.doubleCheck : undefined;
|
|
46
|
+
resourceInputs["environmentVariable"] = state ? state.environmentVariable : undefined;
|
|
131
47
|
resourceInputs["environmentVariables"] = state ? state.environmentVariables : undefined;
|
|
132
48
|
resourceInputs["localSetupScript"] = state ? state.localSetupScript : undefined;
|
|
133
49
|
resourceInputs["localTeardownScript"] = state ? state.localTeardownScript : undefined;
|
|
@@ -135,6 +51,8 @@ class CheckGroup extends pulumi.CustomResource {
|
|
|
135
51
|
resourceInputs["muted"] = state ? state.muted : undefined;
|
|
136
52
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
137
53
|
resourceInputs["privateLocations"] = state ? state.privateLocations : undefined;
|
|
54
|
+
resourceInputs["retryStrategy"] = state ? state.retryStrategy : undefined;
|
|
55
|
+
resourceInputs["runParallel"] = state ? state.runParallel : undefined;
|
|
138
56
|
resourceInputs["runtimeId"] = state ? state.runtimeId : undefined;
|
|
139
57
|
resourceInputs["setupSnippetId"] = state ? state.setupSnippetId : undefined;
|
|
140
58
|
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
@@ -152,9 +70,10 @@ class CheckGroup extends pulumi.CustomResource {
|
|
|
152
70
|
resourceInputs["activated"] = args ? args.activated : undefined;
|
|
153
71
|
resourceInputs["alertChannelSubscriptions"] = args ? args.alertChannelSubscriptions : undefined;
|
|
154
72
|
resourceInputs["alertSettings"] = args ? args.alertSettings : undefined;
|
|
155
|
-
resourceInputs["apiCheckDefaults"] = args ? (args.apiCheckDefaults ? pulumi.output(args.apiCheckDefaults).apply(
|
|
73
|
+
resourceInputs["apiCheckDefaults"] = args ? (args.apiCheckDefaults ? pulumi.output(args.apiCheckDefaults).apply(inputs.checkGroupApiCheckDefaultsProvideDefaults) : undefined) : undefined;
|
|
156
74
|
resourceInputs["concurrency"] = args ? args.concurrency : undefined;
|
|
157
75
|
resourceInputs["doubleCheck"] = args ? args.doubleCheck : undefined;
|
|
76
|
+
resourceInputs["environmentVariable"] = args ? args.environmentVariable : undefined;
|
|
158
77
|
resourceInputs["environmentVariables"] = args ? args.environmentVariables : undefined;
|
|
159
78
|
resourceInputs["localSetupScript"] = args ? args.localSetupScript : undefined;
|
|
160
79
|
resourceInputs["localTeardownScript"] = args ? args.localTeardownScript : undefined;
|
|
@@ -162,6 +81,8 @@ class CheckGroup extends pulumi.CustomResource {
|
|
|
162
81
|
resourceInputs["muted"] = args ? args.muted : undefined;
|
|
163
82
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
164
83
|
resourceInputs["privateLocations"] = args ? args.privateLocations : undefined;
|
|
84
|
+
resourceInputs["retryStrategy"] = args ? args.retryStrategy : undefined;
|
|
85
|
+
resourceInputs["runParallel"] = args ? args.runParallel : undefined;
|
|
165
86
|
resourceInputs["runtimeId"] = args ? args.runtimeId : undefined;
|
|
166
87
|
resourceInputs["setupSnippetId"] = args ? args.setupSnippetId : undefined;
|
|
167
88
|
resourceInputs["tags"] = args ? args.tags : undefined;
|
package/checkGroup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkGroup.js","sourceRoot":"","sources":["../checkGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"checkGroup.js","sourceRoot":"","sources":["../checkGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,wCAAwC;AAExC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IA0FD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,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AAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7F;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AA9KL,gCA+KC;AAjKG,gBAAgB;AACO,uBAAY,GAAG,qCAAqC,CAAC"}
|
package/dashboard.d.ts
CHANGED
|
@@ -4,19 +4,19 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
*
|
|
5
5
|
* ```typescript
|
|
6
6
|
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
-
* import * as checkly from "@pulumi
|
|
7
|
+
* import * as checkly from "@checkly/pulumi";
|
|
8
8
|
*
|
|
9
9
|
* const dashboard1 = new checkly.Dashboard("dashboard_1", {
|
|
10
|
-
* customDomain: "status.example.com",
|
|
11
10
|
* customUrl: "checkly",
|
|
12
|
-
*
|
|
13
|
-
* hideTags: false,
|
|
11
|
+
* customDomain: "status.example.com",
|
|
14
12
|
* logo: "https://www.checklyhq.com/logo.png",
|
|
13
|
+
* header: "Public dashboard",
|
|
14
|
+
* refreshRate: 60,
|
|
15
15
|
* paginate: false,
|
|
16
16
|
* paginationRate: 30,
|
|
17
|
-
*
|
|
18
|
-
* tags: ["production"],
|
|
17
|
+
* hideTags: false,
|
|
19
18
|
* width: "FULL",
|
|
19
|
+
* tags: ["production"],
|
|
20
20
|
* });
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
@@ -49,7 +49,7 @@ export declare class Dashboard extends pulumi.CustomResource {
|
|
|
49
49
|
*/
|
|
50
50
|
readonly customUrl: pulumi.Output<string>;
|
|
51
51
|
/**
|
|
52
|
-
* HTML
|
|
52
|
+
* HTML \n\n description for the dashboard.
|
|
53
53
|
*/
|
|
54
54
|
readonly description: pulumi.Output<string | undefined>;
|
|
55
55
|
/**
|
|
@@ -64,6 +64,14 @@ export declare class Dashboard extends pulumi.CustomResource {
|
|
|
64
64
|
* Show or hide the tags on the dashboard.
|
|
65
65
|
*/
|
|
66
66
|
readonly hideTags: pulumi.Output<boolean | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* Set your dashboard as private and generate key.
|
|
69
|
+
*/
|
|
70
|
+
readonly isPrivate: pulumi.Output<boolean | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* The access key when the dashboard is private.
|
|
73
|
+
*/
|
|
74
|
+
readonly key: pulumi.Output<string>;
|
|
67
75
|
/**
|
|
68
76
|
* A link to for the dashboard logo.
|
|
69
77
|
*/
|
|
@@ -122,7 +130,7 @@ export interface DashboardState {
|
|
|
122
130
|
*/
|
|
123
131
|
customUrl?: pulumi.Input<string>;
|
|
124
132
|
/**
|
|
125
|
-
* HTML
|
|
133
|
+
* HTML \n\n description for the dashboard.
|
|
126
134
|
*/
|
|
127
135
|
description?: pulumi.Input<string>;
|
|
128
136
|
/**
|
|
@@ -137,6 +145,14 @@ export interface DashboardState {
|
|
|
137
145
|
* Show or hide the tags on the dashboard.
|
|
138
146
|
*/
|
|
139
147
|
hideTags?: pulumi.Input<boolean>;
|
|
148
|
+
/**
|
|
149
|
+
* Set your dashboard as private and generate key.
|
|
150
|
+
*/
|
|
151
|
+
isPrivate?: pulumi.Input<boolean>;
|
|
152
|
+
/**
|
|
153
|
+
* The access key when the dashboard is private.
|
|
154
|
+
*/
|
|
155
|
+
key?: pulumi.Input<string>;
|
|
140
156
|
/**
|
|
141
157
|
* A link to for the dashboard logo.
|
|
142
158
|
*/
|
|
@@ -187,7 +203,7 @@ export interface DashboardArgs {
|
|
|
187
203
|
*/
|
|
188
204
|
customUrl: pulumi.Input<string>;
|
|
189
205
|
/**
|
|
190
|
-
* HTML
|
|
206
|
+
* HTML \n\n description for the dashboard.
|
|
191
207
|
*/
|
|
192
208
|
description?: pulumi.Input<string>;
|
|
193
209
|
/**
|
|
@@ -202,6 +218,10 @@ export interface DashboardArgs {
|
|
|
202
218
|
* Show or hide the tags on the dashboard.
|
|
203
219
|
*/
|
|
204
220
|
hideTags?: pulumi.Input<boolean>;
|
|
221
|
+
/**
|
|
222
|
+
* Set your dashboard as private and generate key.
|
|
223
|
+
*/
|
|
224
|
+
isPrivate?: pulumi.Input<boolean>;
|
|
205
225
|
/**
|
|
206
226
|
* A link to for the dashboard logo.
|
|
207
227
|
*/
|
package/dashboard.js
CHANGED
|
@@ -10,19 +10,19 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* ```typescript
|
|
12
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
-
* import * as checkly from "@pulumi
|
|
13
|
+
* import * as checkly from "@checkly/pulumi";
|
|
14
14
|
*
|
|
15
15
|
* const dashboard1 = new checkly.Dashboard("dashboard_1", {
|
|
16
|
-
* customDomain: "status.example.com",
|
|
17
16
|
* customUrl: "checkly",
|
|
18
|
-
*
|
|
19
|
-
* hideTags: false,
|
|
17
|
+
* customDomain: "status.example.com",
|
|
20
18
|
* logo: "https://www.checklyhq.com/logo.png",
|
|
19
|
+
* header: "Public dashboard",
|
|
20
|
+
* refreshRate: 60,
|
|
21
21
|
* paginate: false,
|
|
22
22
|
* paginationRate: 30,
|
|
23
|
-
*
|
|
24
|
-
* tags: ["production"],
|
|
23
|
+
* hideTags: false,
|
|
25
24
|
* width: "FULL",
|
|
25
|
+
* tags: ["production"],
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
@@ -61,6 +61,8 @@ class Dashboard extends pulumi.CustomResource {
|
|
|
61
61
|
resourceInputs["favicon"] = state ? state.favicon : undefined;
|
|
62
62
|
resourceInputs["header"] = state ? state.header : undefined;
|
|
63
63
|
resourceInputs["hideTags"] = state ? state.hideTags : undefined;
|
|
64
|
+
resourceInputs["isPrivate"] = state ? state.isPrivate : undefined;
|
|
65
|
+
resourceInputs["key"] = state ? state.key : undefined;
|
|
64
66
|
resourceInputs["link"] = state ? state.link : undefined;
|
|
65
67
|
resourceInputs["logo"] = state ? state.logo : undefined;
|
|
66
68
|
resourceInputs["paginate"] = state ? state.paginate : undefined;
|
|
@@ -82,6 +84,7 @@ class Dashboard extends pulumi.CustomResource {
|
|
|
82
84
|
resourceInputs["favicon"] = args ? args.favicon : undefined;
|
|
83
85
|
resourceInputs["header"] = args ? args.header : undefined;
|
|
84
86
|
resourceInputs["hideTags"] = args ? args.hideTags : undefined;
|
|
87
|
+
resourceInputs["isPrivate"] = args ? args.isPrivate : undefined;
|
|
85
88
|
resourceInputs["link"] = args ? args.link : undefined;
|
|
86
89
|
resourceInputs["logo"] = args ? args.logo : undefined;
|
|
87
90
|
resourceInputs["paginate"] = args ? args.paginate : undefined;
|
|
@@ -90,8 +93,11 @@ class Dashboard extends pulumi.CustomResource {
|
|
|
90
93
|
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
91
94
|
resourceInputs["useTagsAndOperator"] = args ? args.useTagsAndOperator : undefined;
|
|
92
95
|
resourceInputs["width"] = args ? args.width : undefined;
|
|
96
|
+
resourceInputs["key"] = undefined /*out*/;
|
|
93
97
|
}
|
|
94
98
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
99
|
+
const secretOpts = { additionalSecretOutputs: ["key"] };
|
|
100
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
95
101
|
super(Dashboard.__pulumiType, name, resourceInputs, opts);
|
|
96
102
|
}
|
|
97
103
|
}
|
package/dashboard.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../dashboard.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;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c,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;QACxD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AA1JL,8BA2JC;AA7IG,gBAAgB;AACO,sBAAY,GAAG,mCAAmC,CAAC"}
|
package/environmentVariable.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
*
|
|
5
5
|
* ```typescript
|
|
6
6
|
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
-
* import * as checkly from "@pulumi
|
|
7
|
+
* import * as checkly from "@checkly/pulumi";
|
|
8
8
|
*
|
|
9
9
|
* // Simple Enviroment Variable example
|
|
10
10
|
* const variable1 = new checkly.EnvironmentVariable("variable_1", {
|
|
11
11
|
* key: "API_KEY",
|
|
12
|
-
* locked: true,
|
|
13
12
|
* value: "loZd9hOGHDUrGvmW",
|
|
13
|
+
* locked: true,
|
|
14
14
|
* });
|
|
15
15
|
* const variable2 = new checkly.EnvironmentVariable("variable_2", {
|
|
16
16
|
* key: "API_URL",
|
|
@@ -36,6 +36,7 @@ export declare class EnvironmentVariable extends pulumi.CustomResource {
|
|
|
36
36
|
static isInstance(obj: any): obj is EnvironmentVariable;
|
|
37
37
|
readonly key: pulumi.Output<string>;
|
|
38
38
|
readonly locked: pulumi.Output<boolean | undefined>;
|
|
39
|
+
readonly secret: pulumi.Output<boolean | undefined>;
|
|
39
40
|
readonly value: pulumi.Output<string>;
|
|
40
41
|
/**
|
|
41
42
|
* Create a EnvironmentVariable resource with the given unique name, arguments, and options.
|
|
@@ -52,6 +53,7 @@ export declare class EnvironmentVariable extends pulumi.CustomResource {
|
|
|
52
53
|
export interface EnvironmentVariableState {
|
|
53
54
|
key?: pulumi.Input<string>;
|
|
54
55
|
locked?: pulumi.Input<boolean>;
|
|
56
|
+
secret?: pulumi.Input<boolean>;
|
|
55
57
|
value?: pulumi.Input<string>;
|
|
56
58
|
}
|
|
57
59
|
/**
|
|
@@ -60,5 +62,6 @@ export interface EnvironmentVariableState {
|
|
|
60
62
|
export interface EnvironmentVariableArgs {
|
|
61
63
|
key: pulumi.Input<string>;
|
|
62
64
|
locked?: pulumi.Input<boolean>;
|
|
65
|
+
secret?: pulumi.Input<boolean>;
|
|
63
66
|
value: pulumi.Input<string>;
|
|
64
67
|
}
|
package/environmentVariable.js
CHANGED
|
@@ -10,13 +10,13 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* ```typescript
|
|
12
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
-
* import * as checkly from "@pulumi
|
|
13
|
+
* import * as checkly from "@checkly/pulumi";
|
|
14
14
|
*
|
|
15
15
|
* // Simple Enviroment Variable example
|
|
16
16
|
* const variable1 = new checkly.EnvironmentVariable("variable_1", {
|
|
17
17
|
* key: "API_KEY",
|
|
18
|
-
* locked: true,
|
|
19
18
|
* value: "loZd9hOGHDUrGvmW",
|
|
19
|
+
* locked: true,
|
|
20
20
|
* });
|
|
21
21
|
* const variable2 = new checkly.EnvironmentVariable("variable_2", {
|
|
22
22
|
* key: "API_URL",
|
|
@@ -54,6 +54,7 @@ class EnvironmentVariable extends pulumi.CustomResource {
|
|
|
54
54
|
const state = argsOrState;
|
|
55
55
|
resourceInputs["key"] = state ? state.key : undefined;
|
|
56
56
|
resourceInputs["locked"] = state ? state.locked : undefined;
|
|
57
|
+
resourceInputs["secret"] = state ? state.secret : undefined;
|
|
57
58
|
resourceInputs["value"] = state ? state.value : undefined;
|
|
58
59
|
}
|
|
59
60
|
else {
|
|
@@ -66,6 +67,7 @@ class EnvironmentVariable extends pulumi.CustomResource {
|
|
|
66
67
|
}
|
|
67
68
|
resourceInputs["key"] = args ? args.key : undefined;
|
|
68
69
|
resourceInputs["locked"] = args ? args.locked : undefined;
|
|
70
|
+
resourceInputs["secret"] = args ? args.secret : undefined;
|
|
69
71
|
resourceInputs["value"] = args ? args.value : undefined;
|
|
70
72
|
}
|
|
71
73
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environmentVariable.js","sourceRoot":"","sources":["../environmentVariable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;
|
|
1
|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