@quantcdn/pulumi-quant 0.1.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.
@@ -0,0 +1,378 @@
1
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
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 inputs from "./types/input";
6
+ import * as outputs from "./types/output";
7
+ import * as utilities from "./utilities";
8
+
9
+ export class RuleServeStatic extends pulumi.CustomResource {
10
+ /**
11
+ * Get an existing RuleServeStatic resource's state with the given name, ID, and optional extra
12
+ * properties used to qualify the lookup.
13
+ *
14
+ * @param name The _unique_ name of the resulting resource.
15
+ * @param id The _unique_ provider ID of the resource to lookup.
16
+ * @param state Any extra arguments used during the lookup.
17
+ * @param opts Optional settings to control the behavior of the CustomResource.
18
+ */
19
+ public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RuleServeStaticState, opts?: pulumi.CustomResourceOptions): RuleServeStatic {
20
+ return new RuleServeStatic(name, <any>state, { ...opts, id: id });
21
+ }
22
+
23
+ /** @internal */
24
+ public static readonly __pulumiType = 'quant:index:RuleServeStatic';
25
+
26
+ /**
27
+ * Returns true if the given object is an instance of RuleServeStatic. This is designed to work even
28
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
29
+ */
30
+ public static isInstance(obj: any): obj is RuleServeStatic {
31
+ if (obj === undefined || obj === null) {
32
+ return false;
33
+ }
34
+ return obj['__pulumiType'] === RuleServeStatic.__pulumiType;
35
+ }
36
+
37
+ /**
38
+ * Rule action
39
+ */
40
+ declare public /*out*/ readonly action: pulumi.Output<string>;
41
+ declare public /*out*/ readonly actionConfig: pulumi.Output<outputs.RuleServeStaticActionConfig>;
42
+ /**
43
+ * Country filter type (country_is, country_is_not, any)
44
+ */
45
+ declare public readonly country: pulumi.Output<string>;
46
+ /**
47
+ * Allowed countries
48
+ */
49
+ declare public readonly countryIs: pulumi.Output<string[]>;
50
+ /**
51
+ * Excluded countries
52
+ */
53
+ declare public readonly countryIsNots: pulumi.Output<string[]>;
54
+ /**
55
+ * Whether rule is disabled
56
+ */
57
+ declare public readonly disabled: pulumi.Output<boolean>;
58
+ /**
59
+ * Domain patterns (default: any)
60
+ */
61
+ declare public readonly domains: pulumi.Output<string[]>;
62
+ /**
63
+ * IP filter type (ip_is, ip_is_not, any)
64
+ */
65
+ declare public readonly ip: pulumi.Output<string>;
66
+ /**
67
+ * Allowed IP addresses
68
+ */
69
+ declare public readonly ipIs: pulumi.Output<string[]>;
70
+ /**
71
+ * Excluded IP addresses
72
+ */
73
+ declare public readonly ipIsNots: pulumi.Output<string[]>;
74
+ /**
75
+ * Method filter type (method_is, method_is_not, any)
76
+ */
77
+ declare public readonly method: pulumi.Output<string>;
78
+ /**
79
+ * Allowed HTTP methods
80
+ */
81
+ declare public readonly methodIs: pulumi.Output<string[]>;
82
+ /**
83
+ * Excluded HTTP methods
84
+ */
85
+ declare public readonly methodIsNots: pulumi.Output<string[]>;
86
+ /**
87
+ * Rule name
88
+ */
89
+ declare public readonly name: pulumi.Output<string>;
90
+ /**
91
+ * Only apply with cookie
92
+ */
93
+ declare public /*out*/ readonly onlyWithCookie: pulumi.Output<string>;
94
+ /**
95
+ * Organization identifier
96
+ */
97
+ declare public readonly organization: pulumi.Output<string>;
98
+ /**
99
+ * Project identifier
100
+ */
101
+ declare public readonly project: pulumi.Output<string>;
102
+ /**
103
+ * Rule identifier
104
+ */
105
+ declare public readonly rule: pulumi.Output<string>;
106
+ /**
107
+ * Rule ID
108
+ */
109
+ declare public /*out*/ readonly ruleId: pulumi.Output<string>;
110
+ /**
111
+ * Path to the static file to serve
112
+ */
113
+ declare public readonly staticFilePath: pulumi.Output<string>;
114
+ /**
115
+ * URL patterns
116
+ */
117
+ declare public readonly urls: pulumi.Output<string[]>;
118
+ /**
119
+ * Rule UUID
120
+ */
121
+ declare public readonly uuid: pulumi.Output<string>;
122
+ /**
123
+ * Rule weight
124
+ */
125
+ declare public readonly weight: pulumi.Output<number>;
126
+
127
+ /**
128
+ * Create a RuleServeStatic resource with the given unique name, arguments, and options.
129
+ *
130
+ * @param name The _unique_ name of the resource.
131
+ * @param args The arguments to use to populate this resource's properties.
132
+ * @param opts A bag of options that control this resource's behavior.
133
+ */
134
+ constructor(name: string, args: RuleServeStaticArgs, opts?: pulumi.CustomResourceOptions)
135
+ constructor(name: string, argsOrState?: RuleServeStaticArgs | RuleServeStaticState, opts?: pulumi.CustomResourceOptions) {
136
+ let resourceInputs: pulumi.Inputs = {};
137
+ opts = opts || {};
138
+ if (opts.id) {
139
+ const state = argsOrState as RuleServeStaticState | undefined;
140
+ resourceInputs["action"] = state?.action;
141
+ resourceInputs["actionConfig"] = state?.actionConfig;
142
+ resourceInputs["country"] = state?.country;
143
+ resourceInputs["countryIs"] = state?.countryIs;
144
+ resourceInputs["countryIsNots"] = state?.countryIsNots;
145
+ resourceInputs["disabled"] = state?.disabled;
146
+ resourceInputs["domains"] = state?.domains;
147
+ resourceInputs["ip"] = state?.ip;
148
+ resourceInputs["ipIs"] = state?.ipIs;
149
+ resourceInputs["ipIsNots"] = state?.ipIsNots;
150
+ resourceInputs["method"] = state?.method;
151
+ resourceInputs["methodIs"] = state?.methodIs;
152
+ resourceInputs["methodIsNots"] = state?.methodIsNots;
153
+ resourceInputs["name"] = state?.name;
154
+ resourceInputs["onlyWithCookie"] = state?.onlyWithCookie;
155
+ resourceInputs["organization"] = state?.organization;
156
+ resourceInputs["project"] = state?.project;
157
+ resourceInputs["rule"] = state?.rule;
158
+ resourceInputs["ruleId"] = state?.ruleId;
159
+ resourceInputs["staticFilePath"] = state?.staticFilePath;
160
+ resourceInputs["urls"] = state?.urls;
161
+ resourceInputs["uuid"] = state?.uuid;
162
+ resourceInputs["weight"] = state?.weight;
163
+ } else {
164
+ const args = argsOrState as RuleServeStaticArgs | undefined;
165
+ if (args?.domains === undefined && !opts.urn) {
166
+ throw new Error("Missing required property 'domains'");
167
+ }
168
+ if (args?.staticFilePath === undefined && !opts.urn) {
169
+ throw new Error("Missing required property 'staticFilePath'");
170
+ }
171
+ if (args?.urls === undefined && !opts.urn) {
172
+ throw new Error("Missing required property 'urls'");
173
+ }
174
+ resourceInputs["country"] = args?.country;
175
+ resourceInputs["countryIs"] = args?.countryIs;
176
+ resourceInputs["countryIsNots"] = args?.countryIsNots;
177
+ resourceInputs["disabled"] = args?.disabled;
178
+ resourceInputs["domains"] = args?.domains;
179
+ resourceInputs["ip"] = args?.ip;
180
+ resourceInputs["ipIs"] = args?.ipIs;
181
+ resourceInputs["ipIsNots"] = args?.ipIsNots;
182
+ resourceInputs["method"] = args?.method;
183
+ resourceInputs["methodIs"] = args?.methodIs;
184
+ resourceInputs["methodIsNots"] = args?.methodIsNots;
185
+ resourceInputs["name"] = args?.name;
186
+ resourceInputs["organization"] = args?.organization;
187
+ resourceInputs["project"] = args?.project;
188
+ resourceInputs["rule"] = args?.rule;
189
+ resourceInputs["staticFilePath"] = args?.staticFilePath;
190
+ resourceInputs["urls"] = args?.urls;
191
+ resourceInputs["uuid"] = args?.uuid;
192
+ resourceInputs["weight"] = args?.weight;
193
+ resourceInputs["action"] = undefined /*out*/;
194
+ resourceInputs["actionConfig"] = undefined /*out*/;
195
+ resourceInputs["onlyWithCookie"] = undefined /*out*/;
196
+ resourceInputs["ruleId"] = undefined /*out*/;
197
+ }
198
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
199
+ super(RuleServeStatic.__pulumiType, name, resourceInputs, opts);
200
+ }
201
+ }
202
+
203
+ /**
204
+ * Input properties used for looking up and filtering RuleServeStatic resources.
205
+ */
206
+ export interface RuleServeStaticState {
207
+ /**
208
+ * Rule action
209
+ */
210
+ action?: pulumi.Input<string>;
211
+ actionConfig?: pulumi.Input<inputs.RuleServeStaticActionConfig>;
212
+ /**
213
+ * Country filter type (country_is, country_is_not, any)
214
+ */
215
+ country?: pulumi.Input<string>;
216
+ /**
217
+ * Allowed countries
218
+ */
219
+ countryIs?: pulumi.Input<pulumi.Input<string>[]>;
220
+ /**
221
+ * Excluded countries
222
+ */
223
+ countryIsNots?: pulumi.Input<pulumi.Input<string>[]>;
224
+ /**
225
+ * Whether rule is disabled
226
+ */
227
+ disabled?: pulumi.Input<boolean>;
228
+ /**
229
+ * Domain patterns (default: any)
230
+ */
231
+ domains?: pulumi.Input<pulumi.Input<string>[]>;
232
+ /**
233
+ * IP filter type (ip_is, ip_is_not, any)
234
+ */
235
+ ip?: pulumi.Input<string>;
236
+ /**
237
+ * Allowed IP addresses
238
+ */
239
+ ipIs?: pulumi.Input<pulumi.Input<string>[]>;
240
+ /**
241
+ * Excluded IP addresses
242
+ */
243
+ ipIsNots?: pulumi.Input<pulumi.Input<string>[]>;
244
+ /**
245
+ * Method filter type (method_is, method_is_not, any)
246
+ */
247
+ method?: pulumi.Input<string>;
248
+ /**
249
+ * Allowed HTTP methods
250
+ */
251
+ methodIs?: pulumi.Input<pulumi.Input<string>[]>;
252
+ /**
253
+ * Excluded HTTP methods
254
+ */
255
+ methodIsNots?: pulumi.Input<pulumi.Input<string>[]>;
256
+ /**
257
+ * Rule name
258
+ */
259
+ name?: pulumi.Input<string>;
260
+ /**
261
+ * Only apply with cookie
262
+ */
263
+ onlyWithCookie?: pulumi.Input<string>;
264
+ /**
265
+ * Organization identifier
266
+ */
267
+ organization?: pulumi.Input<string>;
268
+ /**
269
+ * Project identifier
270
+ */
271
+ project?: pulumi.Input<string>;
272
+ /**
273
+ * Rule identifier
274
+ */
275
+ rule?: pulumi.Input<string>;
276
+ /**
277
+ * Rule ID
278
+ */
279
+ ruleId?: pulumi.Input<string>;
280
+ /**
281
+ * Path to the static file to serve
282
+ */
283
+ staticFilePath?: pulumi.Input<string>;
284
+ /**
285
+ * URL patterns
286
+ */
287
+ urls?: pulumi.Input<pulumi.Input<string>[]>;
288
+ /**
289
+ * Rule UUID
290
+ */
291
+ uuid?: pulumi.Input<string>;
292
+ /**
293
+ * Rule weight
294
+ */
295
+ weight?: pulumi.Input<number>;
296
+ }
297
+
298
+ /**
299
+ * The set of arguments for constructing a RuleServeStatic resource.
300
+ */
301
+ export interface RuleServeStaticArgs {
302
+ /**
303
+ * Country filter type (country_is, country_is_not, any)
304
+ */
305
+ country?: pulumi.Input<string>;
306
+ /**
307
+ * Allowed countries
308
+ */
309
+ countryIs?: pulumi.Input<pulumi.Input<string>[]>;
310
+ /**
311
+ * Excluded countries
312
+ */
313
+ countryIsNots?: pulumi.Input<pulumi.Input<string>[]>;
314
+ /**
315
+ * Whether rule is disabled
316
+ */
317
+ disabled?: pulumi.Input<boolean>;
318
+ /**
319
+ * Domain patterns (default: any)
320
+ */
321
+ domains: pulumi.Input<pulumi.Input<string>[]>;
322
+ /**
323
+ * IP filter type (ip_is, ip_is_not, any)
324
+ */
325
+ ip?: pulumi.Input<string>;
326
+ /**
327
+ * Allowed IP addresses
328
+ */
329
+ ipIs?: pulumi.Input<pulumi.Input<string>[]>;
330
+ /**
331
+ * Excluded IP addresses
332
+ */
333
+ ipIsNots?: pulumi.Input<pulumi.Input<string>[]>;
334
+ /**
335
+ * Method filter type (method_is, method_is_not, any)
336
+ */
337
+ method?: pulumi.Input<string>;
338
+ /**
339
+ * Allowed HTTP methods
340
+ */
341
+ methodIs?: pulumi.Input<pulumi.Input<string>[]>;
342
+ /**
343
+ * Excluded HTTP methods
344
+ */
345
+ methodIsNots?: pulumi.Input<pulumi.Input<string>[]>;
346
+ /**
347
+ * Rule name
348
+ */
349
+ name?: pulumi.Input<string>;
350
+ /**
351
+ * Organization identifier
352
+ */
353
+ organization?: pulumi.Input<string>;
354
+ /**
355
+ * Project identifier
356
+ */
357
+ project?: pulumi.Input<string>;
358
+ /**
359
+ * Rule identifier
360
+ */
361
+ rule?: pulumi.Input<string>;
362
+ /**
363
+ * Path to the static file to serve
364
+ */
365
+ staticFilePath: pulumi.Input<string>;
366
+ /**
367
+ * URL patterns
368
+ */
369
+ urls: pulumi.Input<pulumi.Input<string>[]>;
370
+ /**
371
+ * Rule UUID
372
+ */
373
+ uuid?: pulumi.Input<string>;
374
+ /**
375
+ * Rule weight
376
+ */
377
+ weight?: pulumi.Input<number>;
378
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "bin",
4
+ "target": "ES2020",
5
+ "module": "commonjs",
6
+ "moduleResolution": "node",
7
+ "declaration": true,
8
+ "sourceMap": true,
9
+ "stripInternal": true,
10
+ "experimentalDecorators": true,
11
+ "noFallthroughCasesInSwitch": true,
12
+ "forceConsistentCasingInFileNames": true,
13
+ "strict": true
14
+ },
15
+ "files": [
16
+ "application.ts",
17
+ "config/index.ts",
18
+ "config/vars.ts",
19
+ "crawler.ts",
20
+ "crawlerSchedule.ts",
21
+ "cronJob.ts",
22
+ "domain.ts",
23
+ "environment.ts",
24
+ "getProject.ts",
25
+ "getProjects.ts",
26
+ "header.ts",
27
+ "index.ts",
28
+ "kvItem.ts",
29
+ "kvStore.ts",
30
+ "project.ts",
31
+ "provider.ts",
32
+ "ruleAuth.ts",
33
+ "ruleBotChallenge.ts",
34
+ "ruleContentFilter.ts",
35
+ "ruleCustomResponse.ts",
36
+ "ruleFunction.ts",
37
+ "ruleHeaders.ts",
38
+ "ruleProxy.ts",
39
+ "ruleRedirect.ts",
40
+ "ruleServeStatic.ts",
41
+ "types/index.ts",
42
+ "types/input.ts",
43
+ "types/output.ts",
44
+ "utilities.ts",
45
+ "volume.ts"
46
+ ]
47
+ }
package/types/index.ts ADDED
@@ -0,0 +1,13 @@
1
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
2
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
+
4
+ import * as utilities from "../utilities";
5
+
6
+ // Export sub-modules:
7
+ import * as input from "./input";
8
+ import * as output from "./output";
9
+
10
+ export {
11
+ input,
12
+ output,
13
+ };