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