@checkly/pulumi 0.0.1-alpha.4 → 0.0.1-alpha.6
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/README.md +2 -3
- package/alertChannel.ts +55 -138
- package/bin/README.md +58 -15
- package/bin/alertChannel.d.ts +55 -138
- package/bin/alertChannel.js +40 -105
- package/bin/alertChannel.js.map +1 -1
- package/bin/check.d.ts +90 -51
- package/bin/check.js +3 -0
- package/bin/check.js.map +1 -1
- package/bin/checkGroup.d.ts +112 -36
- package/bin/checkGroup.js +88 -0
- package/bin/checkGroup.js.map +1 -1
- package/bin/dashboard.d.ts +125 -14
- package/bin/dashboard.js +21 -21
- package/bin/dashboard.js.map +1 -1
- package/bin/environmentVariable.d.ts +64 -0
- package/bin/environmentVariable.js +78 -0
- package/bin/environmentVariable.js.map +1 -0
- package/bin/index.d.ts +1 -0
- package/bin/index.js +5 -0
- package/bin/index.js.map +1 -1
- package/bin/maintenanceWindow.d.ts +16 -36
- package/bin/maintenanceWindow.js +1 -30
- package/bin/maintenanceWindow.js.map +1 -1
- package/bin/package.json +3 -3
- package/bin/snippet.d.ts +3 -3
- package/bin/triggerCheck.d.ts +18 -6
- package/bin/triggerCheck.js +0 -6
- package/bin/triggerCheck.js.map +1 -1
- package/bin/triggerCheckGroup.d.ts +18 -6
- package/bin/triggerCheckGroup.js +0 -6
- package/bin/triggerCheckGroup.js.map +1 -1
- package/bin/types/input.d.ts +2 -188
- package/bin/types/input.js.map +1 -1
- package/bin/types/output.d.ts +2 -188
- package/bin/types/output.js.map +1 -1
- package/bin/yarn.lock +179 -117
- package/check.ts +90 -51
- package/checkGroup.ts +112 -36
- package/dashboard.ts +125 -35
- package/environmentVariable.ts +107 -0
- package/index.ts +5 -0
- package/maintenanceWindow.ts +16 -45
- package/package.json +29 -29
- package/snippet.ts +3 -3
- package/triggerCheck.ts +18 -6
- package/triggerCheckGroup.ts +18 -6
- package/tsconfig.json +1 -0
- package/types/input.ts +2 -188
- package/types/output.ts +2 -188
package/dashboard.ts
CHANGED
|
@@ -4,6 +4,27 @@
|
|
|
4
4
|
import * as pulumi from "@pulumi/pulumi";
|
|
5
5
|
import * as utilities from "./utilities";
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as checkly from "@pulumi/checkly";
|
|
13
|
+
*
|
|
14
|
+
* const dashboard_1 = new checkly.Dashboard("dashboard-1", {
|
|
15
|
+
* customDomain: "status.example.com",
|
|
16
|
+
* customUrl: "checkly",
|
|
17
|
+
* header: "Public dashboard",
|
|
18
|
+
* hideTags: false,
|
|
19
|
+
* logo: "https://www.checklyhq.com/logo.png",
|
|
20
|
+
* paginate: false,
|
|
21
|
+
* paginationRate: 30,
|
|
22
|
+
* refreshRate: 60,
|
|
23
|
+
* tags: ["production"],
|
|
24
|
+
* width: "FULL",
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
7
28
|
export class Dashboard extends pulumi.CustomResource {
|
|
8
29
|
/**
|
|
9
30
|
* Get an existing Dashboard resource's state with the given name, ID, and optional extra
|
|
@@ -32,15 +53,45 @@ export class Dashboard extends pulumi.CustomResource {
|
|
|
32
53
|
return obj['__pulumiType'] === Dashboard.__pulumiType;
|
|
33
54
|
}
|
|
34
55
|
|
|
35
|
-
|
|
56
|
+
/**
|
|
57
|
+
* A custom user domain, e.g. 'status.example.com'. See the docs on updating your DNS and SSL usage.
|
|
58
|
+
*/
|
|
59
|
+
public readonly customDomain!: pulumi.Output<string | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* A subdomain name under 'checklyhq.com'. Needs to be unique across all users.
|
|
62
|
+
*/
|
|
36
63
|
public readonly customUrl!: pulumi.Output<string>;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
public readonly
|
|
41
|
-
|
|
42
|
-
|
|
64
|
+
/**
|
|
65
|
+
* A piece of text displayed at the top of your dashboard.
|
|
66
|
+
*/
|
|
67
|
+
public readonly header!: pulumi.Output<string | undefined>;
|
|
68
|
+
/**
|
|
69
|
+
* Show or hide the tags on the dashboard.
|
|
70
|
+
*/
|
|
71
|
+
public readonly hideTags!: pulumi.Output<boolean | undefined>;
|
|
72
|
+
/**
|
|
73
|
+
* A URL pointing to an image file.
|
|
74
|
+
*/
|
|
75
|
+
public readonly logo!: pulumi.Output<string | undefined>;
|
|
76
|
+
/**
|
|
77
|
+
* Determines if pagination is on or off.
|
|
78
|
+
*/
|
|
79
|
+
public readonly paginate!: pulumi.Output<boolean | undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* How often to trigger pagination in seconds. Possible values `30`, `60` and `300`.
|
|
82
|
+
*/
|
|
83
|
+
public readonly paginationRate!: pulumi.Output<number | undefined>;
|
|
84
|
+
/**
|
|
85
|
+
* How often to refresh the dashboard in seconds. Possible values `30`, `60` and `600`.
|
|
86
|
+
*/
|
|
87
|
+
public readonly refreshRate!: pulumi.Output<number | undefined>;
|
|
88
|
+
/**
|
|
89
|
+
* A list of one or more tags that filter which checks to display on the dashboard.
|
|
90
|
+
*/
|
|
43
91
|
public readonly tags!: pulumi.Output<string[] | undefined>;
|
|
92
|
+
/**
|
|
93
|
+
* Determines whether to use the full screen or focus in the center. Possible values `FULL` and `960PX`.
|
|
94
|
+
*/
|
|
44
95
|
public readonly width!: pulumi.Output<string | undefined>;
|
|
45
96
|
|
|
46
97
|
/**
|
|
@@ -68,30 +119,9 @@ export class Dashboard extends pulumi.CustomResource {
|
|
|
68
119
|
resourceInputs["width"] = state ? state.width : undefined;
|
|
69
120
|
} else {
|
|
70
121
|
const args = argsOrState as DashboardArgs | undefined;
|
|
71
|
-
if ((!args || args.customDomain === undefined) && !opts.urn) {
|
|
72
|
-
throw new Error("Missing required property 'customDomain'");
|
|
73
|
-
}
|
|
74
122
|
if ((!args || args.customUrl === undefined) && !opts.urn) {
|
|
75
123
|
throw new Error("Missing required property 'customUrl'");
|
|
76
124
|
}
|
|
77
|
-
if ((!args || args.header === undefined) && !opts.urn) {
|
|
78
|
-
throw new Error("Missing required property 'header'");
|
|
79
|
-
}
|
|
80
|
-
if ((!args || args.hideTags === undefined) && !opts.urn) {
|
|
81
|
-
throw new Error("Missing required property 'hideTags'");
|
|
82
|
-
}
|
|
83
|
-
if ((!args || args.logo === undefined) && !opts.urn) {
|
|
84
|
-
throw new Error("Missing required property 'logo'");
|
|
85
|
-
}
|
|
86
|
-
if ((!args || args.paginate === undefined) && !opts.urn) {
|
|
87
|
-
throw new Error("Missing required property 'paginate'");
|
|
88
|
-
}
|
|
89
|
-
if ((!args || args.paginationRate === undefined) && !opts.urn) {
|
|
90
|
-
throw new Error("Missing required property 'paginationRate'");
|
|
91
|
-
}
|
|
92
|
-
if ((!args || args.refreshRate === undefined) && !opts.urn) {
|
|
93
|
-
throw new Error("Missing required property 'refreshRate'");
|
|
94
|
-
}
|
|
95
125
|
resourceInputs["customDomain"] = args ? args.customDomain : undefined;
|
|
96
126
|
resourceInputs["customUrl"] = args ? args.customUrl : undefined;
|
|
97
127
|
resourceInputs["header"] = args ? args.header : undefined;
|
|
@@ -112,15 +142,45 @@ export class Dashboard extends pulumi.CustomResource {
|
|
|
112
142
|
* Input properties used for looking up and filtering Dashboard resources.
|
|
113
143
|
*/
|
|
114
144
|
export interface DashboardState {
|
|
145
|
+
/**
|
|
146
|
+
* A custom user domain, e.g. 'status.example.com'. See the docs on updating your DNS and SSL usage.
|
|
147
|
+
*/
|
|
115
148
|
customDomain?: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* A subdomain name under 'checklyhq.com'. Needs to be unique across all users.
|
|
151
|
+
*/
|
|
116
152
|
customUrl?: pulumi.Input<string>;
|
|
153
|
+
/**
|
|
154
|
+
* A piece of text displayed at the top of your dashboard.
|
|
155
|
+
*/
|
|
117
156
|
header?: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* Show or hide the tags on the dashboard.
|
|
159
|
+
*/
|
|
118
160
|
hideTags?: pulumi.Input<boolean>;
|
|
161
|
+
/**
|
|
162
|
+
* A URL pointing to an image file.
|
|
163
|
+
*/
|
|
119
164
|
logo?: pulumi.Input<string>;
|
|
165
|
+
/**
|
|
166
|
+
* Determines if pagination is on or off.
|
|
167
|
+
*/
|
|
120
168
|
paginate?: pulumi.Input<boolean>;
|
|
169
|
+
/**
|
|
170
|
+
* How often to trigger pagination in seconds. Possible values `30`, `60` and `300`.
|
|
171
|
+
*/
|
|
121
172
|
paginationRate?: pulumi.Input<number>;
|
|
173
|
+
/**
|
|
174
|
+
* How often to refresh the dashboard in seconds. Possible values `30`, `60` and `600`.
|
|
175
|
+
*/
|
|
122
176
|
refreshRate?: pulumi.Input<number>;
|
|
177
|
+
/**
|
|
178
|
+
* A list of one or more tags that filter which checks to display on the dashboard.
|
|
179
|
+
*/
|
|
123
180
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
181
|
+
/**
|
|
182
|
+
* Determines whether to use the full screen or focus in the center. Possible values `FULL` and `960PX`.
|
|
183
|
+
*/
|
|
124
184
|
width?: pulumi.Input<string>;
|
|
125
185
|
}
|
|
126
186
|
|
|
@@ -128,14 +188,44 @@ export interface DashboardState {
|
|
|
128
188
|
* The set of arguments for constructing a Dashboard resource.
|
|
129
189
|
*/
|
|
130
190
|
export interface DashboardArgs {
|
|
131
|
-
|
|
191
|
+
/**
|
|
192
|
+
* A custom user domain, e.g. 'status.example.com'. See the docs on updating your DNS and SSL usage.
|
|
193
|
+
*/
|
|
194
|
+
customDomain?: pulumi.Input<string>;
|
|
195
|
+
/**
|
|
196
|
+
* A subdomain name under 'checklyhq.com'. Needs to be unique across all users.
|
|
197
|
+
*/
|
|
132
198
|
customUrl: pulumi.Input<string>;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
199
|
+
/**
|
|
200
|
+
* A piece of text displayed at the top of your dashboard.
|
|
201
|
+
*/
|
|
202
|
+
header?: pulumi.Input<string>;
|
|
203
|
+
/**
|
|
204
|
+
* Show or hide the tags on the dashboard.
|
|
205
|
+
*/
|
|
206
|
+
hideTags?: pulumi.Input<boolean>;
|
|
207
|
+
/**
|
|
208
|
+
* A URL pointing to an image file.
|
|
209
|
+
*/
|
|
210
|
+
logo?: pulumi.Input<string>;
|
|
211
|
+
/**
|
|
212
|
+
* Determines if pagination is on or off.
|
|
213
|
+
*/
|
|
214
|
+
paginate?: pulumi.Input<boolean>;
|
|
215
|
+
/**
|
|
216
|
+
* How often to trigger pagination in seconds. Possible values `30`, `60` and `300`.
|
|
217
|
+
*/
|
|
218
|
+
paginationRate?: pulumi.Input<number>;
|
|
219
|
+
/**
|
|
220
|
+
* How often to refresh the dashboard in seconds. Possible values `30`, `60` and `600`.
|
|
221
|
+
*/
|
|
222
|
+
refreshRate?: pulumi.Input<number>;
|
|
223
|
+
/**
|
|
224
|
+
* A list of one or more tags that filter which checks to display on the dashboard.
|
|
225
|
+
*/
|
|
139
226
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
227
|
+
/**
|
|
228
|
+
* Determines whether to use the full screen or focus in the center. Possible values `FULL` and `960PX`.
|
|
229
|
+
*/
|
|
140
230
|
width?: pulumi.Input<string>;
|
|
141
231
|
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "./utilities";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as checkly from "@pulumi/checkly";
|
|
13
|
+
*
|
|
14
|
+
* // Simple Enviroment Variable example
|
|
15
|
+
* const variable_1 = new checkly.EnvironmentVariable("variable-1", {
|
|
16
|
+
* key: "API_KEY",
|
|
17
|
+
* locked: true,
|
|
18
|
+
* value: "loZd9hOGHDUrGvmW",
|
|
19
|
+
* });
|
|
20
|
+
* const variable_2 = new checkly.EnvironmentVariable("variable-2", {
|
|
21
|
+
* key: "API_URL",
|
|
22
|
+
* value: "http://localhost:3000",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export class EnvironmentVariable extends pulumi.CustomResource {
|
|
27
|
+
/**
|
|
28
|
+
* Get an existing EnvironmentVariable resource's state with the given name, ID, and optional extra
|
|
29
|
+
* properties used to qualify the lookup.
|
|
30
|
+
*
|
|
31
|
+
* @param name The _unique_ name of the resulting resource.
|
|
32
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
33
|
+
* @param state Any extra arguments used during the lookup.
|
|
34
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
35
|
+
*/
|
|
36
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EnvironmentVariableState, opts?: pulumi.CustomResourceOptions): EnvironmentVariable {
|
|
37
|
+
return new EnvironmentVariable(name, <any>state, { ...opts, id: id });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
public static readonly __pulumiType = 'checkly:index/environmentVariable:EnvironmentVariable';
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Returns true if the given object is an instance of EnvironmentVariable. This is designed to work even
|
|
45
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
46
|
+
*/
|
|
47
|
+
public static isInstance(obj: any): obj is EnvironmentVariable {
|
|
48
|
+
if (obj === undefined || obj === null) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
return obj['__pulumiType'] === EnvironmentVariable.__pulumiType;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
public readonly key!: pulumi.Output<string>;
|
|
55
|
+
public readonly locked!: pulumi.Output<boolean | undefined>;
|
|
56
|
+
public readonly value!: pulumi.Output<string>;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Create a EnvironmentVariable resource with the given unique name, arguments, and options.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resource.
|
|
62
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
63
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
64
|
+
*/
|
|
65
|
+
constructor(name: string, args: EnvironmentVariableArgs, opts?: pulumi.CustomResourceOptions)
|
|
66
|
+
constructor(name: string, argsOrState?: EnvironmentVariableArgs | EnvironmentVariableState, opts?: pulumi.CustomResourceOptions) {
|
|
67
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
68
|
+
opts = opts || {};
|
|
69
|
+
if (opts.id) {
|
|
70
|
+
const state = argsOrState as EnvironmentVariableState | undefined;
|
|
71
|
+
resourceInputs["key"] = state ? state.key : undefined;
|
|
72
|
+
resourceInputs["locked"] = state ? state.locked : undefined;
|
|
73
|
+
resourceInputs["value"] = state ? state.value : undefined;
|
|
74
|
+
} else {
|
|
75
|
+
const args = argsOrState as EnvironmentVariableArgs | undefined;
|
|
76
|
+
if ((!args || args.key === undefined) && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'key'");
|
|
78
|
+
}
|
|
79
|
+
if ((!args || args.value === undefined) && !opts.urn) {
|
|
80
|
+
throw new Error("Missing required property 'value'");
|
|
81
|
+
}
|
|
82
|
+
resourceInputs["key"] = args ? args.key : undefined;
|
|
83
|
+
resourceInputs["locked"] = args ? args.locked : undefined;
|
|
84
|
+
resourceInputs["value"] = args ? args.value : undefined;
|
|
85
|
+
}
|
|
86
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
87
|
+
super(EnvironmentVariable.__pulumiType, name, resourceInputs, opts);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Input properties used for looking up and filtering EnvironmentVariable resources.
|
|
93
|
+
*/
|
|
94
|
+
export interface EnvironmentVariableState {
|
|
95
|
+
key?: pulumi.Input<string>;
|
|
96
|
+
locked?: pulumi.Input<boolean>;
|
|
97
|
+
value?: pulumi.Input<string>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The set of arguments for constructing a EnvironmentVariable resource.
|
|
102
|
+
*/
|
|
103
|
+
export interface EnvironmentVariableArgs {
|
|
104
|
+
key: pulumi.Input<string>;
|
|
105
|
+
locked?: pulumi.Input<boolean>;
|
|
106
|
+
value: pulumi.Input<string>;
|
|
107
|
+
}
|
package/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from "./alertChannel";
|
|
|
9
9
|
export * from "./check";
|
|
10
10
|
export * from "./checkGroup";
|
|
11
11
|
export * from "./dashboard";
|
|
12
|
+
export * from "./environmentVariable";
|
|
12
13
|
export * from "./maintenanceWindow";
|
|
13
14
|
export * from "./provider";
|
|
14
15
|
export * from "./snippet";
|
|
@@ -29,6 +30,7 @@ import { AlertChannel } from "./alertChannel";
|
|
|
29
30
|
import { Check } from "./check";
|
|
30
31
|
import { CheckGroup } from "./checkGroup";
|
|
31
32
|
import { Dashboard } from "./dashboard";
|
|
33
|
+
import { EnvironmentVariable } from "./environmentVariable";
|
|
32
34
|
import { MaintenanceWindow } from "./maintenanceWindow";
|
|
33
35
|
import { Snippet } from "./snippet";
|
|
34
36
|
import { TriggerCheck } from "./triggerCheck";
|
|
@@ -46,6 +48,8 @@ const _module = {
|
|
|
46
48
|
return new CheckGroup(name, <any>undefined, { urn })
|
|
47
49
|
case "checkly:index/dashboard:Dashboard":
|
|
48
50
|
return new Dashboard(name, <any>undefined, { urn })
|
|
51
|
+
case "checkly:index/environmentVariable:EnvironmentVariable":
|
|
52
|
+
return new EnvironmentVariable(name, <any>undefined, { urn })
|
|
49
53
|
case "checkly:index/maintenanceWindow:MaintenanceWindow":
|
|
50
54
|
return new MaintenanceWindow(name, <any>undefined, { urn })
|
|
51
55
|
case "checkly:index/snippet:Snippet":
|
|
@@ -63,6 +67,7 @@ pulumi.runtime.registerResourceModule("checkly", "index/alertChannel", _module)
|
|
|
63
67
|
pulumi.runtime.registerResourceModule("checkly", "index/check", _module)
|
|
64
68
|
pulumi.runtime.registerResourceModule("checkly", "index/checkGroup", _module)
|
|
65
69
|
pulumi.runtime.registerResourceModule("checkly", "index/dashboard", _module)
|
|
70
|
+
pulumi.runtime.registerResourceModule("checkly", "index/environmentVariable", _module)
|
|
66
71
|
pulumi.runtime.registerResourceModule("checkly", "index/maintenanceWindow", _module)
|
|
67
72
|
pulumi.runtime.registerResourceModule("checkly", "index/snippet", _module)
|
|
68
73
|
pulumi.runtime.registerResourceModule("checkly", "index/triggerCheck", _module)
|
package/maintenanceWindow.ts
CHANGED
|
@@ -5,28 +5,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
5
5
|
import * as utilities from "./utilities";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* ## # checkly.MaintenanceWindow
|
|
9
|
-
*
|
|
10
|
-
* `checkly.MaintenanceWindow` allows users to manage Checkly maintenance windows. Add a `checkly.MaintenanceWindow` resource to your resource file.
|
|
11
|
-
*
|
|
12
8
|
* ## Example Usage
|
|
13
9
|
*
|
|
14
|
-
* Minimal maintenance windows example
|
|
15
|
-
*
|
|
16
|
-
* ```typescript
|
|
17
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
-
* import * as checkly from "@pulumi/checkly";
|
|
19
|
-
*
|
|
20
|
-
* const maintenance_1 = new checkly.MaintenanceWindow("maintenance-1", {
|
|
21
|
-
* endsAt: "2014-08-25T00:00:00.000Z",
|
|
22
|
-
* repeatUnit: "MONTH",
|
|
23
|
-
* startsAt: "2014-08-24T00:00:00.000Z",
|
|
24
|
-
* tags: ["auto"],
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* Full maintenance windows example (includes optional fields)
|
|
29
|
-
*
|
|
30
10
|
* ```typescript
|
|
31
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
32
12
|
* import * as checkly from "@pulumi/checkly";
|
|
@@ -37,7 +17,7 @@ import * as utilities from "./utilities";
|
|
|
37
17
|
* repeatInterval: 1,
|
|
38
18
|
* repeatUnit: "MONTH",
|
|
39
19
|
* startsAt: "2014-08-24T00:00:00.000Z",
|
|
40
|
-
* tags: ["
|
|
20
|
+
* tags: ["production"],
|
|
41
21
|
* });
|
|
42
22
|
* ```
|
|
43
23
|
*/
|
|
@@ -78,17 +58,17 @@ export class MaintenanceWindow extends pulumi.CustomResource {
|
|
|
78
58
|
*/
|
|
79
59
|
public readonly name!: pulumi.Output<string>;
|
|
80
60
|
/**
|
|
81
|
-
* The
|
|
61
|
+
* The date on which the maintenance window should stop repeating.
|
|
82
62
|
*/
|
|
83
|
-
public readonly repeatEndsAt!: pulumi.Output<string>;
|
|
63
|
+
public readonly repeatEndsAt!: pulumi.Output<string | undefined>;
|
|
84
64
|
/**
|
|
85
|
-
* The repeat interval of the maintenance window from the first
|
|
65
|
+
* The repeat interval of the maintenance window from the first occurrence.
|
|
86
66
|
*/
|
|
87
|
-
public readonly repeatInterval!: pulumi.Output<number>;
|
|
67
|
+
public readonly repeatInterval!: pulumi.Output<number | undefined>;
|
|
88
68
|
/**
|
|
89
|
-
* The repeat
|
|
69
|
+
* The repeat cadence for the maintenance window. Possible values `DAY`, `WEEK` and `MONTH`.
|
|
90
70
|
*/
|
|
91
|
-
public readonly repeatUnit!: pulumi.Output<string>;
|
|
71
|
+
public readonly repeatUnit!: pulumi.Output<string | undefined>;
|
|
92
72
|
/**
|
|
93
73
|
* The start date of the maintenance window.
|
|
94
74
|
*/
|
|
@@ -123,15 +103,6 @@ export class MaintenanceWindow extends pulumi.CustomResource {
|
|
|
123
103
|
if ((!args || args.endsAt === undefined) && !opts.urn) {
|
|
124
104
|
throw new Error("Missing required property 'endsAt'");
|
|
125
105
|
}
|
|
126
|
-
if ((!args || args.repeatEndsAt === undefined) && !opts.urn) {
|
|
127
|
-
throw new Error("Missing required property 'repeatEndsAt'");
|
|
128
|
-
}
|
|
129
|
-
if ((!args || args.repeatInterval === undefined) && !opts.urn) {
|
|
130
|
-
throw new Error("Missing required property 'repeatInterval'");
|
|
131
|
-
}
|
|
132
|
-
if ((!args || args.repeatUnit === undefined) && !opts.urn) {
|
|
133
|
-
throw new Error("Missing required property 'repeatUnit'");
|
|
134
|
-
}
|
|
135
106
|
if ((!args || args.startsAt === undefined) && !opts.urn) {
|
|
136
107
|
throw new Error("Missing required property 'startsAt'");
|
|
137
108
|
}
|
|
@@ -161,15 +132,15 @@ export interface MaintenanceWindowState {
|
|
|
161
132
|
*/
|
|
162
133
|
name?: pulumi.Input<string>;
|
|
163
134
|
/**
|
|
164
|
-
* The
|
|
135
|
+
* The date on which the maintenance window should stop repeating.
|
|
165
136
|
*/
|
|
166
137
|
repeatEndsAt?: pulumi.Input<string>;
|
|
167
138
|
/**
|
|
168
|
-
* The repeat interval of the maintenance window from the first
|
|
139
|
+
* The repeat interval of the maintenance window from the first occurrence.
|
|
169
140
|
*/
|
|
170
141
|
repeatInterval?: pulumi.Input<number>;
|
|
171
142
|
/**
|
|
172
|
-
* The repeat
|
|
143
|
+
* The repeat cadence for the maintenance window. Possible values `DAY`, `WEEK` and `MONTH`.
|
|
173
144
|
*/
|
|
174
145
|
repeatUnit?: pulumi.Input<string>;
|
|
175
146
|
/**
|
|
@@ -195,17 +166,17 @@ export interface MaintenanceWindowArgs {
|
|
|
195
166
|
*/
|
|
196
167
|
name?: pulumi.Input<string>;
|
|
197
168
|
/**
|
|
198
|
-
* The
|
|
169
|
+
* The date on which the maintenance window should stop repeating.
|
|
199
170
|
*/
|
|
200
|
-
repeatEndsAt
|
|
171
|
+
repeatEndsAt?: pulumi.Input<string>;
|
|
201
172
|
/**
|
|
202
|
-
* The repeat interval of the maintenance window from the first
|
|
173
|
+
* The repeat interval of the maintenance window from the first occurrence.
|
|
203
174
|
*/
|
|
204
|
-
repeatInterval
|
|
175
|
+
repeatInterval?: pulumi.Input<number>;
|
|
205
176
|
/**
|
|
206
|
-
* The repeat
|
|
177
|
+
* The repeat cadence for the maintenance window. Possible values `DAY`, `WEEK` and `MONTH`.
|
|
207
178
|
*/
|
|
208
|
-
repeatUnit
|
|
179
|
+
repeatUnit?: pulumi.Input<string>;
|
|
209
180
|
/**
|
|
210
181
|
* The start date of the maintenance window.
|
|
211
182
|
*/
|
package/package.json
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
2
|
+
"name": "@checkly/pulumi",
|
|
3
|
+
"version": "0.0.1-alpha.6",
|
|
4
|
+
"description": "A Pulumi package for creating and managing Checkly monitoring resources.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pulumi",
|
|
7
|
+
"checkly",
|
|
8
|
+
"category/monitoring"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://www.pulumi.com",
|
|
11
|
+
"repository": "https://github.com/checkly/pulumi-checkly",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "tsc",
|
|
15
|
+
"install": "node scripts/install-pulumi-plugin.js resource checkly ${VERSION}"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@types/mime": "^2.0.0",
|
|
22
|
+
"@types/node": "^10.0.0",
|
|
23
|
+
"typescript": "^4.3.5"
|
|
24
|
+
},
|
|
25
|
+
"pulumi": {
|
|
26
|
+
"resource": true,
|
|
27
|
+
"pluginDownloadURL": "https://github.com/checkly/pulumi-checkly/releases/0.0.1-alpha.6"
|
|
28
|
+
},
|
|
29
|
+
"main": "./bin/index.js",
|
|
30
|
+
"types": "./bin/index.d.ts"
|
|
31
31
|
}
|
package/snippet.ts
CHANGED
|
@@ -33,7 +33,7 @@ export class Snippet extends pulumi.CustomResource {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* The name of the snippet
|
|
36
|
+
* The name of the snippet
|
|
37
37
|
*/
|
|
38
38
|
public readonly name!: pulumi.Output<string>;
|
|
39
39
|
/**
|
|
@@ -74,7 +74,7 @@ export class Snippet extends pulumi.CustomResource {
|
|
|
74
74
|
*/
|
|
75
75
|
export interface SnippetState {
|
|
76
76
|
/**
|
|
77
|
-
* The name of the snippet
|
|
77
|
+
* The name of the snippet
|
|
78
78
|
*/
|
|
79
79
|
name?: pulumi.Input<string>;
|
|
80
80
|
/**
|
|
@@ -88,7 +88,7 @@ export interface SnippetState {
|
|
|
88
88
|
*/
|
|
89
89
|
export interface SnippetArgs {
|
|
90
90
|
/**
|
|
91
|
-
* The name of the snippet
|
|
91
|
+
* The name of the snippet
|
|
92
92
|
*/
|
|
93
93
|
name?: pulumi.Input<string>;
|
|
94
94
|
/**
|
package/triggerCheck.ts
CHANGED
|
@@ -5,14 +5,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
5
5
|
import * as utilities from "./utilities";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* ## # checkly.TriggerCheck
|
|
9
|
-
*
|
|
10
|
-
* `checkly.TriggerCheck` allows users to manage Checkly trigger checks. Add a `checkly.TriggerCheck` resource to your resource file.
|
|
11
|
-
*
|
|
12
8
|
* ## Example Usage
|
|
13
9
|
*
|
|
14
|
-
* Trigger check example
|
|
15
|
-
*
|
|
16
10
|
* ```typescript
|
|
17
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
18
12
|
* import * as pulumi from "@checkly/pulumi";
|
|
@@ -53,7 +47,13 @@ export class TriggerCheck extends pulumi.CustomResource {
|
|
|
53
47
|
* The id of the check that you want to attach the trigger to.
|
|
54
48
|
*/
|
|
55
49
|
public readonly checkId!: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* The token value created to trigger the check
|
|
52
|
+
*/
|
|
56
53
|
public readonly token!: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* The request URL to trigger the check run.
|
|
56
|
+
*/
|
|
57
57
|
public readonly url!: pulumi.Output<string>;
|
|
58
58
|
|
|
59
59
|
/**
|
|
@@ -94,7 +94,13 @@ export interface TriggerCheckState {
|
|
|
94
94
|
* The id of the check that you want to attach the trigger to.
|
|
95
95
|
*/
|
|
96
96
|
checkId?: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* The token value created to trigger the check
|
|
99
|
+
*/
|
|
97
100
|
token?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The request URL to trigger the check run.
|
|
103
|
+
*/
|
|
98
104
|
url?: pulumi.Input<string>;
|
|
99
105
|
}
|
|
100
106
|
|
|
@@ -106,6 +112,12 @@ export interface TriggerCheckArgs {
|
|
|
106
112
|
* The id of the check that you want to attach the trigger to.
|
|
107
113
|
*/
|
|
108
114
|
checkId: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* The token value created to trigger the check
|
|
117
|
+
*/
|
|
109
118
|
token?: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* The request URL to trigger the check run.
|
|
121
|
+
*/
|
|
110
122
|
url?: pulumi.Input<string>;
|
|
111
123
|
}
|
package/triggerCheckGroup.ts
CHANGED
|
@@ -5,14 +5,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
5
5
|
import * as utilities from "./utilities";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* ## # checkly.TriggerCheckGroup
|
|
9
|
-
*
|
|
10
|
-
* `checkly.TriggerCheckGroup` allows users to manage Checkly trigger groups. Add a `checkly.TriggerCheckGroup` resource to your resource file.
|
|
11
|
-
*
|
|
12
8
|
* ## Example Usage
|
|
13
9
|
*
|
|
14
|
-
* Trigger group example
|
|
15
|
-
*
|
|
16
10
|
* ```typescript
|
|
17
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
18
12
|
* import * as pulumi from "@checkly/pulumi";
|
|
@@ -53,7 +47,13 @@ export class TriggerCheckGroup extends pulumi.CustomResource {
|
|
|
53
47
|
* The id of the group that you want to attach the trigger to.
|
|
54
48
|
*/
|
|
55
49
|
public readonly groupId!: pulumi.Output<number>;
|
|
50
|
+
/**
|
|
51
|
+
* The token value created to trigger the group
|
|
52
|
+
*/
|
|
56
53
|
public readonly token!: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* The request URL to trigger the group run.
|
|
56
|
+
*/
|
|
57
57
|
public readonly url!: pulumi.Output<string>;
|
|
58
58
|
|
|
59
59
|
/**
|
|
@@ -94,7 +94,13 @@ export interface TriggerCheckGroupState {
|
|
|
94
94
|
* The id of the group that you want to attach the trigger to.
|
|
95
95
|
*/
|
|
96
96
|
groupId?: pulumi.Input<number>;
|
|
97
|
+
/**
|
|
98
|
+
* The token value created to trigger the group
|
|
99
|
+
*/
|
|
97
100
|
token?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The request URL to trigger the group run.
|
|
103
|
+
*/
|
|
98
104
|
url?: pulumi.Input<string>;
|
|
99
105
|
}
|
|
100
106
|
|
|
@@ -106,6 +112,12 @@ export interface TriggerCheckGroupArgs {
|
|
|
106
112
|
* The id of the group that you want to attach the trigger to.
|
|
107
113
|
*/
|
|
108
114
|
groupId: pulumi.Input<number>;
|
|
115
|
+
/**
|
|
116
|
+
* The token value created to trigger the group
|
|
117
|
+
*/
|
|
109
118
|
token?: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* The request URL to trigger the group run.
|
|
121
|
+
*/
|
|
110
122
|
url?: pulumi.Input<string>;
|
|
111
123
|
}
|