@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,406 @@
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 RuleBotChallenge extends pulumi.CustomResource {
10
+ /**
11
+ * Get an existing RuleBotChallenge 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?: RuleBotChallengeState, opts?: pulumi.CustomResourceOptions): RuleBotChallenge {
20
+ return new RuleBotChallenge(name, <any>state, { ...opts, id: id });
21
+ }
22
+
23
+ /** @internal */
24
+ public static readonly __pulumiType = 'quant:index:RuleBotChallenge';
25
+
26
+ /**
27
+ * Returns true if the given object is an instance of RuleBotChallenge. 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 RuleBotChallenge {
31
+ if (obj === undefined || obj === null) {
32
+ return false;
33
+ }
34
+ return obj['__pulumiType'] === RuleBotChallenge.__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.RuleBotChallengeActionConfig>;
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
+ * Challenge TTL in seconds
104
+ */
105
+ declare public readonly robotChallengeChallengeTtl: pulumi.Output<number>;
106
+ /**
107
+ * Challenge type (invisible or checkbox)
108
+ */
109
+ declare public readonly robotChallengeType: pulumi.Output<string>;
110
+ /**
111
+ * Verification TTL in seconds
112
+ */
113
+ declare public readonly robotChallengeVerificationTtl: pulumi.Output<number>;
114
+ /**
115
+ * Rule identifier
116
+ */
117
+ declare public readonly rule: pulumi.Output<string>;
118
+ /**
119
+ * Rule ID
120
+ */
121
+ declare public /*out*/ readonly ruleId: pulumi.Output<string>;
122
+ /**
123
+ * URL patterns
124
+ */
125
+ declare public readonly urls: pulumi.Output<string[]>;
126
+ /**
127
+ * Rule UUID
128
+ */
129
+ declare public readonly uuid: pulumi.Output<string>;
130
+ /**
131
+ * Rule weight
132
+ */
133
+ declare public readonly weight: pulumi.Output<number>;
134
+
135
+ /**
136
+ * Create a RuleBotChallenge resource with the given unique name, arguments, and options.
137
+ *
138
+ * @param name The _unique_ name of the resource.
139
+ * @param args The arguments to use to populate this resource's properties.
140
+ * @param opts A bag of options that control this resource's behavior.
141
+ */
142
+ constructor(name: string, args: RuleBotChallengeArgs, opts?: pulumi.CustomResourceOptions)
143
+ constructor(name: string, argsOrState?: RuleBotChallengeArgs | RuleBotChallengeState, opts?: pulumi.CustomResourceOptions) {
144
+ let resourceInputs: pulumi.Inputs = {};
145
+ opts = opts || {};
146
+ if (opts.id) {
147
+ const state = argsOrState as RuleBotChallengeState | undefined;
148
+ resourceInputs["action"] = state?.action;
149
+ resourceInputs["actionConfig"] = state?.actionConfig;
150
+ resourceInputs["country"] = state?.country;
151
+ resourceInputs["countryIs"] = state?.countryIs;
152
+ resourceInputs["countryIsNots"] = state?.countryIsNots;
153
+ resourceInputs["disabled"] = state?.disabled;
154
+ resourceInputs["domains"] = state?.domains;
155
+ resourceInputs["ip"] = state?.ip;
156
+ resourceInputs["ipIs"] = state?.ipIs;
157
+ resourceInputs["ipIsNots"] = state?.ipIsNots;
158
+ resourceInputs["method"] = state?.method;
159
+ resourceInputs["methodIs"] = state?.methodIs;
160
+ resourceInputs["methodIsNots"] = state?.methodIsNots;
161
+ resourceInputs["name"] = state?.name;
162
+ resourceInputs["onlyWithCookie"] = state?.onlyWithCookie;
163
+ resourceInputs["organization"] = state?.organization;
164
+ resourceInputs["project"] = state?.project;
165
+ resourceInputs["robotChallengeChallengeTtl"] = state?.robotChallengeChallengeTtl;
166
+ resourceInputs["robotChallengeType"] = state?.robotChallengeType;
167
+ resourceInputs["robotChallengeVerificationTtl"] = state?.robotChallengeVerificationTtl;
168
+ resourceInputs["rule"] = state?.rule;
169
+ resourceInputs["ruleId"] = state?.ruleId;
170
+ resourceInputs["urls"] = state?.urls;
171
+ resourceInputs["uuid"] = state?.uuid;
172
+ resourceInputs["weight"] = state?.weight;
173
+ } else {
174
+ const args = argsOrState as RuleBotChallengeArgs | undefined;
175
+ if (args?.domains === undefined && !opts.urn) {
176
+ throw new Error("Missing required property 'domains'");
177
+ }
178
+ if (args?.robotChallengeType === undefined && !opts.urn) {
179
+ throw new Error("Missing required property 'robotChallengeType'");
180
+ }
181
+ if (args?.urls === undefined && !opts.urn) {
182
+ throw new Error("Missing required property 'urls'");
183
+ }
184
+ resourceInputs["country"] = args?.country;
185
+ resourceInputs["countryIs"] = args?.countryIs;
186
+ resourceInputs["countryIsNots"] = args?.countryIsNots;
187
+ resourceInputs["disabled"] = args?.disabled;
188
+ resourceInputs["domains"] = args?.domains;
189
+ resourceInputs["ip"] = args?.ip;
190
+ resourceInputs["ipIs"] = args?.ipIs;
191
+ resourceInputs["ipIsNots"] = args?.ipIsNots;
192
+ resourceInputs["method"] = args?.method;
193
+ resourceInputs["methodIs"] = args?.methodIs;
194
+ resourceInputs["methodIsNots"] = args?.methodIsNots;
195
+ resourceInputs["name"] = args?.name;
196
+ resourceInputs["organization"] = args?.organization;
197
+ resourceInputs["project"] = args?.project;
198
+ resourceInputs["robotChallengeChallengeTtl"] = args?.robotChallengeChallengeTtl;
199
+ resourceInputs["robotChallengeType"] = args?.robotChallengeType;
200
+ resourceInputs["robotChallengeVerificationTtl"] = args?.robotChallengeVerificationTtl;
201
+ resourceInputs["rule"] = args?.rule;
202
+ resourceInputs["urls"] = args?.urls;
203
+ resourceInputs["uuid"] = args?.uuid;
204
+ resourceInputs["weight"] = args?.weight;
205
+ resourceInputs["action"] = undefined /*out*/;
206
+ resourceInputs["actionConfig"] = undefined /*out*/;
207
+ resourceInputs["onlyWithCookie"] = undefined /*out*/;
208
+ resourceInputs["ruleId"] = undefined /*out*/;
209
+ }
210
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
211
+ super(RuleBotChallenge.__pulumiType, name, resourceInputs, opts);
212
+ }
213
+ }
214
+
215
+ /**
216
+ * Input properties used for looking up and filtering RuleBotChallenge resources.
217
+ */
218
+ export interface RuleBotChallengeState {
219
+ /**
220
+ * Rule action
221
+ */
222
+ action?: pulumi.Input<string>;
223
+ actionConfig?: pulumi.Input<inputs.RuleBotChallengeActionConfig>;
224
+ /**
225
+ * Country filter type (country_is, country_is_not, any)
226
+ */
227
+ country?: pulumi.Input<string>;
228
+ /**
229
+ * Allowed countries
230
+ */
231
+ countryIs?: pulumi.Input<pulumi.Input<string>[]>;
232
+ /**
233
+ * Excluded countries
234
+ */
235
+ countryIsNots?: pulumi.Input<pulumi.Input<string>[]>;
236
+ /**
237
+ * Whether rule is disabled
238
+ */
239
+ disabled?: pulumi.Input<boolean>;
240
+ /**
241
+ * Domain patterns (default: any)
242
+ */
243
+ domains?: pulumi.Input<pulumi.Input<string>[]>;
244
+ /**
245
+ * IP filter type (ip_is, ip_is_not, any)
246
+ */
247
+ ip?: pulumi.Input<string>;
248
+ /**
249
+ * Allowed IP addresses
250
+ */
251
+ ipIs?: pulumi.Input<pulumi.Input<string>[]>;
252
+ /**
253
+ * Excluded IP addresses
254
+ */
255
+ ipIsNots?: pulumi.Input<pulumi.Input<string>[]>;
256
+ /**
257
+ * Method filter type (method_is, method_is_not, any)
258
+ */
259
+ method?: pulumi.Input<string>;
260
+ /**
261
+ * Allowed HTTP methods
262
+ */
263
+ methodIs?: pulumi.Input<pulumi.Input<string>[]>;
264
+ /**
265
+ * Excluded HTTP methods
266
+ */
267
+ methodIsNots?: pulumi.Input<pulumi.Input<string>[]>;
268
+ /**
269
+ * Rule name
270
+ */
271
+ name?: pulumi.Input<string>;
272
+ /**
273
+ * Only apply with cookie
274
+ */
275
+ onlyWithCookie?: pulumi.Input<string>;
276
+ /**
277
+ * Organization identifier
278
+ */
279
+ organization?: pulumi.Input<string>;
280
+ /**
281
+ * Project identifier
282
+ */
283
+ project?: pulumi.Input<string>;
284
+ /**
285
+ * Challenge TTL in seconds
286
+ */
287
+ robotChallengeChallengeTtl?: pulumi.Input<number>;
288
+ /**
289
+ * Challenge type (invisible or checkbox)
290
+ */
291
+ robotChallengeType?: pulumi.Input<string>;
292
+ /**
293
+ * Verification TTL in seconds
294
+ */
295
+ robotChallengeVerificationTtl?: pulumi.Input<number>;
296
+ /**
297
+ * Rule identifier
298
+ */
299
+ rule?: pulumi.Input<string>;
300
+ /**
301
+ * Rule ID
302
+ */
303
+ ruleId?: pulumi.Input<string>;
304
+ /**
305
+ * URL patterns
306
+ */
307
+ urls?: pulumi.Input<pulumi.Input<string>[]>;
308
+ /**
309
+ * Rule UUID
310
+ */
311
+ uuid?: pulumi.Input<string>;
312
+ /**
313
+ * Rule weight
314
+ */
315
+ weight?: pulumi.Input<number>;
316
+ }
317
+
318
+ /**
319
+ * The set of arguments for constructing a RuleBotChallenge resource.
320
+ */
321
+ export interface RuleBotChallengeArgs {
322
+ /**
323
+ * Country filter type (country_is, country_is_not, any)
324
+ */
325
+ country?: pulumi.Input<string>;
326
+ /**
327
+ * Allowed countries
328
+ */
329
+ countryIs?: pulumi.Input<pulumi.Input<string>[]>;
330
+ /**
331
+ * Excluded countries
332
+ */
333
+ countryIsNots?: pulumi.Input<pulumi.Input<string>[]>;
334
+ /**
335
+ * Whether rule is disabled
336
+ */
337
+ disabled?: pulumi.Input<boolean>;
338
+ /**
339
+ * Domain patterns (default: any)
340
+ */
341
+ domains: pulumi.Input<pulumi.Input<string>[]>;
342
+ /**
343
+ * IP filter type (ip_is, ip_is_not, any)
344
+ */
345
+ ip?: pulumi.Input<string>;
346
+ /**
347
+ * Allowed IP addresses
348
+ */
349
+ ipIs?: pulumi.Input<pulumi.Input<string>[]>;
350
+ /**
351
+ * Excluded IP addresses
352
+ */
353
+ ipIsNots?: pulumi.Input<pulumi.Input<string>[]>;
354
+ /**
355
+ * Method filter type (method_is, method_is_not, any)
356
+ */
357
+ method?: pulumi.Input<string>;
358
+ /**
359
+ * Allowed HTTP methods
360
+ */
361
+ methodIs?: pulumi.Input<pulumi.Input<string>[]>;
362
+ /**
363
+ * Excluded HTTP methods
364
+ */
365
+ methodIsNots?: pulumi.Input<pulumi.Input<string>[]>;
366
+ /**
367
+ * Rule name
368
+ */
369
+ name?: pulumi.Input<string>;
370
+ /**
371
+ * Organization identifier
372
+ */
373
+ organization?: pulumi.Input<string>;
374
+ /**
375
+ * Project identifier
376
+ */
377
+ project?: pulumi.Input<string>;
378
+ /**
379
+ * Challenge TTL in seconds
380
+ */
381
+ robotChallengeChallengeTtl?: pulumi.Input<number>;
382
+ /**
383
+ * Challenge type (invisible or checkbox)
384
+ */
385
+ robotChallengeType: pulumi.Input<string>;
386
+ /**
387
+ * Verification TTL in seconds
388
+ */
389
+ robotChallengeVerificationTtl?: pulumi.Input<number>;
390
+ /**
391
+ * Rule identifier
392
+ */
393
+ rule?: pulumi.Input<string>;
394
+ /**
395
+ * URL patterns
396
+ */
397
+ urls: pulumi.Input<pulumi.Input<string>[]>;
398
+ /**
399
+ * Rule UUID
400
+ */
401
+ uuid?: pulumi.Input<string>;
402
+ /**
403
+ * Rule weight
404
+ */
405
+ weight?: pulumi.Input<number>;
406
+ }