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