@checkly/pulumi 0.0.1-alpha.9 → 0.0.3
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/{bin/LICENSE → LICENSE} +0 -0
- package/README.md +81 -82
- package/{bin/alertChannel.d.ts → alertChannel.d.ts} +0 -0
- package/{bin/alertChannel.js → alertChannel.js} +0 -0
- package/{bin/alertChannel.js.map → alertChannel.js.map} +0 -0
- package/{bin/check.d.ts → check.d.ts} +0 -0
- package/{bin/check.js → check.js} +0 -0
- package/{bin/check.js.map → check.js.map} +0 -0
- package/{bin/checkGroup.d.ts → checkGroup.d.ts} +0 -0
- package/{bin/checkGroup.js → checkGroup.js} +0 -0
- package/{bin/checkGroup.js.map → checkGroup.js.map} +0 -0
- package/{bin/config → config}/index.d.ts +0 -0
- package/{bin/config → config}/index.js +0 -0
- package/{bin/config → config}/index.js.map +0 -0
- package/{bin/config → config}/vars.d.ts +0 -0
- package/{bin/config → config}/vars.js +0 -0
- package/{bin/config → config}/vars.js.map +0 -0
- package/{bin/dashboard.d.ts → dashboard.d.ts} +0 -0
- package/{bin/dashboard.js → dashboard.js} +0 -0
- package/{bin/dashboard.js.map → dashboard.js.map} +0 -0
- package/{bin/environmentVariable.d.ts → environmentVariable.d.ts} +0 -0
- package/{bin/environmentVariable.js → environmentVariable.js} +0 -0
- package/{bin/environmentVariable.js.map → environmentVariable.js.map} +0 -0
- package/{bin/index.d.ts → index.d.ts} +0 -0
- package/{bin/index.js → index.js} +0 -0
- package/{bin/index.js.map → index.js.map} +0 -0
- package/{bin/maintenanceWindow.d.ts → maintenanceWindow.d.ts} +0 -0
- package/{bin/maintenanceWindow.js → maintenanceWindow.js} +0 -0
- package/{bin/maintenanceWindow.js.map → maintenanceWindow.js.map} +0 -0
- package/package.json +27 -29
- package/{bin/package.json.bak → package.json.bak} +1 -1
- package/{bin/provider.d.ts → provider.d.ts} +0 -0
- package/{bin/provider.js → provider.js} +0 -0
- package/{bin/provider.js.map → provider.js.map} +0 -0
- package/scripts/install-pulumi-plugin.js +1 -1
- package/{bin/snippet.d.ts → snippet.d.ts} +0 -0
- package/{bin/snippet.js → snippet.js} +0 -0
- package/{bin/snippet.js.map → snippet.js.map} +0 -0
- package/{bin/triggerCheck.d.ts → triggerCheck.d.ts} +0 -0
- package/{bin/triggerCheck.js → triggerCheck.js} +0 -0
- package/{bin/triggerCheck.js.map → triggerCheck.js.map} +0 -0
- package/{bin/triggerCheckGroup.d.ts → triggerCheckGroup.d.ts} +0 -0
- package/{bin/triggerCheckGroup.js → triggerCheckGroup.js} +0 -0
- package/{bin/triggerCheckGroup.js.map → triggerCheckGroup.js.map} +0 -0
- package/{bin/types → types}/index.d.ts +0 -0
- package/{bin/types → types}/index.js +0 -0
- package/{bin/types → types}/index.js.map +0 -0
- package/{bin/types → types}/input.d.ts +0 -0
- package/{bin/types → types}/input.js +0 -0
- package/{bin/types → types}/input.js.map +0 -0
- package/{bin/types → types}/output.d.ts +0 -0
- package/{bin/types → types}/output.js +0 -0
- package/{bin/types → types}/output.js.map +0 -0
- package/{bin/utilities.d.ts → utilities.d.ts} +0 -0
- package/{bin/utilities.js → utilities.js} +1 -1
- package/{bin/utilities.js.map → utilities.js.map} +1 -1
- package/Pulumi.yaml +0 -0
- package/alertChannel.ts +0 -236
- package/bin/README.md +0 -151
- package/bin/package.json +0 -29
- package/bin/yarn.lock +0 -805
- package/check.ts +0 -453
- package/checkGroup.ts +0 -382
- package/config/index.ts +0 -5
- package/config/vars.ts +0 -33
- package/dashboard.ts +0 -231
- package/environmentVariable.ts +0 -107
- package/index.ts +0 -86
- package/maintenanceWindow.ts +0 -188
- package/provider.ts +0 -62
- package/snippet.ts +0 -98
- package/triggerCheck.ts +0 -123
- package/triggerCheckGroup.ts +0 -123
- package/tsconfig.json +0 -34
- package/types/index.ts +0 -11
- package/types/input.ts +0 -166
- package/types/output.ts +0 -167
- package/utilities.ts +0 -54
package/environmentVariable.ts
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
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
|
-
// Export members:
|
|
8
|
-
export * from "./alertChannel";
|
|
9
|
-
export * from "./check";
|
|
10
|
-
export * from "./checkGroup";
|
|
11
|
-
export * from "./dashboard";
|
|
12
|
-
export * from "./environmentVariable";
|
|
13
|
-
export * from "./maintenanceWindow";
|
|
14
|
-
export * from "./provider";
|
|
15
|
-
export * from "./snippet";
|
|
16
|
-
export * from "./triggerCheck";
|
|
17
|
-
export * from "./triggerCheckGroup";
|
|
18
|
-
|
|
19
|
-
// Export sub-modules:
|
|
20
|
-
import * as config from "./config";
|
|
21
|
-
import * as types from "./types";
|
|
22
|
-
|
|
23
|
-
export {
|
|
24
|
-
config,
|
|
25
|
-
types,
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
// Import resources to register:
|
|
29
|
-
import { AlertChannel } from "./alertChannel";
|
|
30
|
-
import { Check } from "./check";
|
|
31
|
-
import { CheckGroup } from "./checkGroup";
|
|
32
|
-
import { Dashboard } from "./dashboard";
|
|
33
|
-
import { EnvironmentVariable } from "./environmentVariable";
|
|
34
|
-
import { MaintenanceWindow } from "./maintenanceWindow";
|
|
35
|
-
import { Snippet } from "./snippet";
|
|
36
|
-
import { TriggerCheck } from "./triggerCheck";
|
|
37
|
-
import { TriggerCheckGroup } from "./triggerCheckGroup";
|
|
38
|
-
|
|
39
|
-
const _module = {
|
|
40
|
-
version: utilities.getVersion(),
|
|
41
|
-
construct: (name: string, type: string, urn: string): pulumi.Resource => {
|
|
42
|
-
switch (type) {
|
|
43
|
-
case "checkly:index/alertChannel:AlertChannel":
|
|
44
|
-
return new AlertChannel(name, <any>undefined, { urn })
|
|
45
|
-
case "checkly:index/check:Check":
|
|
46
|
-
return new Check(name, <any>undefined, { urn })
|
|
47
|
-
case "checkly:index/checkGroup:CheckGroup":
|
|
48
|
-
return new CheckGroup(name, <any>undefined, { urn })
|
|
49
|
-
case "checkly:index/dashboard:Dashboard":
|
|
50
|
-
return new Dashboard(name, <any>undefined, { urn })
|
|
51
|
-
case "checkly:index/environmentVariable:EnvironmentVariable":
|
|
52
|
-
return new EnvironmentVariable(name, <any>undefined, { urn })
|
|
53
|
-
case "checkly:index/maintenanceWindow:MaintenanceWindow":
|
|
54
|
-
return new MaintenanceWindow(name, <any>undefined, { urn })
|
|
55
|
-
case "checkly:index/snippet:Snippet":
|
|
56
|
-
return new Snippet(name, <any>undefined, { urn })
|
|
57
|
-
case "checkly:index/triggerCheck:TriggerCheck":
|
|
58
|
-
return new TriggerCheck(name, <any>undefined, { urn })
|
|
59
|
-
case "checkly:index/triggerCheckGroup:TriggerCheckGroup":
|
|
60
|
-
return new TriggerCheckGroup(name, <any>undefined, { urn })
|
|
61
|
-
default:
|
|
62
|
-
throw new Error(`unknown resource type ${type}`);
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
};
|
|
66
|
-
pulumi.runtime.registerResourceModule("checkly", "index/alertChannel", _module)
|
|
67
|
-
pulumi.runtime.registerResourceModule("checkly", "index/check", _module)
|
|
68
|
-
pulumi.runtime.registerResourceModule("checkly", "index/checkGroup", _module)
|
|
69
|
-
pulumi.runtime.registerResourceModule("checkly", "index/dashboard", _module)
|
|
70
|
-
pulumi.runtime.registerResourceModule("checkly", "index/environmentVariable", _module)
|
|
71
|
-
pulumi.runtime.registerResourceModule("checkly", "index/maintenanceWindow", _module)
|
|
72
|
-
pulumi.runtime.registerResourceModule("checkly", "index/snippet", _module)
|
|
73
|
-
pulumi.runtime.registerResourceModule("checkly", "index/triggerCheck", _module)
|
|
74
|
-
pulumi.runtime.registerResourceModule("checkly", "index/triggerCheckGroup", _module)
|
|
75
|
-
|
|
76
|
-
import { Provider } from "./provider";
|
|
77
|
-
|
|
78
|
-
pulumi.runtime.registerResourcePackage("checkly", {
|
|
79
|
-
version: utilities.getVersion(),
|
|
80
|
-
constructProvider: (name: string, type: string, urn: string): pulumi.ProviderResource => {
|
|
81
|
-
if (type !== "pulumi:providers:checkly") {
|
|
82
|
-
throw new Error(`unknown provider type ${type}`);
|
|
83
|
-
}
|
|
84
|
-
return new Provider(name, <any>undefined, { urn });
|
|
85
|
-
},
|
|
86
|
-
});
|
package/maintenanceWindow.ts
DELETED
|
@@ -1,188 +0,0 @@
|
|
|
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
|
-
* const maintenance_1 = new checkly.MaintenanceWindow("maintenance-1", {
|
|
15
|
-
* endsAt: "2014-08-25T00:00:00.000Z",
|
|
16
|
-
* repeatEndsAt: "2014-08-24T00:00:00.000Z",
|
|
17
|
-
* repeatInterval: 1,
|
|
18
|
-
* repeatUnit: "MONTH",
|
|
19
|
-
* startsAt: "2014-08-24T00:00:00.000Z",
|
|
20
|
-
* tags: ["production"],
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export class MaintenanceWindow extends pulumi.CustomResource {
|
|
25
|
-
/**
|
|
26
|
-
* Get an existing MaintenanceWindow resource's state with the given name, ID, and optional extra
|
|
27
|
-
* properties used to qualify the lookup.
|
|
28
|
-
*
|
|
29
|
-
* @param name The _unique_ name of the resulting resource.
|
|
30
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
31
|
-
* @param state Any extra arguments used during the lookup.
|
|
32
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
33
|
-
*/
|
|
34
|
-
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MaintenanceWindowState, opts?: pulumi.CustomResourceOptions): MaintenanceWindow {
|
|
35
|
-
return new MaintenanceWindow(name, <any>state, { ...opts, id: id });
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/** @internal */
|
|
39
|
-
public static readonly __pulumiType = 'checkly:index/maintenanceWindow:MaintenanceWindow';
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Returns true if the given object is an instance of MaintenanceWindow. This is designed to work even
|
|
43
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
44
|
-
*/
|
|
45
|
-
public static isInstance(obj: any): obj is MaintenanceWindow {
|
|
46
|
-
if (obj === undefined || obj === null) {
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
49
|
-
return obj['__pulumiType'] === MaintenanceWindow.__pulumiType;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* The end date of the maintenance window.
|
|
54
|
-
*/
|
|
55
|
-
public readonly endsAt!: pulumi.Output<string>;
|
|
56
|
-
/**
|
|
57
|
-
* The maintenance window name.
|
|
58
|
-
*/
|
|
59
|
-
public readonly name!: pulumi.Output<string>;
|
|
60
|
-
/**
|
|
61
|
-
* The date on which the maintenance window should stop repeating.
|
|
62
|
-
*/
|
|
63
|
-
public readonly repeatEndsAt!: pulumi.Output<string | undefined>;
|
|
64
|
-
/**
|
|
65
|
-
* The repeat interval of the maintenance window from the first occurrence.
|
|
66
|
-
*/
|
|
67
|
-
public readonly repeatInterval!: pulumi.Output<number | undefined>;
|
|
68
|
-
/**
|
|
69
|
-
* The repeat cadence for the maintenance window. Possible values `DAY`, `WEEK` and `MONTH`.
|
|
70
|
-
*/
|
|
71
|
-
public readonly repeatUnit!: pulumi.Output<string | undefined>;
|
|
72
|
-
/**
|
|
73
|
-
* The start date of the maintenance window.
|
|
74
|
-
*/
|
|
75
|
-
public readonly startsAt!: pulumi.Output<string>;
|
|
76
|
-
/**
|
|
77
|
-
* The names of the checks and groups maintenance window should apply to.
|
|
78
|
-
*/
|
|
79
|
-
public readonly tags!: pulumi.Output<string[] | undefined>;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Create a MaintenanceWindow resource with the given unique name, arguments, and options.
|
|
83
|
-
*
|
|
84
|
-
* @param name The _unique_ name of the resource.
|
|
85
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
86
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
87
|
-
*/
|
|
88
|
-
constructor(name: string, args: MaintenanceWindowArgs, opts?: pulumi.CustomResourceOptions)
|
|
89
|
-
constructor(name: string, argsOrState?: MaintenanceWindowArgs | MaintenanceWindowState, opts?: pulumi.CustomResourceOptions) {
|
|
90
|
-
let resourceInputs: pulumi.Inputs = {};
|
|
91
|
-
opts = opts || {};
|
|
92
|
-
if (opts.id) {
|
|
93
|
-
const state = argsOrState as MaintenanceWindowState | undefined;
|
|
94
|
-
resourceInputs["endsAt"] = state ? state.endsAt : undefined;
|
|
95
|
-
resourceInputs["name"] = state ? state.name : undefined;
|
|
96
|
-
resourceInputs["repeatEndsAt"] = state ? state.repeatEndsAt : undefined;
|
|
97
|
-
resourceInputs["repeatInterval"] = state ? state.repeatInterval : undefined;
|
|
98
|
-
resourceInputs["repeatUnit"] = state ? state.repeatUnit : undefined;
|
|
99
|
-
resourceInputs["startsAt"] = state ? state.startsAt : undefined;
|
|
100
|
-
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
101
|
-
} else {
|
|
102
|
-
const args = argsOrState as MaintenanceWindowArgs | undefined;
|
|
103
|
-
if ((!args || args.endsAt === undefined) && !opts.urn) {
|
|
104
|
-
throw new Error("Missing required property 'endsAt'");
|
|
105
|
-
}
|
|
106
|
-
if ((!args || args.startsAt === undefined) && !opts.urn) {
|
|
107
|
-
throw new Error("Missing required property 'startsAt'");
|
|
108
|
-
}
|
|
109
|
-
resourceInputs["endsAt"] = args ? args.endsAt : undefined;
|
|
110
|
-
resourceInputs["name"] = args ? args.name : undefined;
|
|
111
|
-
resourceInputs["repeatEndsAt"] = args ? args.repeatEndsAt : undefined;
|
|
112
|
-
resourceInputs["repeatInterval"] = args ? args.repeatInterval : undefined;
|
|
113
|
-
resourceInputs["repeatUnit"] = args ? args.repeatUnit : undefined;
|
|
114
|
-
resourceInputs["startsAt"] = args ? args.startsAt : undefined;
|
|
115
|
-
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
116
|
-
}
|
|
117
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
118
|
-
super(MaintenanceWindow.__pulumiType, name, resourceInputs, opts);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Input properties used for looking up and filtering MaintenanceWindow resources.
|
|
124
|
-
*/
|
|
125
|
-
export interface MaintenanceWindowState {
|
|
126
|
-
/**
|
|
127
|
-
* The end date of the maintenance window.
|
|
128
|
-
*/
|
|
129
|
-
endsAt?: pulumi.Input<string>;
|
|
130
|
-
/**
|
|
131
|
-
* The maintenance window name.
|
|
132
|
-
*/
|
|
133
|
-
name?: pulumi.Input<string>;
|
|
134
|
-
/**
|
|
135
|
-
* The date on which the maintenance window should stop repeating.
|
|
136
|
-
*/
|
|
137
|
-
repeatEndsAt?: pulumi.Input<string>;
|
|
138
|
-
/**
|
|
139
|
-
* The repeat interval of the maintenance window from the first occurrence.
|
|
140
|
-
*/
|
|
141
|
-
repeatInterval?: pulumi.Input<number>;
|
|
142
|
-
/**
|
|
143
|
-
* The repeat cadence for the maintenance window. Possible values `DAY`, `WEEK` and `MONTH`.
|
|
144
|
-
*/
|
|
145
|
-
repeatUnit?: pulumi.Input<string>;
|
|
146
|
-
/**
|
|
147
|
-
* The start date of the maintenance window.
|
|
148
|
-
*/
|
|
149
|
-
startsAt?: pulumi.Input<string>;
|
|
150
|
-
/**
|
|
151
|
-
* The names of the checks and groups maintenance window should apply to.
|
|
152
|
-
*/
|
|
153
|
-
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* The set of arguments for constructing a MaintenanceWindow resource.
|
|
158
|
-
*/
|
|
159
|
-
export interface MaintenanceWindowArgs {
|
|
160
|
-
/**
|
|
161
|
-
* The end date of the maintenance window.
|
|
162
|
-
*/
|
|
163
|
-
endsAt: pulumi.Input<string>;
|
|
164
|
-
/**
|
|
165
|
-
* The maintenance window name.
|
|
166
|
-
*/
|
|
167
|
-
name?: pulumi.Input<string>;
|
|
168
|
-
/**
|
|
169
|
-
* The date on which the maintenance window should stop repeating.
|
|
170
|
-
*/
|
|
171
|
-
repeatEndsAt?: pulumi.Input<string>;
|
|
172
|
-
/**
|
|
173
|
-
* The repeat interval of the maintenance window from the first occurrence.
|
|
174
|
-
*/
|
|
175
|
-
repeatInterval?: pulumi.Input<number>;
|
|
176
|
-
/**
|
|
177
|
-
* The repeat cadence for the maintenance window. Possible values `DAY`, `WEEK` and `MONTH`.
|
|
178
|
-
*/
|
|
179
|
-
repeatUnit?: pulumi.Input<string>;
|
|
180
|
-
/**
|
|
181
|
-
* The start date of the maintenance window.
|
|
182
|
-
*/
|
|
183
|
-
startsAt: pulumi.Input<string>;
|
|
184
|
-
/**
|
|
185
|
-
* The names of the checks and groups maintenance window should apply to.
|
|
186
|
-
*/
|
|
187
|
-
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
188
|
-
}
|
package/provider.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
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
|
-
* The provider type for the checkly package. By default, resources use package-wide configuration
|
|
9
|
-
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
10
|
-
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
11
|
-
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
12
|
-
*/
|
|
13
|
-
export class Provider extends pulumi.ProviderResource {
|
|
14
|
-
/** @internal */
|
|
15
|
-
public static readonly __pulumiType = 'checkly';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
19
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
20
|
-
*/
|
|
21
|
-
public static isInstance(obj: any): obj is Provider {
|
|
22
|
-
if (obj === undefined || obj === null) {
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
return obj['__pulumiType'] === Provider.__pulumiType;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
public readonly accountId!: pulumi.Output<string | undefined>;
|
|
29
|
-
public readonly apiKey!: pulumi.Output<string>;
|
|
30
|
-
public readonly apiUrl!: pulumi.Output<string | undefined>;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Create a Provider resource with the given unique name, arguments, and options.
|
|
34
|
-
*
|
|
35
|
-
* @param name The _unique_ name of the resource.
|
|
36
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
37
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
38
|
-
*/
|
|
39
|
-
constructor(name: string, args: ProviderArgs, opts?: pulumi.ResourceOptions) {
|
|
40
|
-
let resourceInputs: pulumi.Inputs = {};
|
|
41
|
-
opts = opts || {};
|
|
42
|
-
{
|
|
43
|
-
if ((!args || args.apiKey === undefined) && !opts.urn) {
|
|
44
|
-
throw new Error("Missing required property 'apiKey'");
|
|
45
|
-
}
|
|
46
|
-
resourceInputs["accountId"] = args ? args.accountId : undefined;
|
|
47
|
-
resourceInputs["apiKey"] = args ? args.apiKey : undefined;
|
|
48
|
-
resourceInputs["apiUrl"] = args ? args.apiUrl : undefined;
|
|
49
|
-
}
|
|
50
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
51
|
-
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* The set of arguments for constructing a Provider resource.
|
|
57
|
-
*/
|
|
58
|
-
export interface ProviderArgs {
|
|
59
|
-
accountId?: pulumi.Input<string>;
|
|
60
|
-
apiKey: pulumi.Input<string>;
|
|
61
|
-
apiUrl?: pulumi.Input<string>;
|
|
62
|
-
}
|
package/snippet.ts
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
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
|
-
export class Snippet extends pulumi.CustomResource {
|
|
8
|
-
/**
|
|
9
|
-
* Get an existing Snippet resource's state with the given name, ID, and optional extra
|
|
10
|
-
* properties used to qualify the lookup.
|
|
11
|
-
*
|
|
12
|
-
* @param name The _unique_ name of the resulting resource.
|
|
13
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
14
|
-
* @param state Any extra arguments used during the lookup.
|
|
15
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
-
*/
|
|
17
|
-
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SnippetState, opts?: pulumi.CustomResourceOptions): Snippet {
|
|
18
|
-
return new Snippet(name, <any>state, { ...opts, id: id });
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/** @internal */
|
|
22
|
-
public static readonly __pulumiType = 'checkly:index/snippet:Snippet';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Returns true if the given object is an instance of Snippet. This is designed to work even
|
|
26
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
-
*/
|
|
28
|
-
public static isInstance(obj: any): obj is Snippet {
|
|
29
|
-
if (obj === undefined || obj === null) {
|
|
30
|
-
return false;
|
|
31
|
-
}
|
|
32
|
-
return obj['__pulumiType'] === Snippet.__pulumiType;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* The name of the snippet
|
|
37
|
-
*/
|
|
38
|
-
public readonly name!: pulumi.Output<string>;
|
|
39
|
-
/**
|
|
40
|
-
* Your Node.js code that interacts with the API check lifecycle, or functions as a partial for browser checks.
|
|
41
|
-
*/
|
|
42
|
-
public readonly script!: pulumi.Output<string>;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Create a Snippet resource with the given unique name, arguments, and options.
|
|
46
|
-
*
|
|
47
|
-
* @param name The _unique_ name of the resource.
|
|
48
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
49
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
50
|
-
*/
|
|
51
|
-
constructor(name: string, args: SnippetArgs, opts?: pulumi.CustomResourceOptions)
|
|
52
|
-
constructor(name: string, argsOrState?: SnippetArgs | SnippetState, opts?: pulumi.CustomResourceOptions) {
|
|
53
|
-
let resourceInputs: pulumi.Inputs = {};
|
|
54
|
-
opts = opts || {};
|
|
55
|
-
if (opts.id) {
|
|
56
|
-
const state = argsOrState as SnippetState | undefined;
|
|
57
|
-
resourceInputs["name"] = state ? state.name : undefined;
|
|
58
|
-
resourceInputs["script"] = state ? state.script : undefined;
|
|
59
|
-
} else {
|
|
60
|
-
const args = argsOrState as SnippetArgs | undefined;
|
|
61
|
-
if ((!args || args.script === undefined) && !opts.urn) {
|
|
62
|
-
throw new Error("Missing required property 'script'");
|
|
63
|
-
}
|
|
64
|
-
resourceInputs["name"] = args ? args.name : undefined;
|
|
65
|
-
resourceInputs["script"] = args ? args.script : undefined;
|
|
66
|
-
}
|
|
67
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
68
|
-
super(Snippet.__pulumiType, name, resourceInputs, opts);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Input properties used for looking up and filtering Snippet resources.
|
|
74
|
-
*/
|
|
75
|
-
export interface SnippetState {
|
|
76
|
-
/**
|
|
77
|
-
* The name of the snippet
|
|
78
|
-
*/
|
|
79
|
-
name?: pulumi.Input<string>;
|
|
80
|
-
/**
|
|
81
|
-
* Your Node.js code that interacts with the API check lifecycle, or functions as a partial for browser checks.
|
|
82
|
-
*/
|
|
83
|
-
script?: pulumi.Input<string>;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* The set of arguments for constructing a Snippet resource.
|
|
88
|
-
*/
|
|
89
|
-
export interface SnippetArgs {
|
|
90
|
-
/**
|
|
91
|
-
* The name of the snippet
|
|
92
|
-
*/
|
|
93
|
-
name?: pulumi.Input<string>;
|
|
94
|
-
/**
|
|
95
|
-
* Your Node.js code that interacts with the API check lifecycle, or functions as a partial for browser checks.
|
|
96
|
-
*/
|
|
97
|
-
script: pulumi.Input<string>;
|
|
98
|
-
}
|
package/triggerCheck.ts
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
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 pulumi from "@checkly/pulumi";
|
|
13
|
-
*
|
|
14
|
-
* const test_trigger_check = new checkly.TriggerCheck("test-trigger-check", {checkId: "c1ff95c5-d7f6-4a90-9ce2-1e605f117592"});
|
|
15
|
-
* export const test_trigger_check_url = test_trigger_check.url;
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
export class TriggerCheck extends pulumi.CustomResource {
|
|
19
|
-
/**
|
|
20
|
-
* Get an existing TriggerCheck resource's state with the given name, ID, and optional extra
|
|
21
|
-
* properties used to qualify the lookup.
|
|
22
|
-
*
|
|
23
|
-
* @param name The _unique_ name of the resulting resource.
|
|
24
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
25
|
-
* @param state Any extra arguments used during the lookup.
|
|
26
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
27
|
-
*/
|
|
28
|
-
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TriggerCheckState, opts?: pulumi.CustomResourceOptions): TriggerCheck {
|
|
29
|
-
return new TriggerCheck(name, <any>state, { ...opts, id: id });
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/** @internal */
|
|
33
|
-
public static readonly __pulumiType = 'checkly:index/triggerCheck:TriggerCheck';
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Returns true if the given object is an instance of TriggerCheck. This is designed to work even
|
|
37
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
38
|
-
*/
|
|
39
|
-
public static isInstance(obj: any): obj is TriggerCheck {
|
|
40
|
-
if (obj === undefined || obj === null) {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
return obj['__pulumiType'] === TriggerCheck.__pulumiType;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* The id of the check that you want to attach the trigger to.
|
|
48
|
-
*/
|
|
49
|
-
public readonly checkId!: pulumi.Output<string>;
|
|
50
|
-
/**
|
|
51
|
-
* The token value created to trigger the check
|
|
52
|
-
*/
|
|
53
|
-
public readonly token!: pulumi.Output<string>;
|
|
54
|
-
/**
|
|
55
|
-
* The request URL to trigger the check run.
|
|
56
|
-
*/
|
|
57
|
-
public readonly url!: pulumi.Output<string>;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Create a TriggerCheck resource with the given unique name, arguments, and options.
|
|
61
|
-
*
|
|
62
|
-
* @param name The _unique_ name of the resource.
|
|
63
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
64
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
65
|
-
*/
|
|
66
|
-
constructor(name: string, args: TriggerCheckArgs, opts?: pulumi.CustomResourceOptions)
|
|
67
|
-
constructor(name: string, argsOrState?: TriggerCheckArgs | TriggerCheckState, opts?: pulumi.CustomResourceOptions) {
|
|
68
|
-
let resourceInputs: pulumi.Inputs = {};
|
|
69
|
-
opts = opts || {};
|
|
70
|
-
if (opts.id) {
|
|
71
|
-
const state = argsOrState as TriggerCheckState | undefined;
|
|
72
|
-
resourceInputs["checkId"] = state ? state.checkId : undefined;
|
|
73
|
-
resourceInputs["token"] = state ? state.token : undefined;
|
|
74
|
-
resourceInputs["url"] = state ? state.url : undefined;
|
|
75
|
-
} else {
|
|
76
|
-
const args = argsOrState as TriggerCheckArgs | undefined;
|
|
77
|
-
if ((!args || args.checkId === undefined) && !opts.urn) {
|
|
78
|
-
throw new Error("Missing required property 'checkId'");
|
|
79
|
-
}
|
|
80
|
-
resourceInputs["checkId"] = args ? args.checkId : undefined;
|
|
81
|
-
resourceInputs["token"] = args ? args.token : undefined;
|
|
82
|
-
resourceInputs["url"] = args ? args.url : undefined;
|
|
83
|
-
}
|
|
84
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
85
|
-
super(TriggerCheck.__pulumiType, name, resourceInputs, opts);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Input properties used for looking up and filtering TriggerCheck resources.
|
|
91
|
-
*/
|
|
92
|
-
export interface TriggerCheckState {
|
|
93
|
-
/**
|
|
94
|
-
* The id of the check that you want to attach the trigger to.
|
|
95
|
-
*/
|
|
96
|
-
checkId?: pulumi.Input<string>;
|
|
97
|
-
/**
|
|
98
|
-
* The token value created to trigger the check
|
|
99
|
-
*/
|
|
100
|
-
token?: pulumi.Input<string>;
|
|
101
|
-
/**
|
|
102
|
-
* The request URL to trigger the check run.
|
|
103
|
-
*/
|
|
104
|
-
url?: pulumi.Input<string>;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* The set of arguments for constructing a TriggerCheck resource.
|
|
109
|
-
*/
|
|
110
|
-
export interface TriggerCheckArgs {
|
|
111
|
-
/**
|
|
112
|
-
* The id of the check that you want to attach the trigger to.
|
|
113
|
-
*/
|
|
114
|
-
checkId: pulumi.Input<string>;
|
|
115
|
-
/**
|
|
116
|
-
* The token value created to trigger the check
|
|
117
|
-
*/
|
|
118
|
-
token?: pulumi.Input<string>;
|
|
119
|
-
/**
|
|
120
|
-
* The request URL to trigger the check run.
|
|
121
|
-
*/
|
|
122
|
-
url?: pulumi.Input<string>;
|
|
123
|
-
}
|