@checkly/pulumi 0.0.1-alpha.0
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/Pulumi.yaml +0 -0
- package/README.md +4 -0
- package/alertChannel.ts +321 -0
- package/bin/LICENSE +21 -0
- package/bin/README.md +90 -0
- package/bin/alertChannel.d.ts +266 -0
- package/bin/alertChannel.js +204 -0
- package/bin/alertChannel.js.map +1 -0
- package/bin/check.d.ts +328 -0
- package/bin/check.js +110 -0
- package/bin/check.js.map +1 -0
- package/bin/checkGroup.d.ts +238 -0
- package/bin/checkGroup.js +93 -0
- package/bin/checkGroup.js.map +1 -0
- package/bin/config/index.d.ts +1 -0
- package/bin/config/index.js +21 -0
- package/bin/config/index.js.map +1 -0
- package/bin/config/vars.d.ts +3 -0
- package/bin/config/vars.js +25 -0
- package/bin/config/vars.js.map +1 -0
- package/bin/dashboard.d.ts +66 -0
- package/bin/dashboard.js +93 -0
- package/bin/dashboard.js.map +1 -0
- package/bin/index.d.ts +12 -0
- package/bin/index.js +89 -0
- package/bin/index.js.map +1 -0
- package/bin/maintenanceWindow.d.ts +157 -0
- package/bin/maintenanceWindow.js +115 -0
- package/bin/maintenanceWindow.js.map +1 -0
- package/bin/package.json +28 -0
- package/bin/package.json.bak +28 -0
- package/bin/provider.d.ts +33 -0
- package/bin/provider.js +52 -0
- package/bin/provider.js.map +1 -0
- package/bin/snippet.d.ts +60 -0
- package/bin/snippet.js +56 -0
- package/bin/snippet.js.map +1 -0
- package/bin/triggerCheck.d.ts +71 -0
- package/bin/triggerCheck.js +75 -0
- package/bin/triggerCheck.js.map +1 -0
- package/bin/triggerCheckGroup.d.ts +71 -0
- package/bin/triggerCheckGroup.js +75 -0
- package/bin/triggerCheckGroup.js.map +1 -0
- package/bin/types/index.d.ts +3 -0
- package/bin/types/index.js +11 -0
- package/bin/types/index.js.map +1 -0
- package/bin/types/input.d.ts +330 -0
- package/bin/types/input.js +14 -0
- package/bin/types/input.js.map +1 -0
- package/bin/types/output.d.ts +329 -0
- package/bin/types/output.js +14 -0
- package/bin/types/output.js.map +1 -0
- package/bin/utilities.d.ts +4 -0
- package/bin/utilities.js +52 -0
- package/bin/utilities.js.map +1 -0
- package/bin/yarn.lock +743 -0
- package/check.ts +416 -0
- package/checkGroup.ts +308 -0
- package/config/index.ts +5 -0
- package/config/vars.ts +33 -0
- package/dashboard.ts +143 -0
- package/index.ts +81 -0
- package/maintenanceWindow.ts +219 -0
- package/package.json +28 -0
- package/provider.ts +64 -0
- package/snippet.ts +100 -0
- package/triggerCheck.ts +113 -0
- package/triggerCheckGroup.ts +113 -0
- package/tsconfig.json +33 -0
- package/types/index.ts +11 -0
- package/types/input.ts +352 -0
- package/types/output.ts +353 -0
- package/utilities.ts +49 -0
package/bin/index.js
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.types = exports.config = void 0;
|
|
20
|
+
const pulumi = require("@pulumi/pulumi");
|
|
21
|
+
const utilities = require("./utilities");
|
|
22
|
+
// Export members:
|
|
23
|
+
__exportStar(require("./alertChannel"), exports);
|
|
24
|
+
__exportStar(require("./check"), exports);
|
|
25
|
+
__exportStar(require("./checkGroup"), exports);
|
|
26
|
+
__exportStar(require("./dashboard"), exports);
|
|
27
|
+
__exportStar(require("./maintenanceWindow"), exports);
|
|
28
|
+
__exportStar(require("./provider"), exports);
|
|
29
|
+
__exportStar(require("./snippet"), exports);
|
|
30
|
+
__exportStar(require("./triggerCheck"), exports);
|
|
31
|
+
__exportStar(require("./triggerCheckGroup"), exports);
|
|
32
|
+
// Export sub-modules:
|
|
33
|
+
const config = require("./config");
|
|
34
|
+
exports.config = config;
|
|
35
|
+
const types = require("./types");
|
|
36
|
+
exports.types = types;
|
|
37
|
+
// Import resources to register:
|
|
38
|
+
const alertChannel_1 = require("./alertChannel");
|
|
39
|
+
const check_1 = require("./check");
|
|
40
|
+
const checkGroup_1 = require("./checkGroup");
|
|
41
|
+
const dashboard_1 = require("./dashboard");
|
|
42
|
+
const maintenanceWindow_1 = require("./maintenanceWindow");
|
|
43
|
+
const snippet_1 = require("./snippet");
|
|
44
|
+
const triggerCheck_1 = require("./triggerCheck");
|
|
45
|
+
const triggerCheckGroup_1 = require("./triggerCheckGroup");
|
|
46
|
+
const _module = {
|
|
47
|
+
version: utilities.getVersion(),
|
|
48
|
+
construct: (name, type, urn) => {
|
|
49
|
+
switch (type) {
|
|
50
|
+
case "checkly:index/alertChannel:AlertChannel":
|
|
51
|
+
return new alertChannel_1.AlertChannel(name, undefined, { urn });
|
|
52
|
+
case "checkly:index/check:Check":
|
|
53
|
+
return new check_1.Check(name, undefined, { urn });
|
|
54
|
+
case "checkly:index/checkGroup:CheckGroup":
|
|
55
|
+
return new checkGroup_1.CheckGroup(name, undefined, { urn });
|
|
56
|
+
case "checkly:index/dashboard:Dashboard":
|
|
57
|
+
return new dashboard_1.Dashboard(name, undefined, { urn });
|
|
58
|
+
case "checkly:index/maintenanceWindow:MaintenanceWindow":
|
|
59
|
+
return new maintenanceWindow_1.MaintenanceWindow(name, undefined, { urn });
|
|
60
|
+
case "checkly:index/snippet:Snippet":
|
|
61
|
+
return new snippet_1.Snippet(name, undefined, { urn });
|
|
62
|
+
case "checkly:index/triggerCheck:TriggerCheck":
|
|
63
|
+
return new triggerCheck_1.TriggerCheck(name, undefined, { urn });
|
|
64
|
+
case "checkly:index/triggerCheckGroup:TriggerCheckGroup":
|
|
65
|
+
return new triggerCheckGroup_1.TriggerCheckGroup(name, undefined, { urn });
|
|
66
|
+
default:
|
|
67
|
+
throw new Error(`unknown resource type ${type}`);
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
pulumi.runtime.registerResourceModule("checkly", "index/alertChannel", _module);
|
|
72
|
+
pulumi.runtime.registerResourceModule("checkly", "index/check", _module);
|
|
73
|
+
pulumi.runtime.registerResourceModule("checkly", "index/checkGroup", _module);
|
|
74
|
+
pulumi.runtime.registerResourceModule("checkly", "index/dashboard", _module);
|
|
75
|
+
pulumi.runtime.registerResourceModule("checkly", "index/maintenanceWindow", _module);
|
|
76
|
+
pulumi.runtime.registerResourceModule("checkly", "index/snippet", _module);
|
|
77
|
+
pulumi.runtime.registerResourceModule("checkly", "index/triggerCheck", _module);
|
|
78
|
+
pulumi.runtime.registerResourceModule("checkly", "index/triggerCheckGroup", _module);
|
|
79
|
+
const provider_1 = require("./provider");
|
|
80
|
+
pulumi.runtime.registerResourcePackage("checkly", {
|
|
81
|
+
version: utilities.getVersion(),
|
|
82
|
+
constructProvider: (name, type, urn) => {
|
|
83
|
+
if (type !== "pulumi:providers:checkly") {
|
|
84
|
+
throw new Error(`unknown provider type ${type}`);
|
|
85
|
+
}
|
|
86
|
+
return new provider_1.Provider(name, undefined, { urn });
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
//# sourceMappingURL=index.js.map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OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,0BAA0B,EAAE;YACrC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## # checkly.MaintenanceWindow
|
|
4
|
+
*
|
|
5
|
+
* `checkly.MaintenanceWindow` allows users to manage Checkly maintenance windows. Add a `checkly.MaintenanceWindow` resource to your resource file.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* Minimal maintenance windows example
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as checkly from "@pulumi/checkly";
|
|
14
|
+
*
|
|
15
|
+
* const maintenance_1 = new checkly.MaintenanceWindow("maintenance-1", {
|
|
16
|
+
* endsAt: "2014-08-25T00:00:00.000Z",
|
|
17
|
+
* repeatUnit: "MONTH",
|
|
18
|
+
* startsAt: "2014-08-24T00:00:00.000Z",
|
|
19
|
+
* tags: ["auto"],
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* Full maintenance windows example (includes optional fields)
|
|
24
|
+
*
|
|
25
|
+
* ```typescript
|
|
26
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
27
|
+
* import * as checkly from "@pulumi/checkly";
|
|
28
|
+
*
|
|
29
|
+
* const maintenance_1 = new checkly.MaintenanceWindow("maintenance-1", {
|
|
30
|
+
* endsAt: "2014-08-25T00:00:00.000Z",
|
|
31
|
+
* repeatEndsAt: "2014-08-24T00:00:00.000Z",
|
|
32
|
+
* repeatInterval: 1,
|
|
33
|
+
* repeatUnit: "MONTH",
|
|
34
|
+
* startsAt: "2014-08-24T00:00:00.000Z",
|
|
35
|
+
* tags: ["auto"],
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare class MaintenanceWindow extends pulumi.CustomResource {
|
|
40
|
+
/**
|
|
41
|
+
* Get an existing MaintenanceWindow resource's state with the given name, ID, and optional extra
|
|
42
|
+
* properties used to qualify the lookup.
|
|
43
|
+
*
|
|
44
|
+
* @param name The _unique_ name of the resulting resource.
|
|
45
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
46
|
+
* @param state Any extra arguments used during the lookup.
|
|
47
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
48
|
+
*/
|
|
49
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MaintenanceWindowState, opts?: pulumi.CustomResourceOptions): MaintenanceWindow;
|
|
50
|
+
/**
|
|
51
|
+
* Returns true if the given object is an instance of MaintenanceWindow. This is designed to work even
|
|
52
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
53
|
+
*/
|
|
54
|
+
static isInstance(obj: any): obj is MaintenanceWindow;
|
|
55
|
+
/**
|
|
56
|
+
* The end date of the maintenance window.
|
|
57
|
+
*/
|
|
58
|
+
readonly endsAt: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* The maintenance window name.
|
|
61
|
+
*/
|
|
62
|
+
readonly name: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The end date where the maintenance window should stop repeating.
|
|
65
|
+
*/
|
|
66
|
+
readonly repeatEndsAt: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* The repeat interval of the maintenance window from the first occurance.
|
|
69
|
+
*/
|
|
70
|
+
readonly repeatInterval: pulumi.Output<number>;
|
|
71
|
+
/**
|
|
72
|
+
* The repeat strategy for the maintenance window. Possible values `DAY`, `WEEK` and `MONTH`.
|
|
73
|
+
*/
|
|
74
|
+
readonly repeatUnit: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* The start date of the maintenance window.
|
|
77
|
+
*/
|
|
78
|
+
readonly startsAt: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* The names of the checks and groups maintenance window should apply to.
|
|
81
|
+
*/
|
|
82
|
+
readonly tags: pulumi.Output<string[] | undefined>;
|
|
83
|
+
/**
|
|
84
|
+
* Create a MaintenanceWindow resource with the given unique name, arguments, and options.
|
|
85
|
+
*
|
|
86
|
+
* @param name The _unique_ name of the resource.
|
|
87
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
88
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
89
|
+
*/
|
|
90
|
+
constructor(name: string, args: MaintenanceWindowArgs, opts?: pulumi.CustomResourceOptions);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Input properties used for looking up and filtering MaintenanceWindow resources.
|
|
94
|
+
*/
|
|
95
|
+
export interface MaintenanceWindowState {
|
|
96
|
+
/**
|
|
97
|
+
* The end date of the maintenance window.
|
|
98
|
+
*/
|
|
99
|
+
endsAt?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* The maintenance window name.
|
|
102
|
+
*/
|
|
103
|
+
name?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* The end date where the maintenance window should stop repeating.
|
|
106
|
+
*/
|
|
107
|
+
repeatEndsAt?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* The repeat interval of the maintenance window from the first occurance.
|
|
110
|
+
*/
|
|
111
|
+
repeatInterval?: pulumi.Input<number>;
|
|
112
|
+
/**
|
|
113
|
+
* The repeat strategy for the maintenance window. Possible values `DAY`, `WEEK` and `MONTH`.
|
|
114
|
+
*/
|
|
115
|
+
repeatUnit?: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* The start date of the maintenance window.
|
|
118
|
+
*/
|
|
119
|
+
startsAt?: pulumi.Input<string>;
|
|
120
|
+
/**
|
|
121
|
+
* The names of the checks and groups maintenance window should apply to.
|
|
122
|
+
*/
|
|
123
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The set of arguments for constructing a MaintenanceWindow resource.
|
|
127
|
+
*/
|
|
128
|
+
export interface MaintenanceWindowArgs {
|
|
129
|
+
/**
|
|
130
|
+
* The end date of the maintenance window.
|
|
131
|
+
*/
|
|
132
|
+
endsAt: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* The maintenance window name.
|
|
135
|
+
*/
|
|
136
|
+
name?: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* The end date where the maintenance window should stop repeating.
|
|
139
|
+
*/
|
|
140
|
+
repeatEndsAt: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* The repeat interval of the maintenance window from the first occurance.
|
|
143
|
+
*/
|
|
144
|
+
repeatInterval: pulumi.Input<number>;
|
|
145
|
+
/**
|
|
146
|
+
* The repeat strategy for the maintenance window. Possible values `DAY`, `WEEK` and `MONTH`.
|
|
147
|
+
*/
|
|
148
|
+
repeatUnit: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* The start date of the maintenance window.
|
|
151
|
+
*/
|
|
152
|
+
startsAt: pulumi.Input<string>;
|
|
153
|
+
/**
|
|
154
|
+
* The names of the checks and groups maintenance window should apply to.
|
|
155
|
+
*/
|
|
156
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
157
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.MaintenanceWindow = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## # checkly.MaintenanceWindow
|
|
10
|
+
*
|
|
11
|
+
* `checkly.MaintenanceWindow` allows users to manage Checkly maintenance windows. Add a `checkly.MaintenanceWindow` resource to your resource file.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* Minimal maintenance windows example
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as checkly from "@pulumi/checkly";
|
|
20
|
+
*
|
|
21
|
+
* const maintenance_1 = new checkly.MaintenanceWindow("maintenance-1", {
|
|
22
|
+
* endsAt: "2014-08-25T00:00:00.000Z",
|
|
23
|
+
* repeatUnit: "MONTH",
|
|
24
|
+
* startsAt: "2014-08-24T00:00:00.000Z",
|
|
25
|
+
* tags: ["auto"],
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* Full maintenance windows example (includes optional fields)
|
|
30
|
+
*
|
|
31
|
+
* ```typescript
|
|
32
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
33
|
+
* import * as checkly from "@pulumi/checkly";
|
|
34
|
+
*
|
|
35
|
+
* const maintenance_1 = new checkly.MaintenanceWindow("maintenance-1", {
|
|
36
|
+
* endsAt: "2014-08-25T00:00:00.000Z",
|
|
37
|
+
* repeatEndsAt: "2014-08-24T00:00:00.000Z",
|
|
38
|
+
* repeatInterval: 1,
|
|
39
|
+
* repeatUnit: "MONTH",
|
|
40
|
+
* startsAt: "2014-08-24T00:00:00.000Z",
|
|
41
|
+
* tags: ["auto"],
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
class MaintenanceWindow extends pulumi.CustomResource {
|
|
46
|
+
constructor(name, argsOrState, opts) {
|
|
47
|
+
let resourceInputs = {};
|
|
48
|
+
opts = opts || {};
|
|
49
|
+
if (opts.id) {
|
|
50
|
+
const state = argsOrState;
|
|
51
|
+
resourceInputs["endsAt"] = state ? state.endsAt : undefined;
|
|
52
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
53
|
+
resourceInputs["repeatEndsAt"] = state ? state.repeatEndsAt : undefined;
|
|
54
|
+
resourceInputs["repeatInterval"] = state ? state.repeatInterval : undefined;
|
|
55
|
+
resourceInputs["repeatUnit"] = state ? state.repeatUnit : undefined;
|
|
56
|
+
resourceInputs["startsAt"] = state ? state.startsAt : undefined;
|
|
57
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
const args = argsOrState;
|
|
61
|
+
if ((!args || args.endsAt === undefined) && !opts.urn) {
|
|
62
|
+
throw new Error("Missing required property 'endsAt'");
|
|
63
|
+
}
|
|
64
|
+
if ((!args || args.repeatEndsAt === undefined) && !opts.urn) {
|
|
65
|
+
throw new Error("Missing required property 'repeatEndsAt'");
|
|
66
|
+
}
|
|
67
|
+
if ((!args || args.repeatInterval === undefined) && !opts.urn) {
|
|
68
|
+
throw new Error("Missing required property 'repeatInterval'");
|
|
69
|
+
}
|
|
70
|
+
if ((!args || args.repeatUnit === undefined) && !opts.urn) {
|
|
71
|
+
throw new Error("Missing required property 'repeatUnit'");
|
|
72
|
+
}
|
|
73
|
+
if ((!args || args.startsAt === undefined) && !opts.urn) {
|
|
74
|
+
throw new Error("Missing required property 'startsAt'");
|
|
75
|
+
}
|
|
76
|
+
resourceInputs["endsAt"] = args ? args.endsAt : undefined;
|
|
77
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
78
|
+
resourceInputs["repeatEndsAt"] = args ? args.repeatEndsAt : undefined;
|
|
79
|
+
resourceInputs["repeatInterval"] = args ? args.repeatInterval : undefined;
|
|
80
|
+
resourceInputs["repeatUnit"] = args ? args.repeatUnit : undefined;
|
|
81
|
+
resourceInputs["startsAt"] = args ? args.startsAt : undefined;
|
|
82
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
83
|
+
}
|
|
84
|
+
if (!opts.version) {
|
|
85
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
86
|
+
}
|
|
87
|
+
super(MaintenanceWindow.__pulumiType, name, resourceInputs, opts);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Get an existing MaintenanceWindow resource's state with the given name, ID, and optional extra
|
|
91
|
+
* properties used to qualify the lookup.
|
|
92
|
+
*
|
|
93
|
+
* @param name The _unique_ name of the resulting resource.
|
|
94
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
95
|
+
* @param state Any extra arguments used during the lookup.
|
|
96
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
97
|
+
*/
|
|
98
|
+
static get(name, id, state, opts) {
|
|
99
|
+
return new MaintenanceWindow(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Returns true if the given object is an instance of MaintenanceWindow. This is designed to work even
|
|
103
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
104
|
+
*/
|
|
105
|
+
static isInstance(obj) {
|
|
106
|
+
if (obj === undefined || obj === null) {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
return obj['__pulumiType'] === MaintenanceWindow.__pulumiType;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
exports.MaintenanceWindow = MaintenanceWindow;
|
|
113
|
+
/** @internal */
|
|
114
|
+
MaintenanceWindow.__pulumiType = 'checkly:index/maintenanceWindow:MaintenanceWindow';
|
|
115
|
+
//# sourceMappingURL=maintenanceWindow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maintenanceWindow.js","sourceRoot":"","sources":["../maintenanceWindow.ts"],"names":[],"mappings":";AAAA,wFAAwF;A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,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;IAzGD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;;AA1BL,8CA2GC;AA7FG,gBAAgB;AACO,8BAAY,GAAG,mDAAmD,CAAC"}
|
package/bin/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@checkly/pulumi",
|
|
3
|
+
"version": "v0.0.1-alpha.1646879738+4de9d8f8.dirty",
|
|
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
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/mime": "^2.0.0",
|
|
21
|
+
"@types/node": "^10.0.0",
|
|
22
|
+
"typescript": "^4.3.5"
|
|
23
|
+
},
|
|
24
|
+
"pulumi": {
|
|
25
|
+
"resource": true,
|
|
26
|
+
"pluginDownloadURL": "https://github.com/checkly/pulumi-checkly/releases/v0.0.1-alpha.1646879738+4de9d8f8.dirty"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@checkly/pulumi",
|
|
3
|
+
"version": "${VERSION}",
|
|
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
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/mime": "^2.0.0",
|
|
21
|
+
"@types/node": "^10.0.0",
|
|
22
|
+
"typescript": "^4.3.5"
|
|
23
|
+
},
|
|
24
|
+
"pulumi": {
|
|
25
|
+
"resource": true,
|
|
26
|
+
"pluginDownloadURL": "https://github.com/checkly/pulumi-checkly/releases/${VERSION}"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The provider type for the checkly package. By default, resources use package-wide configuration
|
|
4
|
+
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
5
|
+
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
6
|
+
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Provider extends pulumi.ProviderResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
11
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
12
|
+
*/
|
|
13
|
+
static isInstance(obj: any): obj is Provider;
|
|
14
|
+
readonly accountId: pulumi.Output<string | undefined>;
|
|
15
|
+
readonly apiKey: pulumi.Output<string>;
|
|
16
|
+
readonly apiUrl: pulumi.Output<string | undefined>;
|
|
17
|
+
/**
|
|
18
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
19
|
+
*
|
|
20
|
+
* @param name The _unique_ name of the resource.
|
|
21
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
22
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
23
|
+
*/
|
|
24
|
+
constructor(name: string, args: ProviderArgs, opts?: pulumi.ResourceOptions);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The set of arguments for constructing a Provider resource.
|
|
28
|
+
*/
|
|
29
|
+
export interface ProviderArgs {
|
|
30
|
+
accountId?: pulumi.Input<string>;
|
|
31
|
+
apiKey: pulumi.Input<string>;
|
|
32
|
+
apiUrl?: pulumi.Input<string>;
|
|
33
|
+
}
|
package/bin/provider.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Provider = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The provider type for the checkly package. By default, resources use package-wide configuration
|
|
10
|
+
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
11
|
+
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
12
|
+
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
13
|
+
*/
|
|
14
|
+
class Provider extends pulumi.ProviderResource {
|
|
15
|
+
/**
|
|
16
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
17
|
+
*
|
|
18
|
+
* @param name The _unique_ name of the resource.
|
|
19
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
20
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
21
|
+
*/
|
|
22
|
+
constructor(name, args, opts) {
|
|
23
|
+
let resourceInputs = {};
|
|
24
|
+
opts = opts || {};
|
|
25
|
+
{
|
|
26
|
+
if ((!args || args.apiKey === undefined) && !opts.urn) {
|
|
27
|
+
throw new Error("Missing required property 'apiKey'");
|
|
28
|
+
}
|
|
29
|
+
resourceInputs["accountId"] = args ? args.accountId : undefined;
|
|
30
|
+
resourceInputs["apiKey"] = args ? args.apiKey : undefined;
|
|
31
|
+
resourceInputs["apiUrl"] = args ? args.apiUrl : undefined;
|
|
32
|
+
}
|
|
33
|
+
if (!opts.version) {
|
|
34
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
35
|
+
}
|
|
36
|
+
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
40
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
41
|
+
*/
|
|
42
|
+
static isInstance(obj) {
|
|
43
|
+
if (obj === undefined || obj === null) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
return obj['__pulumiType'] === Provider.__pulumiType;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.Provider = Provider;
|
|
50
|
+
/** @internal */
|
|
51
|
+
Provider.__pulumiType = 'checkly';
|
|
52
|
+
//# sourceMappingURL=provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAmBjD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAA6B;QACvE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IArCD;;;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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AAbL,4BA0CC;AAzCG,gBAAgB;AACO,qBAAY,GAAG,SAAS,CAAC"}
|
package/bin/snippet.d.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare class Snippet extends pulumi.CustomResource {
|
|
3
|
+
/**
|
|
4
|
+
* Get an existing Snippet resource's state with the given name, ID, and optional extra
|
|
5
|
+
* properties used to qualify the lookup.
|
|
6
|
+
*
|
|
7
|
+
* @param name The _unique_ name of the resulting resource.
|
|
8
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
9
|
+
* @param state Any extra arguments used during the lookup.
|
|
10
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
11
|
+
*/
|
|
12
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SnippetState, opts?: pulumi.CustomResourceOptions): Snippet;
|
|
13
|
+
/**
|
|
14
|
+
* Returns true if the given object is an instance of Snippet. This is designed to work even
|
|
15
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
|
+
*/
|
|
17
|
+
static isInstance(obj: any): obj is Snippet;
|
|
18
|
+
/**
|
|
19
|
+
* The name of the snippet.
|
|
20
|
+
*/
|
|
21
|
+
readonly name: pulumi.Output<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Your Node.js code that interacts with the API check lifecycle, or functions as a partial for browser checks.
|
|
24
|
+
*/
|
|
25
|
+
readonly script: pulumi.Output<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Create a Snippet resource with the given unique name, arguments, and options.
|
|
28
|
+
*
|
|
29
|
+
* @param name The _unique_ name of the resource.
|
|
30
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
31
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
32
|
+
*/
|
|
33
|
+
constructor(name: string, args: SnippetArgs, opts?: pulumi.CustomResourceOptions);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Input properties used for looking up and filtering Snippet resources.
|
|
37
|
+
*/
|
|
38
|
+
export interface SnippetState {
|
|
39
|
+
/**
|
|
40
|
+
* The name of the snippet.
|
|
41
|
+
*/
|
|
42
|
+
name?: pulumi.Input<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Your Node.js code that interacts with the API check lifecycle, or functions as a partial for browser checks.
|
|
45
|
+
*/
|
|
46
|
+
script?: pulumi.Input<string>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The set of arguments for constructing a Snippet resource.
|
|
50
|
+
*/
|
|
51
|
+
export interface SnippetArgs {
|
|
52
|
+
/**
|
|
53
|
+
* The name of the snippet.
|
|
54
|
+
*/
|
|
55
|
+
name?: pulumi.Input<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Your Node.js code that interacts with the API check lifecycle, or functions as a partial for browser checks.
|
|
58
|
+
*/
|
|
59
|
+
script: pulumi.Input<string>;
|
|
60
|
+
}
|
package/bin/snippet.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Snippet = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class Snippet extends pulumi.CustomResource {
|
|
9
|
+
constructor(name, argsOrState, opts) {
|
|
10
|
+
let resourceInputs = {};
|
|
11
|
+
opts = opts || {};
|
|
12
|
+
if (opts.id) {
|
|
13
|
+
const state = argsOrState;
|
|
14
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
15
|
+
resourceInputs["script"] = state ? state.script : undefined;
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
const args = argsOrState;
|
|
19
|
+
if ((!args || args.script === undefined) && !opts.urn) {
|
|
20
|
+
throw new Error("Missing required property 'script'");
|
|
21
|
+
}
|
|
22
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
23
|
+
resourceInputs["script"] = args ? args.script : undefined;
|
|
24
|
+
}
|
|
25
|
+
if (!opts.version) {
|
|
26
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
27
|
+
}
|
|
28
|
+
super(Snippet.__pulumiType, name, resourceInputs, opts);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Get an existing Snippet resource's state with the given name, ID, and optional extra
|
|
32
|
+
* properties used to qualify the lookup.
|
|
33
|
+
*
|
|
34
|
+
* @param name The _unique_ name of the resulting resource.
|
|
35
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
36
|
+
* @param state Any extra arguments used during the lookup.
|
|
37
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
38
|
+
*/
|
|
39
|
+
static get(name, id, state, opts) {
|
|
40
|
+
return new Snippet(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Returns true if the given object is an instance of Snippet. This is designed to work even
|
|
44
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
45
|
+
*/
|
|
46
|
+
static isInstance(obj) {
|
|
47
|
+
if (obj === undefined || obj === null) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
return obj['__pulumiType'] === Snippet.__pulumiType;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.Snippet = Snippet;
|
|
54
|
+
/** @internal */
|
|
55
|
+
Snippet.__pulumiType = 'checkly:index/snippet:Snippet';
|
|
56
|
+
//# sourceMappingURL=snippet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snippet.js","sourceRoot":"","sources":["../snippet.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IA6C9C,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;aAAM;YACH,MAAM,IAAI,GAAG,WAAsC,CAAC;YACpD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cA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