@pulumi/cloudflare 3.5.0 → 3.6.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.
- package/accessKeysConfiguration.d.ts +42 -0
- package/accessKeysConfiguration.js +55 -0
- package/accessKeysConfiguration.js.map +1 -0
- package/accessPolicy.d.ts +36 -0
- package/accessPolicy.js +6 -0
- package/accessPolicy.js.map +1 -1
- package/index.d.ts +3 -0
- package/index.js +15 -0
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/ruleset.d.ts +106 -8
- package/ruleset.js +103 -5
- package/ruleset.js.map +1 -1
- package/teamsAccount.d.ts +117 -0
- package/teamsAccount.js +90 -0
- package/teamsAccount.js.map +1 -0
- package/teamsLocation.d.ts +93 -0
- package/teamsLocation.js +33 -0
- package/teamsLocation.js.map +1 -1
- package/teamsRule.d.ts +195 -0
- package/teamsRule.js +121 -0
- package/teamsRule.js.map +1 -0
- package/types/input.d.ts +165 -15
- package/types/output.d.ts +166 -16
package/teamsRule.d.ts
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Provides a Cloudflare Teams rule resource. Teams rules comprise secure web gateway policies.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
11
|
+
*
|
|
12
|
+
* const rule1 = new cloudflare.TeamsRule("rule1", {
|
|
13
|
+
* accountId: "1d5fdc9e88c8a8c4518b068cd94331fe",
|
|
14
|
+
* action: "l4_override",
|
|
15
|
+
* description: "desc",
|
|
16
|
+
* filters: ["l4"],
|
|
17
|
+
* name: "office",
|
|
18
|
+
* precedence: 1,
|
|
19
|
+
* ruleSettings: {
|
|
20
|
+
* blockPageEnabled: false,
|
|
21
|
+
* blockPageReason: "access not permitted",
|
|
22
|
+
* l4override: {
|
|
23
|
+
* ip: "192.0.2.1",
|
|
24
|
+
* port: 1234,
|
|
25
|
+
* },
|
|
26
|
+
* },
|
|
27
|
+
* traffic: "any(dns.domains[*] == \"com.example\")",
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ## Import
|
|
32
|
+
*
|
|
33
|
+
* Teams Rules can be imported using a composite ID formed of account ID and teams rule ID.
|
|
34
|
+
*
|
|
35
|
+
* ```sh
|
|
36
|
+
* $ pulumi import cloudflare:index/teamsRule:TeamsRule rule1 cb029e245cfdd66dc8d2e570d5dd3322/d41d8cd98f00b204e9800998ecf8427e
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare class TeamsRule extends pulumi.CustomResource {
|
|
40
|
+
/**
|
|
41
|
+
* Get an existing TeamsRule resource's state with the given name, ID, and optional extra
|
|
42
|
+
* properties used to qualify the lookup.
|
|
43
|
+
*
|
|
44
|
+
* @param name The _unique_ name of the resulting resource.
|
|
45
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
46
|
+
* @param state Any extra arguments used during the lookup.
|
|
47
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
48
|
+
*/
|
|
49
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TeamsRuleState, opts?: pulumi.CustomResourceOptions): TeamsRule;
|
|
50
|
+
/**
|
|
51
|
+
* Returns true if the given object is an instance of TeamsRule. This is designed to work even
|
|
52
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
53
|
+
*/
|
|
54
|
+
static isInstance(obj: any): obj is TeamsRule;
|
|
55
|
+
/**
|
|
56
|
+
* The account to which the teams rule should be added.
|
|
57
|
+
*/
|
|
58
|
+
readonly accountId: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* The action executed by matched teams rule.
|
|
61
|
+
*/
|
|
62
|
+
readonly action: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The description of the teams rule.
|
|
65
|
+
*/
|
|
66
|
+
readonly description: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Indicator of rule enablement.
|
|
69
|
+
*/
|
|
70
|
+
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* The protocol or layer to evaluate the traffic and identity expressions.
|
|
73
|
+
*/
|
|
74
|
+
readonly filters: pulumi.Output<string[] | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* The wirefilter expression to be used for identity matching.
|
|
77
|
+
*/
|
|
78
|
+
readonly identity: pulumi.Output<string | undefined>;
|
|
79
|
+
/**
|
|
80
|
+
* The name of the teams rule.
|
|
81
|
+
*/
|
|
82
|
+
readonly name: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* The evaluation precedence of the teams rule.
|
|
85
|
+
*/
|
|
86
|
+
readonly precedence: pulumi.Output<number>;
|
|
87
|
+
/**
|
|
88
|
+
* Additional rule settings.
|
|
89
|
+
*/
|
|
90
|
+
readonly ruleSettings: pulumi.Output<outputs.TeamsRuleRuleSettings | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* The wirefilter expression to be used for traffic matching.
|
|
93
|
+
*/
|
|
94
|
+
readonly traffic: pulumi.Output<string | undefined>;
|
|
95
|
+
readonly version: pulumi.Output<number>;
|
|
96
|
+
/**
|
|
97
|
+
* Create a TeamsRule resource with the given unique name, arguments, and options.
|
|
98
|
+
*
|
|
99
|
+
* @param name The _unique_ name of the resource.
|
|
100
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
101
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
102
|
+
*/
|
|
103
|
+
constructor(name: string, args: TeamsRuleArgs, opts?: pulumi.CustomResourceOptions);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Input properties used for looking up and filtering TeamsRule resources.
|
|
107
|
+
*/
|
|
108
|
+
export interface TeamsRuleState {
|
|
109
|
+
/**
|
|
110
|
+
* The account to which the teams rule should be added.
|
|
111
|
+
*/
|
|
112
|
+
accountId?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* The action executed by matched teams rule.
|
|
115
|
+
*/
|
|
116
|
+
action?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* The description of the teams rule.
|
|
119
|
+
*/
|
|
120
|
+
description?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* Indicator of rule enablement.
|
|
123
|
+
*/
|
|
124
|
+
enabled?: pulumi.Input<boolean>;
|
|
125
|
+
/**
|
|
126
|
+
* The protocol or layer to evaluate the traffic and identity expressions.
|
|
127
|
+
*/
|
|
128
|
+
filters?: pulumi.Input<pulumi.Input<string>[]>;
|
|
129
|
+
/**
|
|
130
|
+
* The wirefilter expression to be used for identity matching.
|
|
131
|
+
*/
|
|
132
|
+
identity?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* The name of the teams rule.
|
|
135
|
+
*/
|
|
136
|
+
name?: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* The evaluation precedence of the teams rule.
|
|
139
|
+
*/
|
|
140
|
+
precedence?: pulumi.Input<number>;
|
|
141
|
+
/**
|
|
142
|
+
* Additional rule settings.
|
|
143
|
+
*/
|
|
144
|
+
ruleSettings?: pulumi.Input<inputs.TeamsRuleRuleSettings>;
|
|
145
|
+
/**
|
|
146
|
+
* The wirefilter expression to be used for traffic matching.
|
|
147
|
+
*/
|
|
148
|
+
traffic?: pulumi.Input<string>;
|
|
149
|
+
version?: pulumi.Input<number>;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* The set of arguments for constructing a TeamsRule resource.
|
|
153
|
+
*/
|
|
154
|
+
export interface TeamsRuleArgs {
|
|
155
|
+
/**
|
|
156
|
+
* The account to which the teams rule should be added.
|
|
157
|
+
*/
|
|
158
|
+
accountId: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* The action executed by matched teams rule.
|
|
161
|
+
*/
|
|
162
|
+
action: pulumi.Input<string>;
|
|
163
|
+
/**
|
|
164
|
+
* The description of the teams rule.
|
|
165
|
+
*/
|
|
166
|
+
description: pulumi.Input<string>;
|
|
167
|
+
/**
|
|
168
|
+
* Indicator of rule enablement.
|
|
169
|
+
*/
|
|
170
|
+
enabled?: pulumi.Input<boolean>;
|
|
171
|
+
/**
|
|
172
|
+
* The protocol or layer to evaluate the traffic and identity expressions.
|
|
173
|
+
*/
|
|
174
|
+
filters?: pulumi.Input<pulumi.Input<string>[]>;
|
|
175
|
+
/**
|
|
176
|
+
* The wirefilter expression to be used for identity matching.
|
|
177
|
+
*/
|
|
178
|
+
identity?: pulumi.Input<string>;
|
|
179
|
+
/**
|
|
180
|
+
* The name of the teams rule.
|
|
181
|
+
*/
|
|
182
|
+
name: pulumi.Input<string>;
|
|
183
|
+
/**
|
|
184
|
+
* The evaluation precedence of the teams rule.
|
|
185
|
+
*/
|
|
186
|
+
precedence: pulumi.Input<number>;
|
|
187
|
+
/**
|
|
188
|
+
* Additional rule settings.
|
|
189
|
+
*/
|
|
190
|
+
ruleSettings?: pulumi.Input<inputs.TeamsRuleRuleSettings>;
|
|
191
|
+
/**
|
|
192
|
+
* The wirefilter expression to be used for traffic matching.
|
|
193
|
+
*/
|
|
194
|
+
traffic?: pulumi.Input<string>;
|
|
195
|
+
}
|
package/teamsRule.js
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const utilities = require("./utilities");
|
|
7
|
+
/**
|
|
8
|
+
* Provides a Cloudflare Teams rule resource. Teams rules comprise secure web gateway policies.
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
15
|
+
*
|
|
16
|
+
* const rule1 = new cloudflare.TeamsRule("rule1", {
|
|
17
|
+
* accountId: "1d5fdc9e88c8a8c4518b068cd94331fe",
|
|
18
|
+
* action: "l4_override",
|
|
19
|
+
* description: "desc",
|
|
20
|
+
* filters: ["l4"],
|
|
21
|
+
* name: "office",
|
|
22
|
+
* precedence: 1,
|
|
23
|
+
* ruleSettings: {
|
|
24
|
+
* blockPageEnabled: false,
|
|
25
|
+
* blockPageReason: "access not permitted",
|
|
26
|
+
* l4override: {
|
|
27
|
+
* ip: "192.0.2.1",
|
|
28
|
+
* port: 1234,
|
|
29
|
+
* },
|
|
30
|
+
* },
|
|
31
|
+
* traffic: "any(dns.domains[*] == \"com.example\")",
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ## Import
|
|
36
|
+
*
|
|
37
|
+
* Teams Rules can be imported using a composite ID formed of account ID and teams rule ID.
|
|
38
|
+
*
|
|
39
|
+
* ```sh
|
|
40
|
+
* $ pulumi import cloudflare:index/teamsRule:TeamsRule rule1 cb029e245cfdd66dc8d2e570d5dd3322/d41d8cd98f00b204e9800998ecf8427e
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
class TeamsRule extends pulumi.CustomResource {
|
|
44
|
+
constructor(name, argsOrState, opts) {
|
|
45
|
+
let inputs = {};
|
|
46
|
+
opts = opts || {};
|
|
47
|
+
if (opts.id) {
|
|
48
|
+
const state = argsOrState;
|
|
49
|
+
inputs["accountId"] = state ? state.accountId : undefined;
|
|
50
|
+
inputs["action"] = state ? state.action : undefined;
|
|
51
|
+
inputs["description"] = state ? state.description : undefined;
|
|
52
|
+
inputs["enabled"] = state ? state.enabled : undefined;
|
|
53
|
+
inputs["filters"] = state ? state.filters : undefined;
|
|
54
|
+
inputs["identity"] = state ? state.identity : undefined;
|
|
55
|
+
inputs["name"] = state ? state.name : undefined;
|
|
56
|
+
inputs["precedence"] = state ? state.precedence : undefined;
|
|
57
|
+
inputs["ruleSettings"] = state ? state.ruleSettings : undefined;
|
|
58
|
+
inputs["traffic"] = state ? state.traffic : undefined;
|
|
59
|
+
inputs["version"] = state ? state.version : undefined;
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
const args = argsOrState;
|
|
63
|
+
if ((!args || args.accountId === undefined) && !opts.urn) {
|
|
64
|
+
throw new Error("Missing required property 'accountId'");
|
|
65
|
+
}
|
|
66
|
+
if ((!args || args.action === undefined) && !opts.urn) {
|
|
67
|
+
throw new Error("Missing required property 'action'");
|
|
68
|
+
}
|
|
69
|
+
if ((!args || args.description === undefined) && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'description'");
|
|
71
|
+
}
|
|
72
|
+
if ((!args || args.name === undefined) && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'name'");
|
|
74
|
+
}
|
|
75
|
+
if ((!args || args.precedence === undefined) && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'precedence'");
|
|
77
|
+
}
|
|
78
|
+
inputs["accountId"] = args ? args.accountId : undefined;
|
|
79
|
+
inputs["action"] = args ? args.action : undefined;
|
|
80
|
+
inputs["description"] = args ? args.description : undefined;
|
|
81
|
+
inputs["enabled"] = args ? args.enabled : undefined;
|
|
82
|
+
inputs["filters"] = args ? args.filters : undefined;
|
|
83
|
+
inputs["identity"] = args ? args.identity : undefined;
|
|
84
|
+
inputs["name"] = args ? args.name : undefined;
|
|
85
|
+
inputs["precedence"] = args ? args.precedence : undefined;
|
|
86
|
+
inputs["ruleSettings"] = args ? args.ruleSettings : undefined;
|
|
87
|
+
inputs["traffic"] = args ? args.traffic : undefined;
|
|
88
|
+
inputs["version"] = undefined /*out*/;
|
|
89
|
+
}
|
|
90
|
+
if (!opts.version) {
|
|
91
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
92
|
+
}
|
|
93
|
+
super(TeamsRule.__pulumiType, name, inputs, opts);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Get an existing TeamsRule resource's state with the given name, ID, and optional extra
|
|
97
|
+
* properties used to qualify the lookup.
|
|
98
|
+
*
|
|
99
|
+
* @param name The _unique_ name of the resulting resource.
|
|
100
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
101
|
+
* @param state Any extra arguments used during the lookup.
|
|
102
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
103
|
+
*/
|
|
104
|
+
static get(name, id, state, opts) {
|
|
105
|
+
return new TeamsRule(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Returns true if the given object is an instance of TeamsRule. This is designed to work even
|
|
109
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
110
|
+
*/
|
|
111
|
+
static isInstance(obj) {
|
|
112
|
+
if (obj === undefined || obj === null) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
return obj['__pulumiType'] === TeamsRule.__pulumiType;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.TeamsRule = TeamsRule;
|
|
119
|
+
/** @internal */
|
|
120
|
+
TeamsRule.__pulumiType = 'cloudflare:index/teamsRule:TeamsRule';
|
|
121
|
+
//# sourceMappingURL=teamsRule.js.map
|
package/teamsRule.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teamsRule.js","sourceRoot":"","sources":["../teamsRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAa,SAAU,SAAQ,MAAM,CAA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HD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;;AA1BL,8BAgIC;AAlHG,gBAAgB;AACO,sBAAY,GAAG,sCAAsC,CAAC"}
|
package/types/input.d.ts
CHANGED
|
@@ -206,6 +206,17 @@ export interface AccessIdentityProviderConfig {
|
|
|
206
206
|
supportGroups?: pulumi.Input<boolean>;
|
|
207
207
|
tokenUrl?: pulumi.Input<string>;
|
|
208
208
|
}
|
|
209
|
+
export interface AccessPolicyApprovalGroup {
|
|
210
|
+
/**
|
|
211
|
+
* Number of approvals needed.
|
|
212
|
+
*/
|
|
213
|
+
approvalsNeeded: pulumi.Input<number>;
|
|
214
|
+
/**
|
|
215
|
+
* List of emails to request approval from.
|
|
216
|
+
*/
|
|
217
|
+
emailAddresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
218
|
+
emailListUuid?: pulumi.Input<string>;
|
|
219
|
+
}
|
|
209
220
|
export interface AccessPolicyExclude {
|
|
210
221
|
anyValidServiceToken?: pulumi.Input<boolean>;
|
|
211
222
|
authMethod?: pulumi.Input<string>;
|
|
@@ -1233,7 +1244,7 @@ export interface RulesetRule {
|
|
|
1233
1244
|
/**
|
|
1234
1245
|
* List of parameters that configure the behavior of the ruleset rule action (refer to the nested schema).
|
|
1235
1246
|
*/
|
|
1236
|
-
actionParameters?: pulumi.Input<
|
|
1247
|
+
actionParameters?: pulumi.Input<inputs.RulesetRuleActionParameters>;
|
|
1237
1248
|
/**
|
|
1238
1249
|
* Brief summary of the ruleset rule and its intended use.
|
|
1239
1250
|
*/
|
|
@@ -1250,41 +1261,87 @@ export interface RulesetRule {
|
|
|
1250
1261
|
* Rule ID to apply the override to.
|
|
1251
1262
|
*/
|
|
1252
1263
|
id?: pulumi.Input<string>;
|
|
1264
|
+
/**
|
|
1265
|
+
* List of parameters that configure HTTP rate limiting behaviour (refer to the nested schema).
|
|
1266
|
+
*/
|
|
1267
|
+
ratelimit?: pulumi.Input<inputs.RulesetRuleRatelimit>;
|
|
1253
1268
|
/**
|
|
1254
1269
|
* Rule reference.
|
|
1255
1270
|
*/
|
|
1256
1271
|
ref?: pulumi.Input<string>;
|
|
1257
1272
|
version?: pulumi.Input<string>;
|
|
1258
1273
|
}
|
|
1259
|
-
export interface
|
|
1274
|
+
export interface RulesetRuleActionParameters {
|
|
1275
|
+
/**
|
|
1276
|
+
* List of HTTP header modifications to perform in the ruleset rule (refer to the nested schema).
|
|
1277
|
+
*/
|
|
1278
|
+
headers?: pulumi.Input<pulumi.Input<inputs.RulesetRuleActionParametersHeader>[]>;
|
|
1260
1279
|
/**
|
|
1261
1280
|
* Rule ID to apply the override to.
|
|
1262
1281
|
*/
|
|
1263
1282
|
id?: pulumi.Input<string>;
|
|
1264
1283
|
increment?: pulumi.Input<number>;
|
|
1284
|
+
/**
|
|
1285
|
+
* List of properties to configure WAF payload logging (refer to the nested schema).
|
|
1286
|
+
*/
|
|
1287
|
+
matchedData?: pulumi.Input<inputs.RulesetRuleActionParametersMatchedData>;
|
|
1265
1288
|
/**
|
|
1266
1289
|
* List of override configurations to apply to the ruleset (refer to the nested schema).
|
|
1267
1290
|
*/
|
|
1268
|
-
overrides?: pulumi.Input<inputs.
|
|
1291
|
+
overrides?: pulumi.Input<inputs.RulesetRuleActionParametersOverrides>;
|
|
1269
1292
|
/**
|
|
1270
1293
|
* Products to target with the actions. Valid values are `"bic"`, `"hot"`, `"ratelimit"`, `"securityLevel"`, `"uablock"`, `"waf"` or `"zonelockdown"`.
|
|
1271
1294
|
*/
|
|
1272
1295
|
products?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1273
1296
|
/**
|
|
1274
|
-
*
|
|
1297
|
+
* List of rule-based overrides (refer to the nested schema).
|
|
1298
|
+
*/
|
|
1299
|
+
rules?: pulumi.Input<{
|
|
1300
|
+
[key: string]: pulumi.Input<string>;
|
|
1301
|
+
}>;
|
|
1302
|
+
/**
|
|
1303
|
+
* Which ruleset ID to target.
|
|
1275
1304
|
*/
|
|
1276
1305
|
ruleset?: pulumi.Input<string>;
|
|
1306
|
+
/**
|
|
1307
|
+
* List of managed WAF rule IDs to target. Only valid when the "action" is set to skip.
|
|
1308
|
+
*/
|
|
1309
|
+
rulesets?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1277
1310
|
/**
|
|
1278
1311
|
* List of URI properties to configure for the ruleset rule when performing URL rewrite transformations (refer to the nested schema).
|
|
1279
1312
|
*/
|
|
1280
|
-
|
|
1313
|
+
uri?: pulumi.Input<inputs.RulesetRuleActionParametersUri>;
|
|
1281
1314
|
version?: pulumi.Input<string>;
|
|
1282
1315
|
}
|
|
1283
|
-
export interface
|
|
1316
|
+
export interface RulesetRuleActionParametersHeader {
|
|
1317
|
+
/**
|
|
1318
|
+
* Expression that defines the updated (dynamic) value of the URI path or query string component. Conflicts with `value`.
|
|
1319
|
+
*/
|
|
1320
|
+
expression?: pulumi.Input<string>;
|
|
1321
|
+
/**
|
|
1322
|
+
* Name of the HTTP request header to target.
|
|
1323
|
+
*/
|
|
1324
|
+
name?: pulumi.Input<string>;
|
|
1325
|
+
/**
|
|
1326
|
+
* Action to perform on the HTTP request header. Valid values are `"set"` or `"remove"`.
|
|
1327
|
+
*/
|
|
1328
|
+
operation?: pulumi.Input<string>;
|
|
1329
|
+
/**
|
|
1330
|
+
* Static string value of the updated URI path or query string component. Conflicts with `expression`.
|
|
1331
|
+
*/
|
|
1332
|
+
value?: pulumi.Input<string>;
|
|
1333
|
+
}
|
|
1334
|
+
export interface RulesetRuleActionParametersMatchedData {
|
|
1335
|
+
/**
|
|
1336
|
+
* Public key to use within WAF Ruleset payload logging to view the HTTP request parameters. You can generate a public key [using the `matched-data-cli` command-line tool](https://developers.cloudflare.com/waf/managed-rulesets/payload-logging/command-line/generate-key-pair) or [in the Cloudflare dashboard](https://developers.cloudflare.com/waf/managed-rulesets/payload-logging/configure).
|
|
1337
|
+
*/
|
|
1338
|
+
publicKey?: pulumi.Input<string>;
|
|
1339
|
+
}
|
|
1340
|
+
export interface RulesetRuleActionParametersOverrides {
|
|
1284
1341
|
/**
|
|
1285
1342
|
* List of tag-based overrides (refer to the nested schema).
|
|
1286
1343
|
*/
|
|
1287
|
-
categories?: pulumi.Input<pulumi.Input<inputs.
|
|
1344
|
+
categories?: pulumi.Input<pulumi.Input<inputs.RulesetRuleActionParametersOverridesCategory>[]>;
|
|
1288
1345
|
/**
|
|
1289
1346
|
* Defines if the current rule-level override enables or disables the rule.
|
|
1290
1347
|
*/
|
|
@@ -1292,9 +1349,9 @@ export interface RulesetRuleActionParameterOverrides {
|
|
|
1292
1349
|
/**
|
|
1293
1350
|
* List of rule-based overrides (refer to the nested schema).
|
|
1294
1351
|
*/
|
|
1295
|
-
rules?: pulumi.Input<pulumi.Input<inputs.
|
|
1352
|
+
rules?: pulumi.Input<pulumi.Input<inputs.RulesetRuleActionParametersOverridesRule>[]>;
|
|
1296
1353
|
}
|
|
1297
|
-
export interface
|
|
1354
|
+
export interface RulesetRuleActionParametersOverridesCategory {
|
|
1298
1355
|
/**
|
|
1299
1356
|
* Action to perform in the rule-level override. Valid values are `"block"`, `"challenge"`, `"ddosDynamic"`, `"execute"`, `"forceConnectionClose"`, `"jsChallenge"`, `"log"`, `"rewrite"`, `"score"`, or `"skip"`.
|
|
1300
1357
|
*/
|
|
@@ -1308,7 +1365,7 @@ export interface RulesetRuleActionParameterOverridesCategory {
|
|
|
1308
1365
|
*/
|
|
1309
1366
|
enabled?: pulumi.Input<boolean>;
|
|
1310
1367
|
}
|
|
1311
|
-
export interface
|
|
1368
|
+
export interface RulesetRuleActionParametersOverridesRule {
|
|
1312
1369
|
/**
|
|
1313
1370
|
* Action to perform in the rule-level override. Valid values are `"block"`, `"challenge"`, `"ddosDynamic"`, `"execute"`, `"forceConnectionClose"`, `"jsChallenge"`, `"log"`, `"rewrite"`, `"score"`, or `"skip"`.
|
|
1314
1371
|
*/
|
|
@@ -1326,18 +1383,18 @@ export interface RulesetRuleActionParameterOverridesRule {
|
|
|
1326
1383
|
*/
|
|
1327
1384
|
scoreThreshold?: pulumi.Input<number>;
|
|
1328
1385
|
}
|
|
1329
|
-
export interface
|
|
1386
|
+
export interface RulesetRuleActionParametersUri {
|
|
1330
1387
|
origin?: pulumi.Input<boolean>;
|
|
1331
1388
|
/**
|
|
1332
1389
|
* URI path configuration when performing a URL rewrite (refer to the nested schema).
|
|
1333
1390
|
*/
|
|
1334
|
-
|
|
1391
|
+
path?: pulumi.Input<inputs.RulesetRuleActionParametersUriPath>;
|
|
1335
1392
|
/**
|
|
1336
1393
|
* Query string configuration when performing a URL rewrite (refer to the nested schema).
|
|
1337
1394
|
*/
|
|
1338
|
-
|
|
1395
|
+
query?: pulumi.Input<inputs.RulesetRuleActionParametersUriQuery>;
|
|
1339
1396
|
}
|
|
1340
|
-
export interface
|
|
1397
|
+
export interface RulesetRuleActionParametersUriPath {
|
|
1341
1398
|
/**
|
|
1342
1399
|
* Expression that defines the updated (dynamic) value of the URI path or query string component. Conflicts with `value`.
|
|
1343
1400
|
*/
|
|
@@ -1347,7 +1404,7 @@ export interface RulesetRuleActionParameterUriPath {
|
|
|
1347
1404
|
*/
|
|
1348
1405
|
value?: pulumi.Input<string>;
|
|
1349
1406
|
}
|
|
1350
|
-
export interface
|
|
1407
|
+
export interface RulesetRuleActionParametersUriQuery {
|
|
1351
1408
|
/**
|
|
1352
1409
|
* Expression that defines the updated (dynamic) value of the URI path or query string component. Conflicts with `value`.
|
|
1353
1410
|
*/
|
|
@@ -1357,6 +1414,28 @@ export interface RulesetRuleActionParameterUriQuery {
|
|
|
1357
1414
|
*/
|
|
1358
1415
|
value?: pulumi.Input<string>;
|
|
1359
1416
|
}
|
|
1417
|
+
export interface RulesetRuleRatelimit {
|
|
1418
|
+
/**
|
|
1419
|
+
* List of parameters that define how Cloudflare tracks the request rate for this rule.
|
|
1420
|
+
*/
|
|
1421
|
+
characteristics?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1422
|
+
/**
|
|
1423
|
+
* Scope of the mitigation action. Allows you to specify an action scope different from the rule scope. Refer to the [rate limiting parameters documentation](https://developers.cloudflare.com/firewall/cf-rulesets/custom-rules/rate-limiting/parameters) for full details.
|
|
1424
|
+
*/
|
|
1425
|
+
mitigationExpression?: pulumi.Input<string>;
|
|
1426
|
+
/**
|
|
1427
|
+
* Once the request rate is reached, the Rate Limiting rule blocks further requests for the period of time defined in this field.
|
|
1428
|
+
*/
|
|
1429
|
+
mitigationTimeout?: pulumi.Input<number>;
|
|
1430
|
+
/**
|
|
1431
|
+
* The period of time to consider (in seconds) when evaluating the request rate.
|
|
1432
|
+
*/
|
|
1433
|
+
period?: pulumi.Input<number>;
|
|
1434
|
+
/**
|
|
1435
|
+
* The number of requests over the period of time that will trigger the Rate Limiting rule.
|
|
1436
|
+
*/
|
|
1437
|
+
requestsPerPeriod?: pulumi.Input<number>;
|
|
1438
|
+
}
|
|
1360
1439
|
export interface SpectrumApplicationDns {
|
|
1361
1440
|
/**
|
|
1362
1441
|
* Fully qualified domain name of the origin e.g. origin-ssh.example.com.
|
|
@@ -1383,10 +1462,81 @@ export interface SpectrumApplicationOriginPortRange {
|
|
|
1383
1462
|
*/
|
|
1384
1463
|
start: pulumi.Input<number>;
|
|
1385
1464
|
}
|
|
1465
|
+
export interface TeamsAccountAntivirus {
|
|
1466
|
+
enabledDownloadPhase: pulumi.Input<boolean>;
|
|
1467
|
+
enabledUploadPhase: pulumi.Input<boolean>;
|
|
1468
|
+
failClosed: pulumi.Input<boolean>;
|
|
1469
|
+
}
|
|
1470
|
+
export interface TeamsAccountBlockPage {
|
|
1471
|
+
/**
|
|
1472
|
+
* Hex code of block page background color.
|
|
1473
|
+
*/
|
|
1474
|
+
backgroundColor?: pulumi.Input<string>;
|
|
1475
|
+
/**
|
|
1476
|
+
* Indicator of enablement.
|
|
1477
|
+
*/
|
|
1478
|
+
enabled?: pulumi.Input<boolean>;
|
|
1479
|
+
/**
|
|
1480
|
+
* Block page header text.
|
|
1481
|
+
*/
|
|
1482
|
+
footerText?: pulumi.Input<string>;
|
|
1483
|
+
/**
|
|
1484
|
+
* Block page footer text.
|
|
1485
|
+
*/
|
|
1486
|
+
headerText?: pulumi.Input<string>;
|
|
1487
|
+
/**
|
|
1488
|
+
* URL of block page logo.
|
|
1489
|
+
*/
|
|
1490
|
+
logoPath?: pulumi.Input<string>;
|
|
1491
|
+
/**
|
|
1492
|
+
* Name of block page configuration.
|
|
1493
|
+
*/
|
|
1494
|
+
name?: pulumi.Input<string>;
|
|
1495
|
+
}
|
|
1386
1496
|
export interface TeamsLocationNetwork {
|
|
1497
|
+
/**
|
|
1498
|
+
* ID of the teams location.
|
|
1499
|
+
*/
|
|
1387
1500
|
id?: pulumi.Input<string>;
|
|
1388
1501
|
network: pulumi.Input<string>;
|
|
1389
1502
|
}
|
|
1503
|
+
export interface TeamsRuleRuleSettings {
|
|
1504
|
+
bisoAdminControls?: pulumi.Input<inputs.TeamsRuleRuleSettingsBisoAdminControls>;
|
|
1505
|
+
/**
|
|
1506
|
+
* Indicator of block page enablement.
|
|
1507
|
+
*/
|
|
1508
|
+
blockPageEnabled?: pulumi.Input<boolean>;
|
|
1509
|
+
/**
|
|
1510
|
+
* The displayed reason for a user being blocked.
|
|
1511
|
+
*/
|
|
1512
|
+
blockPageReason?: pulumi.Input<string>;
|
|
1513
|
+
/**
|
|
1514
|
+
* Settings to forward layer 4 traffic.
|
|
1515
|
+
*/
|
|
1516
|
+
l4override?: pulumi.Input<inputs.TeamsRuleRuleSettingsL4override>;
|
|
1517
|
+
/**
|
|
1518
|
+
* The host to override matching DNS queries with.
|
|
1519
|
+
*/
|
|
1520
|
+
overrideHost?: pulumi.Input<string>;
|
|
1521
|
+
/**
|
|
1522
|
+
* The IPs to override matching DNS queries with.
|
|
1523
|
+
*/
|
|
1524
|
+
overrideIps?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1525
|
+
}
|
|
1526
|
+
export interface TeamsRuleRuleSettingsBisoAdminControls {
|
|
1527
|
+
disableCopyPaste?: pulumi.Input<boolean>;
|
|
1528
|
+
disablePrinting?: pulumi.Input<boolean>;
|
|
1529
|
+
}
|
|
1530
|
+
export interface TeamsRuleRuleSettingsL4override {
|
|
1531
|
+
/**
|
|
1532
|
+
* Override IP to forward traffic to.
|
|
1533
|
+
*/
|
|
1534
|
+
ip: pulumi.Input<string>;
|
|
1535
|
+
/**
|
|
1536
|
+
* Override Port to forward traffic to.
|
|
1537
|
+
*/
|
|
1538
|
+
port: pulumi.Input<number>;
|
|
1539
|
+
}
|
|
1390
1540
|
export interface WorkerScriptKvNamespaceBinding {
|
|
1391
1541
|
/**
|
|
1392
1542
|
* The global variable for the binding in your Worker code.
|