@quantcdn/pulumi-quant 5.5.0 → 5.5.2
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/aiAgent.d.ts +155 -0
- package/aiAgent.js +94 -0
- package/aiAgent.js.map +1 -0
- package/aiGovernance.d.ts +77 -0
- package/aiGovernance.js +75 -0
- package/aiGovernance.js.map +1 -0
- package/aiSkill.d.ts +101 -0
- package/aiSkill.js +85 -0
- package/aiSkill.js.map +1 -0
- package/aiVectorCollection.d.ts +107 -0
- package/aiVectorCollection.js +68 -0
- package/aiVectorCollection.js.map +1 -0
- package/aiVectorDocument.d.ts +73 -0
- package/aiVectorDocument.js +70 -0
- package/aiVectorDocument.js.map +1 -0
- package/application.d.ts +189 -0
- package/application.js +85 -0
- package/application.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +36 -0
- package/config/vars.js +61 -0
- package/config/vars.js.map +1 -0
- package/{crawler.ts → crawler.d.ts} +45 -139
- package/crawler.js +116 -0
- package/crawler.js.map +1 -0
- package/crawlerSchedule.d.ts +156 -0
- package/crawlerSchedule.js +74 -0
- package/crawlerSchedule.js.map +1 -0
- package/cronJob.d.ts +102 -0
- package/cronJob.js +73 -0
- package/cronJob.js.map +1 -0
- package/{domain.ts → domain.d.ts} +10 -56
- package/domain.js +62 -0
- package/domain.js.map +1 -0
- package/environment.d.ts +313 -0
- package/environment.js +110 -0
- package/environment.js.map +1 -0
- package/getProject.d.ts +34 -0
- package/getProject.js +24 -0
- package/getProject.js.map +1 -0
- package/getProjects.d.ts +14 -0
- package/getProjects.js +18 -0
- package/getProjects.js.map +1 -0
- package/header.d.ts +60 -0
- package/header.js +59 -0
- package/header.js.map +1 -0
- package/index.d.ts +88 -0
- package/index.js +158 -0
- package/index.js.map +1 -0
- package/{kvItem.ts → kvItem.d.ts} +11 -62
- package/kvItem.js +67 -0
- package/kvItem.js.map +1 -0
- package/kvStore.d.ts +75 -0
- package/kvStore.js +55 -0
- package/kvStore.js.map +1 -0
- package/package.json +32 -30
- package/project.d.ts +175 -0
- package/project.js +73 -0
- package/project.js.map +1 -0
- package/{provider.ts → provider.d.ts} +12 -51
- package/provider.js +63 -0
- package/provider.js.map +1 -0
- package/{ruleAuth.ts → ruleAuth.d.ts} +31 -128
- package/ruleAuth.js +113 -0
- package/ruleAuth.js.map +1 -0
- package/{ruleBotChallenge.ts → ruleBotChallenge.d.ts} +32 -128
- package/ruleBotChallenge.js +112 -0
- package/ruleBotChallenge.js.map +1 -0
- package/{ruleContentFilter.ts → ruleContentFilter.d.ts} +30 -122
- package/ruleContentFilter.js +108 -0
- package/ruleContentFilter.js.map +1 -0
- package/{ruleCustomResponse.ts → ruleCustomResponse.d.ts} +33 -131
- package/ruleCustomResponse.js +114 -0
- package/ruleCustomResponse.js.map +1 -0
- package/{ruleFunction.ts → ruleFunction.d.ts} +30 -122
- package/ruleFunction.js +108 -0
- package/ruleFunction.js.map +1 -0
- package/{ruleHeaders.ts → ruleHeaders.d.ts} +38 -124
- package/ruleHeaders.js +108 -0
- package/ruleHeaders.js.map +1 -0
- package/{ruleProxy.ts → ruleProxy.d.ts} +62 -196
- package/ruleProxy.js +156 -0
- package/ruleProxy.js.map +1 -0
- package/{ruleRedirect.ts → ruleRedirect.d.ts} +31 -125
- package/ruleRedirect.js +110 -0
- package/ruleRedirect.js.map +1 -0
- package/{ruleServeStatic.ts → ruleServeStatic.d.ts} +30 -122
- package/ruleServeStatic.js +108 -0
- package/ruleServeStatic.js.map +1 -0
- package/{slackBot.ts → slackBot.d.ts} +14 -71
- package/slackBot.js +73 -0
- package/slackBot.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/{input.ts → input.d.ts} +6 -78
- package/{config/index.ts → types/input.js} +3 -3
- package/types/input.js.map +1 -0
- package/types/{output.ts → output.d.ts} +6 -81
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/{utilities.ts → utilities.js} +23 -28
- package/utilities.js.map +1 -0
- package/volume.d.ts +130 -0
- package/volume.js +74 -0
- package/volume.js.map +1 -0
- package/.gitattributes +0 -1
- package/aiAgent.ts +0 -233
- package/aiGovernance.ts +0 -136
- package/aiSkill.ts +0 -170
- package/aiVectorCollection.ts +0 -159
- package/aiVectorDocument.ts +0 -127
- package/application.ts +0 -258
- package/config/vars.ts +0 -108
- package/crawlerSchedule.ts +0 -214
- package/cronJob.ts +0 -159
- package/environment.ts +0 -407
- package/getProject.ts +0 -54
- package/getProjects.ts +0 -29
- package/header.ts +0 -97
- package/index.ts +0 -231
- package/kvStore.ts +0 -114
- package/project.ts +0 -232
- package/tsconfig.json +0 -53
- package/types/index.ts +0 -13
- package/volume.ts +0 -188
|
@@ -1,12 +1,7 @@
|
|
|
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
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
5
2
|
import * as inputs from "./types/input";
|
|
6
3
|
import * as outputs from "./types/output";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export class RuleCustomResponse extends pulumi.CustomResource {
|
|
4
|
+
export declare class RuleCustomResponse extends pulumi.CustomResource {
|
|
10
5
|
/**
|
|
11
6
|
* Get an existing RuleCustomResponse resource's state with the given name, ID, and optional extra
|
|
12
7
|
* properties used to qualify the lookup.
|
|
@@ -16,138 +11,125 @@ export class RuleCustomResponse extends pulumi.CustomResource {
|
|
|
16
11
|
* @param state Any extra arguments used during the lookup.
|
|
17
12
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
18
13
|
*/
|
|
19
|
-
|
|
20
|
-
return new RuleCustomResponse(name, <any>state, { ...opts, id: id });
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/** @internal */
|
|
24
|
-
public static readonly __pulumiType = 'quant:index:RuleCustomResponse';
|
|
25
|
-
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RuleCustomResponseState, opts?: pulumi.CustomResourceOptions): RuleCustomResponse;
|
|
26
15
|
/**
|
|
27
16
|
* Returns true if the given object is an instance of RuleCustomResponse. This is designed to work even
|
|
28
17
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
29
18
|
*/
|
|
30
|
-
|
|
31
|
-
if (obj === undefined || obj === null) {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
return obj['__pulumiType'] === RuleCustomResponse.__pulumiType;
|
|
35
|
-
}
|
|
36
|
-
|
|
19
|
+
static isInstance(obj: any): obj is RuleCustomResponse;
|
|
37
20
|
/**
|
|
38
21
|
* Rule action
|
|
39
22
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
23
|
+
readonly action: pulumi.Output<string>;
|
|
24
|
+
readonly actionConfig: pulumi.Output<outputs.RuleCustomResponseActionConfig>;
|
|
42
25
|
/**
|
|
43
26
|
* ASN filter type (asn_is, asn_is_not, any)
|
|
44
27
|
*/
|
|
45
|
-
|
|
28
|
+
readonly asn: pulumi.Output<string>;
|
|
46
29
|
/**
|
|
47
30
|
* Allowed AS numbers
|
|
48
31
|
*/
|
|
49
|
-
|
|
32
|
+
readonly asnIs: pulumi.Output<string[]>;
|
|
50
33
|
/**
|
|
51
34
|
* Excluded AS numbers
|
|
52
35
|
*/
|
|
53
|
-
|
|
36
|
+
readonly asnIsNots: pulumi.Output<string[]>;
|
|
54
37
|
/**
|
|
55
38
|
* Legacy field for response body (deprecated)
|
|
56
39
|
*/
|
|
57
|
-
|
|
40
|
+
readonly body: pulumi.Output<string>;
|
|
58
41
|
/**
|
|
59
42
|
* Country filter type (country_is, country_is_not, any)
|
|
60
43
|
*/
|
|
61
|
-
|
|
44
|
+
readonly country: pulumi.Output<string>;
|
|
62
45
|
/**
|
|
63
46
|
* Allowed countries
|
|
64
47
|
*/
|
|
65
|
-
|
|
48
|
+
readonly countryIs: pulumi.Output<string[]>;
|
|
66
49
|
/**
|
|
67
50
|
* Excluded countries
|
|
68
51
|
*/
|
|
69
|
-
|
|
52
|
+
readonly countryIsNots: pulumi.Output<string[]>;
|
|
70
53
|
/**
|
|
71
54
|
* Custom response body content
|
|
72
55
|
*/
|
|
73
|
-
|
|
56
|
+
readonly customResponseBody: pulumi.Output<string>;
|
|
74
57
|
/**
|
|
75
58
|
* HTTP status code for custom response
|
|
76
59
|
*/
|
|
77
|
-
|
|
60
|
+
readonly customResponseStatusCode: pulumi.Output<number>;
|
|
78
61
|
/**
|
|
79
62
|
* Whether rule is disabled
|
|
80
63
|
*/
|
|
81
|
-
|
|
64
|
+
readonly disabled: pulumi.Output<boolean>;
|
|
82
65
|
/**
|
|
83
66
|
* Domain patterns (default: any)
|
|
84
67
|
*/
|
|
85
|
-
|
|
68
|
+
readonly domains: pulumi.Output<string[]>;
|
|
86
69
|
/**
|
|
87
70
|
* IP filter type (ip_is, ip_is_not, any)
|
|
88
71
|
*/
|
|
89
|
-
|
|
72
|
+
readonly ip: pulumi.Output<string>;
|
|
90
73
|
/**
|
|
91
74
|
* Allowed IP addresses
|
|
92
75
|
*/
|
|
93
|
-
|
|
76
|
+
readonly ipIs: pulumi.Output<string[]>;
|
|
94
77
|
/**
|
|
95
78
|
* Excluded IP addresses
|
|
96
79
|
*/
|
|
97
|
-
|
|
80
|
+
readonly ipIsNots: pulumi.Output<string[]>;
|
|
98
81
|
/**
|
|
99
82
|
* Method filter type (method_is, method_is_not, any)
|
|
100
83
|
*/
|
|
101
|
-
|
|
84
|
+
readonly method: pulumi.Output<string>;
|
|
102
85
|
/**
|
|
103
86
|
* Allowed HTTP methods
|
|
104
87
|
*/
|
|
105
|
-
|
|
88
|
+
readonly methodIs: pulumi.Output<string[]>;
|
|
106
89
|
/**
|
|
107
90
|
* Excluded HTTP methods
|
|
108
91
|
*/
|
|
109
|
-
|
|
92
|
+
readonly methodIsNots: pulumi.Output<string[]>;
|
|
110
93
|
/**
|
|
111
94
|
* Rule name
|
|
112
95
|
*/
|
|
113
|
-
|
|
96
|
+
readonly name: pulumi.Output<string>;
|
|
114
97
|
/**
|
|
115
98
|
* Only apply with cookie
|
|
116
99
|
*/
|
|
117
|
-
|
|
100
|
+
readonly onlyWithCookie: pulumi.Output<string>;
|
|
118
101
|
/**
|
|
119
102
|
* Organization identifier
|
|
120
103
|
*/
|
|
121
|
-
|
|
104
|
+
readonly organization: pulumi.Output<string>;
|
|
122
105
|
/**
|
|
123
106
|
* Project identifier
|
|
124
107
|
*/
|
|
125
|
-
|
|
108
|
+
readonly project: pulumi.Output<string>;
|
|
126
109
|
/**
|
|
127
110
|
* Rule identifier
|
|
128
111
|
*/
|
|
129
|
-
|
|
112
|
+
readonly rule: pulumi.Output<string>;
|
|
130
113
|
/**
|
|
131
114
|
* Rule ID
|
|
132
115
|
*/
|
|
133
|
-
|
|
116
|
+
readonly ruleId: pulumi.Output<string>;
|
|
134
117
|
/**
|
|
135
118
|
* Legacy field for status code (deprecated)
|
|
136
119
|
*/
|
|
137
|
-
|
|
120
|
+
readonly statusCode: pulumi.Output<number>;
|
|
138
121
|
/**
|
|
139
122
|
* URL patterns
|
|
140
123
|
*/
|
|
141
|
-
|
|
124
|
+
readonly urls: pulumi.Output<string[]>;
|
|
142
125
|
/**
|
|
143
126
|
* Rule UUID
|
|
144
127
|
*/
|
|
145
|
-
|
|
128
|
+
readonly uuid: pulumi.Output<string>;
|
|
146
129
|
/**
|
|
147
130
|
* Rule weight
|
|
148
131
|
*/
|
|
149
|
-
|
|
150
|
-
|
|
132
|
+
readonly weight: pulumi.Output<number>;
|
|
151
133
|
/**
|
|
152
134
|
* Create a RuleCustomResponse resource with the given unique name, arguments, and options.
|
|
153
135
|
*
|
|
@@ -155,87 +137,8 @@ export class RuleCustomResponse extends pulumi.CustomResource {
|
|
|
155
137
|
* @param args The arguments to use to populate this resource's properties.
|
|
156
138
|
* @param opts A bag of options that control this resource's behavior.
|
|
157
139
|
*/
|
|
158
|
-
constructor(name: string, args: RuleCustomResponseArgs, opts?: pulumi.CustomResourceOptions)
|
|
159
|
-
constructor(name: string, argsOrState?: RuleCustomResponseArgs | RuleCustomResponseState, opts?: pulumi.CustomResourceOptions) {
|
|
160
|
-
let resourceInputs: pulumi.Inputs = {};
|
|
161
|
-
opts = opts || {};
|
|
162
|
-
if (opts.id) {
|
|
163
|
-
const state = argsOrState as RuleCustomResponseState | undefined;
|
|
164
|
-
resourceInputs["action"] = state?.action;
|
|
165
|
-
resourceInputs["actionConfig"] = state?.actionConfig;
|
|
166
|
-
resourceInputs["asn"] = state?.asn;
|
|
167
|
-
resourceInputs["asnIs"] = state?.asnIs;
|
|
168
|
-
resourceInputs["asnIsNots"] = state?.asnIsNots;
|
|
169
|
-
resourceInputs["body"] = state?.body;
|
|
170
|
-
resourceInputs["country"] = state?.country;
|
|
171
|
-
resourceInputs["countryIs"] = state?.countryIs;
|
|
172
|
-
resourceInputs["countryIsNots"] = state?.countryIsNots;
|
|
173
|
-
resourceInputs["customResponseBody"] = state?.customResponseBody;
|
|
174
|
-
resourceInputs["customResponseStatusCode"] = state?.customResponseStatusCode;
|
|
175
|
-
resourceInputs["disabled"] = state?.disabled;
|
|
176
|
-
resourceInputs["domains"] = state?.domains;
|
|
177
|
-
resourceInputs["ip"] = state?.ip;
|
|
178
|
-
resourceInputs["ipIs"] = state?.ipIs;
|
|
179
|
-
resourceInputs["ipIsNots"] = state?.ipIsNots;
|
|
180
|
-
resourceInputs["method"] = state?.method;
|
|
181
|
-
resourceInputs["methodIs"] = state?.methodIs;
|
|
182
|
-
resourceInputs["methodIsNots"] = state?.methodIsNots;
|
|
183
|
-
resourceInputs["name"] = state?.name;
|
|
184
|
-
resourceInputs["onlyWithCookie"] = state?.onlyWithCookie;
|
|
185
|
-
resourceInputs["organization"] = state?.organization;
|
|
186
|
-
resourceInputs["project"] = state?.project;
|
|
187
|
-
resourceInputs["rule"] = state?.rule;
|
|
188
|
-
resourceInputs["ruleId"] = state?.ruleId;
|
|
189
|
-
resourceInputs["statusCode"] = state?.statusCode;
|
|
190
|
-
resourceInputs["urls"] = state?.urls;
|
|
191
|
-
resourceInputs["uuid"] = state?.uuid;
|
|
192
|
-
resourceInputs["weight"] = state?.weight;
|
|
193
|
-
} else {
|
|
194
|
-
const args = argsOrState as RuleCustomResponseArgs | undefined;
|
|
195
|
-
if (args?.customResponseBody === undefined && !opts.urn) {
|
|
196
|
-
throw new Error("Missing required property 'customResponseBody'");
|
|
197
|
-
}
|
|
198
|
-
if (args?.domains === undefined && !opts.urn) {
|
|
199
|
-
throw new Error("Missing required property 'domains'");
|
|
200
|
-
}
|
|
201
|
-
if (args?.urls === undefined && !opts.urn) {
|
|
202
|
-
throw new Error("Missing required property 'urls'");
|
|
203
|
-
}
|
|
204
|
-
resourceInputs["asn"] = args?.asn;
|
|
205
|
-
resourceInputs["asnIs"] = args?.asnIs;
|
|
206
|
-
resourceInputs["asnIsNots"] = args?.asnIsNots;
|
|
207
|
-
resourceInputs["body"] = args?.body;
|
|
208
|
-
resourceInputs["country"] = args?.country;
|
|
209
|
-
resourceInputs["countryIs"] = args?.countryIs;
|
|
210
|
-
resourceInputs["countryIsNots"] = args?.countryIsNots;
|
|
211
|
-
resourceInputs["customResponseBody"] = args?.customResponseBody;
|
|
212
|
-
resourceInputs["customResponseStatusCode"] = args?.customResponseStatusCode;
|
|
213
|
-
resourceInputs["disabled"] = args?.disabled;
|
|
214
|
-
resourceInputs["domains"] = args?.domains;
|
|
215
|
-
resourceInputs["ip"] = args?.ip;
|
|
216
|
-
resourceInputs["ipIs"] = args?.ipIs;
|
|
217
|
-
resourceInputs["ipIsNots"] = args?.ipIsNots;
|
|
218
|
-
resourceInputs["method"] = args?.method;
|
|
219
|
-
resourceInputs["methodIs"] = args?.methodIs;
|
|
220
|
-
resourceInputs["methodIsNots"] = args?.methodIsNots;
|
|
221
|
-
resourceInputs["name"] = args?.name;
|
|
222
|
-
resourceInputs["organization"] = args?.organization;
|
|
223
|
-
resourceInputs["project"] = args?.project;
|
|
224
|
-
resourceInputs["rule"] = args?.rule;
|
|
225
|
-
resourceInputs["statusCode"] = args?.statusCode;
|
|
226
|
-
resourceInputs["urls"] = args?.urls;
|
|
227
|
-
resourceInputs["uuid"] = args?.uuid;
|
|
228
|
-
resourceInputs["weight"] = args?.weight;
|
|
229
|
-
resourceInputs["action"] = undefined /*out*/;
|
|
230
|
-
resourceInputs["actionConfig"] = undefined /*out*/;
|
|
231
|
-
resourceInputs["onlyWithCookie"] = undefined /*out*/;
|
|
232
|
-
resourceInputs["ruleId"] = undefined /*out*/;
|
|
233
|
-
}
|
|
234
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
235
|
-
super(RuleCustomResponse.__pulumiType, name, resourceInputs, opts);
|
|
236
|
-
}
|
|
140
|
+
constructor(name: string, args: RuleCustomResponseArgs, opts?: pulumi.CustomResourceOptions);
|
|
237
141
|
}
|
|
238
|
-
|
|
239
142
|
/**
|
|
240
143
|
* Input properties used for looking up and filtering RuleCustomResponse resources.
|
|
241
144
|
*/
|
|
@@ -354,7 +257,6 @@ export interface RuleCustomResponseState {
|
|
|
354
257
|
*/
|
|
355
258
|
weight?: pulumi.Input<number>;
|
|
356
259
|
}
|
|
357
|
-
|
|
358
260
|
/**
|
|
359
261
|
* The set of arguments for constructing a RuleCustomResponse resource.
|
|
360
262
|
*/
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.RuleCustomResponse = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class RuleCustomResponse extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing RuleCustomResponse resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, state, opts) {
|
|
19
|
+
return new RuleCustomResponse(name, state, { ...opts, id: id });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of RuleCustomResponse. This is designed to work even
|
|
23
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
24
|
+
*/
|
|
25
|
+
static isInstance(obj) {
|
|
26
|
+
if (obj === undefined || obj === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return obj['__pulumiType'] === RuleCustomResponse.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["action"] = state?.action;
|
|
37
|
+
resourceInputs["actionConfig"] = state?.actionConfig;
|
|
38
|
+
resourceInputs["asn"] = state?.asn;
|
|
39
|
+
resourceInputs["asnIs"] = state?.asnIs;
|
|
40
|
+
resourceInputs["asnIsNots"] = state?.asnIsNots;
|
|
41
|
+
resourceInputs["body"] = state?.body;
|
|
42
|
+
resourceInputs["country"] = state?.country;
|
|
43
|
+
resourceInputs["countryIs"] = state?.countryIs;
|
|
44
|
+
resourceInputs["countryIsNots"] = state?.countryIsNots;
|
|
45
|
+
resourceInputs["customResponseBody"] = state?.customResponseBody;
|
|
46
|
+
resourceInputs["customResponseStatusCode"] = state?.customResponseStatusCode;
|
|
47
|
+
resourceInputs["disabled"] = state?.disabled;
|
|
48
|
+
resourceInputs["domains"] = state?.domains;
|
|
49
|
+
resourceInputs["ip"] = state?.ip;
|
|
50
|
+
resourceInputs["ipIs"] = state?.ipIs;
|
|
51
|
+
resourceInputs["ipIsNots"] = state?.ipIsNots;
|
|
52
|
+
resourceInputs["method"] = state?.method;
|
|
53
|
+
resourceInputs["methodIs"] = state?.methodIs;
|
|
54
|
+
resourceInputs["methodIsNots"] = state?.methodIsNots;
|
|
55
|
+
resourceInputs["name"] = state?.name;
|
|
56
|
+
resourceInputs["onlyWithCookie"] = state?.onlyWithCookie;
|
|
57
|
+
resourceInputs["organization"] = state?.organization;
|
|
58
|
+
resourceInputs["project"] = state?.project;
|
|
59
|
+
resourceInputs["rule"] = state?.rule;
|
|
60
|
+
resourceInputs["ruleId"] = state?.ruleId;
|
|
61
|
+
resourceInputs["statusCode"] = state?.statusCode;
|
|
62
|
+
resourceInputs["urls"] = state?.urls;
|
|
63
|
+
resourceInputs["uuid"] = state?.uuid;
|
|
64
|
+
resourceInputs["weight"] = state?.weight;
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
const args = argsOrState;
|
|
68
|
+
if (args?.customResponseBody === undefined && !opts.urn) {
|
|
69
|
+
throw new Error("Missing required property 'customResponseBody'");
|
|
70
|
+
}
|
|
71
|
+
if (args?.domains === undefined && !opts.urn) {
|
|
72
|
+
throw new Error("Missing required property 'domains'");
|
|
73
|
+
}
|
|
74
|
+
if (args?.urls === undefined && !opts.urn) {
|
|
75
|
+
throw new Error("Missing required property 'urls'");
|
|
76
|
+
}
|
|
77
|
+
resourceInputs["asn"] = args?.asn;
|
|
78
|
+
resourceInputs["asnIs"] = args?.asnIs;
|
|
79
|
+
resourceInputs["asnIsNots"] = args?.asnIsNots;
|
|
80
|
+
resourceInputs["body"] = args?.body;
|
|
81
|
+
resourceInputs["country"] = args?.country;
|
|
82
|
+
resourceInputs["countryIs"] = args?.countryIs;
|
|
83
|
+
resourceInputs["countryIsNots"] = args?.countryIsNots;
|
|
84
|
+
resourceInputs["customResponseBody"] = args?.customResponseBody;
|
|
85
|
+
resourceInputs["customResponseStatusCode"] = args?.customResponseStatusCode;
|
|
86
|
+
resourceInputs["disabled"] = args?.disabled;
|
|
87
|
+
resourceInputs["domains"] = args?.domains;
|
|
88
|
+
resourceInputs["ip"] = args?.ip;
|
|
89
|
+
resourceInputs["ipIs"] = args?.ipIs;
|
|
90
|
+
resourceInputs["ipIsNots"] = args?.ipIsNots;
|
|
91
|
+
resourceInputs["method"] = args?.method;
|
|
92
|
+
resourceInputs["methodIs"] = args?.methodIs;
|
|
93
|
+
resourceInputs["methodIsNots"] = args?.methodIsNots;
|
|
94
|
+
resourceInputs["name"] = args?.name;
|
|
95
|
+
resourceInputs["organization"] = args?.organization;
|
|
96
|
+
resourceInputs["project"] = args?.project;
|
|
97
|
+
resourceInputs["rule"] = args?.rule;
|
|
98
|
+
resourceInputs["statusCode"] = args?.statusCode;
|
|
99
|
+
resourceInputs["urls"] = args?.urls;
|
|
100
|
+
resourceInputs["uuid"] = args?.uuid;
|
|
101
|
+
resourceInputs["weight"] = args?.weight;
|
|
102
|
+
resourceInputs["action"] = undefined /*out*/;
|
|
103
|
+
resourceInputs["actionConfig"] = undefined /*out*/;
|
|
104
|
+
resourceInputs["onlyWithCookie"] = undefined /*out*/;
|
|
105
|
+
resourceInputs["ruleId"] = undefined /*out*/;
|
|
106
|
+
}
|
|
107
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
108
|
+
super(RuleCustomResponse.__pulumiType, name, resourceInputs, opts);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
exports.RuleCustomResponse = RuleCustomResponse;
|
|
112
|
+
/** @internal */
|
|
113
|
+
RuleCustomResponse.__pulumiType = 'quant:index:RuleCustomResponse';
|
|
114
|
+
//# sourceMappingURL=ruleCustomResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ruleCustomResponse.js","sourceRoot":"","sources":["../ruleCustomResponse.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AI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAnOL,gDAoOC;AAtNG,gBAAgB;AACO,+BAAY,GAAG,gCAAgC,CAAC"}
|
|
@@ -1,12 +1,7 @@
|
|
|
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
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
5
2
|
import * as inputs from "./types/input";
|
|
6
3
|
import * as outputs from "./types/output";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export class RuleFunction extends pulumi.CustomResource {
|
|
4
|
+
export declare class RuleFunction extends pulumi.CustomResource {
|
|
10
5
|
/**
|
|
11
6
|
* Get an existing RuleFunction resource's state with the given name, ID, and optional extra
|
|
12
7
|
* properties used to qualify the lookup.
|
|
@@ -16,126 +11,113 @@ export class RuleFunction extends pulumi.CustomResource {
|
|
|
16
11
|
* @param state Any extra arguments used during the lookup.
|
|
17
12
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
18
13
|
*/
|
|
19
|
-
|
|
20
|
-
return new RuleFunction(name, <any>state, { ...opts, id: id });
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/** @internal */
|
|
24
|
-
public static readonly __pulumiType = 'quant:index:RuleFunction';
|
|
25
|
-
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RuleFunctionState, opts?: pulumi.CustomResourceOptions): RuleFunction;
|
|
26
15
|
/**
|
|
27
16
|
* Returns true if the given object is an instance of RuleFunction. This is designed to work even
|
|
28
17
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
29
18
|
*/
|
|
30
|
-
|
|
31
|
-
if (obj === undefined || obj === null) {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
return obj['__pulumiType'] === RuleFunction.__pulumiType;
|
|
35
|
-
}
|
|
36
|
-
|
|
19
|
+
static isInstance(obj: any): obj is RuleFunction;
|
|
37
20
|
/**
|
|
38
21
|
* Rule action
|
|
39
22
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
23
|
+
readonly action: pulumi.Output<string>;
|
|
24
|
+
readonly actionConfig: pulumi.Output<outputs.RuleFunctionActionConfig>;
|
|
42
25
|
/**
|
|
43
26
|
* ASN filter type (asn_is, asn_is_not, any)
|
|
44
27
|
*/
|
|
45
|
-
|
|
28
|
+
readonly asn: pulumi.Output<string>;
|
|
46
29
|
/**
|
|
47
30
|
* Allowed AS numbers
|
|
48
31
|
*/
|
|
49
|
-
|
|
32
|
+
readonly asnIs: pulumi.Output<string[]>;
|
|
50
33
|
/**
|
|
51
34
|
* Excluded AS numbers
|
|
52
35
|
*/
|
|
53
|
-
|
|
36
|
+
readonly asnIsNots: pulumi.Output<string[]>;
|
|
54
37
|
/**
|
|
55
38
|
* Country filter type (country_is, country_is_not, any)
|
|
56
39
|
*/
|
|
57
|
-
|
|
40
|
+
readonly country: pulumi.Output<string>;
|
|
58
41
|
/**
|
|
59
42
|
* Allowed countries
|
|
60
43
|
*/
|
|
61
|
-
|
|
44
|
+
readonly countryIs: pulumi.Output<string[]>;
|
|
62
45
|
/**
|
|
63
46
|
* Excluded countries
|
|
64
47
|
*/
|
|
65
|
-
|
|
48
|
+
readonly countryIsNots: pulumi.Output<string[]>;
|
|
66
49
|
/**
|
|
67
50
|
* Whether rule is disabled
|
|
68
51
|
*/
|
|
69
|
-
|
|
52
|
+
readonly disabled: pulumi.Output<boolean>;
|
|
70
53
|
/**
|
|
71
54
|
* Domain patterns (default: any)
|
|
72
55
|
*/
|
|
73
|
-
|
|
56
|
+
readonly domains: pulumi.Output<string[]>;
|
|
74
57
|
/**
|
|
75
58
|
* Function UUID
|
|
76
59
|
*/
|
|
77
|
-
|
|
60
|
+
readonly fnUuid: pulumi.Output<string>;
|
|
78
61
|
/**
|
|
79
62
|
* IP filter type (ip_is, ip_is_not, any)
|
|
80
63
|
*/
|
|
81
|
-
|
|
64
|
+
readonly ip: pulumi.Output<string>;
|
|
82
65
|
/**
|
|
83
66
|
* Allowed IP addresses
|
|
84
67
|
*/
|
|
85
|
-
|
|
68
|
+
readonly ipIs: pulumi.Output<string[]>;
|
|
86
69
|
/**
|
|
87
70
|
* Excluded IP addresses
|
|
88
71
|
*/
|
|
89
|
-
|
|
72
|
+
readonly ipIsNots: pulumi.Output<string[]>;
|
|
90
73
|
/**
|
|
91
74
|
* Method filter type (method_is, method_is_not, any)
|
|
92
75
|
*/
|
|
93
|
-
|
|
76
|
+
readonly method: pulumi.Output<string>;
|
|
94
77
|
/**
|
|
95
78
|
* Allowed HTTP methods
|
|
96
79
|
*/
|
|
97
|
-
|
|
80
|
+
readonly methodIs: pulumi.Output<string[]>;
|
|
98
81
|
/**
|
|
99
82
|
* Excluded HTTP methods
|
|
100
83
|
*/
|
|
101
|
-
|
|
84
|
+
readonly methodIsNots: pulumi.Output<string[]>;
|
|
102
85
|
/**
|
|
103
86
|
* Rule name
|
|
104
87
|
*/
|
|
105
|
-
|
|
88
|
+
readonly name: pulumi.Output<string>;
|
|
106
89
|
/**
|
|
107
90
|
* Only apply with cookie
|
|
108
91
|
*/
|
|
109
|
-
|
|
92
|
+
readonly onlyWithCookie: pulumi.Output<string>;
|
|
110
93
|
/**
|
|
111
94
|
* Organization identifier
|
|
112
95
|
*/
|
|
113
|
-
|
|
96
|
+
readonly organization: pulumi.Output<string>;
|
|
114
97
|
/**
|
|
115
98
|
* Project identifier
|
|
116
99
|
*/
|
|
117
|
-
|
|
100
|
+
readonly project: pulumi.Output<string>;
|
|
118
101
|
/**
|
|
119
102
|
* Rule identifier
|
|
120
103
|
*/
|
|
121
|
-
|
|
104
|
+
readonly rule: pulumi.Output<string>;
|
|
122
105
|
/**
|
|
123
106
|
* Rule ID
|
|
124
107
|
*/
|
|
125
|
-
|
|
108
|
+
readonly ruleId: pulumi.Output<string>;
|
|
126
109
|
/**
|
|
127
110
|
* URL patterns
|
|
128
111
|
*/
|
|
129
|
-
|
|
112
|
+
readonly urls: pulumi.Output<string[]>;
|
|
130
113
|
/**
|
|
131
114
|
* Rule UUID
|
|
132
115
|
*/
|
|
133
|
-
|
|
116
|
+
readonly uuid: pulumi.Output<string>;
|
|
134
117
|
/**
|
|
135
118
|
* Rule weight
|
|
136
119
|
*/
|
|
137
|
-
|
|
138
|
-
|
|
120
|
+
readonly weight: pulumi.Output<number>;
|
|
139
121
|
/**
|
|
140
122
|
* Create a RuleFunction resource with the given unique name, arguments, and options.
|
|
141
123
|
*
|
|
@@ -143,81 +125,8 @@ export class RuleFunction extends pulumi.CustomResource {
|
|
|
143
125
|
* @param args The arguments to use to populate this resource's properties.
|
|
144
126
|
* @param opts A bag of options that control this resource's behavior.
|
|
145
127
|
*/
|
|
146
|
-
constructor(name: string, args: RuleFunctionArgs, opts?: pulumi.CustomResourceOptions)
|
|
147
|
-
constructor(name: string, argsOrState?: RuleFunctionArgs | RuleFunctionState, opts?: pulumi.CustomResourceOptions) {
|
|
148
|
-
let resourceInputs: pulumi.Inputs = {};
|
|
149
|
-
opts = opts || {};
|
|
150
|
-
if (opts.id) {
|
|
151
|
-
const state = argsOrState as RuleFunctionState | undefined;
|
|
152
|
-
resourceInputs["action"] = state?.action;
|
|
153
|
-
resourceInputs["actionConfig"] = state?.actionConfig;
|
|
154
|
-
resourceInputs["asn"] = state?.asn;
|
|
155
|
-
resourceInputs["asnIs"] = state?.asnIs;
|
|
156
|
-
resourceInputs["asnIsNots"] = state?.asnIsNots;
|
|
157
|
-
resourceInputs["country"] = state?.country;
|
|
158
|
-
resourceInputs["countryIs"] = state?.countryIs;
|
|
159
|
-
resourceInputs["countryIsNots"] = state?.countryIsNots;
|
|
160
|
-
resourceInputs["disabled"] = state?.disabled;
|
|
161
|
-
resourceInputs["domains"] = state?.domains;
|
|
162
|
-
resourceInputs["fnUuid"] = state?.fnUuid;
|
|
163
|
-
resourceInputs["ip"] = state?.ip;
|
|
164
|
-
resourceInputs["ipIs"] = state?.ipIs;
|
|
165
|
-
resourceInputs["ipIsNots"] = state?.ipIsNots;
|
|
166
|
-
resourceInputs["method"] = state?.method;
|
|
167
|
-
resourceInputs["methodIs"] = state?.methodIs;
|
|
168
|
-
resourceInputs["methodIsNots"] = state?.methodIsNots;
|
|
169
|
-
resourceInputs["name"] = state?.name;
|
|
170
|
-
resourceInputs["onlyWithCookie"] = state?.onlyWithCookie;
|
|
171
|
-
resourceInputs["organization"] = state?.organization;
|
|
172
|
-
resourceInputs["project"] = state?.project;
|
|
173
|
-
resourceInputs["rule"] = state?.rule;
|
|
174
|
-
resourceInputs["ruleId"] = state?.ruleId;
|
|
175
|
-
resourceInputs["urls"] = state?.urls;
|
|
176
|
-
resourceInputs["uuid"] = state?.uuid;
|
|
177
|
-
resourceInputs["weight"] = state?.weight;
|
|
178
|
-
} else {
|
|
179
|
-
const args = argsOrState as RuleFunctionArgs | undefined;
|
|
180
|
-
if (args?.domains === undefined && !opts.urn) {
|
|
181
|
-
throw new Error("Missing required property 'domains'");
|
|
182
|
-
}
|
|
183
|
-
if (args?.fnUuid === undefined && !opts.urn) {
|
|
184
|
-
throw new Error("Missing required property 'fnUuid'");
|
|
185
|
-
}
|
|
186
|
-
if (args?.urls === undefined && !opts.urn) {
|
|
187
|
-
throw new Error("Missing required property 'urls'");
|
|
188
|
-
}
|
|
189
|
-
resourceInputs["asn"] = args?.asn;
|
|
190
|
-
resourceInputs["asnIs"] = args?.asnIs;
|
|
191
|
-
resourceInputs["asnIsNots"] = args?.asnIsNots;
|
|
192
|
-
resourceInputs["country"] = args?.country;
|
|
193
|
-
resourceInputs["countryIs"] = args?.countryIs;
|
|
194
|
-
resourceInputs["countryIsNots"] = args?.countryIsNots;
|
|
195
|
-
resourceInputs["disabled"] = args?.disabled;
|
|
196
|
-
resourceInputs["domains"] = args?.domains;
|
|
197
|
-
resourceInputs["fnUuid"] = args?.fnUuid;
|
|
198
|
-
resourceInputs["ip"] = args?.ip;
|
|
199
|
-
resourceInputs["ipIs"] = args?.ipIs;
|
|
200
|
-
resourceInputs["ipIsNots"] = args?.ipIsNots;
|
|
201
|
-
resourceInputs["method"] = args?.method;
|
|
202
|
-
resourceInputs["methodIs"] = args?.methodIs;
|
|
203
|
-
resourceInputs["methodIsNots"] = args?.methodIsNots;
|
|
204
|
-
resourceInputs["name"] = args?.name;
|
|
205
|
-
resourceInputs["organization"] = args?.organization;
|
|
206
|
-
resourceInputs["project"] = args?.project;
|
|
207
|
-
resourceInputs["rule"] = args?.rule;
|
|
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(RuleFunction.__pulumiType, name, resourceInputs, opts);
|
|
218
|
-
}
|
|
128
|
+
constructor(name: string, args: RuleFunctionArgs, opts?: pulumi.CustomResourceOptions);
|
|
219
129
|
}
|
|
220
|
-
|
|
221
130
|
/**
|
|
222
131
|
* Input properties used for looking up and filtering RuleFunction resources.
|
|
223
132
|
*/
|
|
@@ -324,7 +233,6 @@ export interface RuleFunctionState {
|
|
|
324
233
|
*/
|
|
325
234
|
weight?: pulumi.Input<number>;
|
|
326
235
|
}
|
|
327
|
-
|
|
328
236
|
/**
|
|
329
237
|
* The set of arguments for constructing a RuleFunction resource.
|
|
330
238
|
*/
|