@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/types/output.d.ts
CHANGED
|
@@ -205,6 +205,17 @@ export interface AccessIdentityProviderConfig {
|
|
|
205
205
|
supportGroups?: boolean;
|
|
206
206
|
tokenUrl?: string;
|
|
207
207
|
}
|
|
208
|
+
export interface AccessPolicyApprovalGroup {
|
|
209
|
+
/**
|
|
210
|
+
* Number of approvals needed.
|
|
211
|
+
*/
|
|
212
|
+
approvalsNeeded: number;
|
|
213
|
+
/**
|
|
214
|
+
* List of emails to request approval from.
|
|
215
|
+
*/
|
|
216
|
+
emailAddresses?: string[];
|
|
217
|
+
emailListUuid?: string;
|
|
218
|
+
}
|
|
208
219
|
export interface AccessPolicyExclude {
|
|
209
220
|
anyValidServiceToken?: boolean;
|
|
210
221
|
authMethod?: string;
|
|
@@ -1336,7 +1347,7 @@ export interface RulesetRule {
|
|
|
1336
1347
|
/**
|
|
1337
1348
|
* List of parameters that configure the behavior of the ruleset rule action (refer to the nested schema).
|
|
1338
1349
|
*/
|
|
1339
|
-
actionParameters?: outputs.
|
|
1350
|
+
actionParameters?: outputs.RulesetRuleActionParameters;
|
|
1340
1351
|
/**
|
|
1341
1352
|
* Brief summary of the ruleset rule and its intended use.
|
|
1342
1353
|
*/
|
|
@@ -1353,41 +1364,87 @@ export interface RulesetRule {
|
|
|
1353
1364
|
* Rule ID to apply the override to.
|
|
1354
1365
|
*/
|
|
1355
1366
|
id: string;
|
|
1367
|
+
/**
|
|
1368
|
+
* List of parameters that configure HTTP rate limiting behaviour (refer to the nested schema).
|
|
1369
|
+
*/
|
|
1370
|
+
ratelimit?: outputs.RulesetRuleRatelimit;
|
|
1356
1371
|
/**
|
|
1357
1372
|
* Rule reference.
|
|
1358
1373
|
*/
|
|
1359
1374
|
ref: string;
|
|
1360
1375
|
version: string;
|
|
1361
1376
|
}
|
|
1362
|
-
export interface
|
|
1377
|
+
export interface RulesetRuleActionParameters {
|
|
1378
|
+
/**
|
|
1379
|
+
* List of HTTP header modifications to perform in the ruleset rule (refer to the nested schema).
|
|
1380
|
+
*/
|
|
1381
|
+
headers?: outputs.RulesetRuleActionParametersHeader[];
|
|
1363
1382
|
/**
|
|
1364
1383
|
* Rule ID to apply the override to.
|
|
1365
1384
|
*/
|
|
1366
1385
|
id?: string;
|
|
1367
1386
|
increment?: number;
|
|
1387
|
+
/**
|
|
1388
|
+
* List of properties to configure WAF payload logging (refer to the nested schema).
|
|
1389
|
+
*/
|
|
1390
|
+
matchedData?: outputs.RulesetRuleActionParametersMatchedData;
|
|
1368
1391
|
/**
|
|
1369
1392
|
* List of override configurations to apply to the ruleset (refer to the nested schema).
|
|
1370
1393
|
*/
|
|
1371
|
-
overrides?: outputs.
|
|
1394
|
+
overrides?: outputs.RulesetRuleActionParametersOverrides;
|
|
1372
1395
|
/**
|
|
1373
1396
|
* Products to target with the actions. Valid values are `"bic"`, `"hot"`, `"ratelimit"`, `"securityLevel"`, `"uablock"`, `"waf"` or `"zonelockdown"`.
|
|
1374
1397
|
*/
|
|
1375
1398
|
products?: string[];
|
|
1376
1399
|
/**
|
|
1377
|
-
*
|
|
1400
|
+
* List of rule-based overrides (refer to the nested schema).
|
|
1401
|
+
*/
|
|
1402
|
+
rules?: {
|
|
1403
|
+
[key: string]: string;
|
|
1404
|
+
};
|
|
1405
|
+
/**
|
|
1406
|
+
* Which ruleset ID to target.
|
|
1378
1407
|
*/
|
|
1379
1408
|
ruleset?: string;
|
|
1409
|
+
/**
|
|
1410
|
+
* List of managed WAF rule IDs to target. Only valid when the "action" is set to skip.
|
|
1411
|
+
*/
|
|
1412
|
+
rulesets?: string[];
|
|
1380
1413
|
/**
|
|
1381
1414
|
* List of URI properties to configure for the ruleset rule when performing URL rewrite transformations (refer to the nested schema).
|
|
1382
1415
|
*/
|
|
1383
|
-
|
|
1384
|
-
version
|
|
1416
|
+
uri?: outputs.RulesetRuleActionParametersUri;
|
|
1417
|
+
version: string;
|
|
1418
|
+
}
|
|
1419
|
+
export interface RulesetRuleActionParametersHeader {
|
|
1420
|
+
/**
|
|
1421
|
+
* Expression that defines the updated (dynamic) value of the URI path or query string component. Conflicts with `value`.
|
|
1422
|
+
*/
|
|
1423
|
+
expression?: string;
|
|
1424
|
+
/**
|
|
1425
|
+
* Name of the HTTP request header to target.
|
|
1426
|
+
*/
|
|
1427
|
+
name?: string;
|
|
1428
|
+
/**
|
|
1429
|
+
* Action to perform on the HTTP request header. Valid values are `"set"` or `"remove"`.
|
|
1430
|
+
*/
|
|
1431
|
+
operation?: string;
|
|
1432
|
+
/**
|
|
1433
|
+
* Static string value of the updated URI path or query string component. Conflicts with `expression`.
|
|
1434
|
+
*/
|
|
1435
|
+
value?: string;
|
|
1436
|
+
}
|
|
1437
|
+
export interface RulesetRuleActionParametersMatchedData {
|
|
1438
|
+
/**
|
|
1439
|
+
* 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).
|
|
1440
|
+
*/
|
|
1441
|
+
publicKey?: string;
|
|
1385
1442
|
}
|
|
1386
|
-
export interface
|
|
1443
|
+
export interface RulesetRuleActionParametersOverrides {
|
|
1387
1444
|
/**
|
|
1388
1445
|
* List of tag-based overrides (refer to the nested schema).
|
|
1389
1446
|
*/
|
|
1390
|
-
categories?: outputs.
|
|
1447
|
+
categories?: outputs.RulesetRuleActionParametersOverridesCategory[];
|
|
1391
1448
|
/**
|
|
1392
1449
|
* Defines if the current rule-level override enables or disables the rule.
|
|
1393
1450
|
*/
|
|
@@ -1395,9 +1452,9 @@ export interface RulesetRuleActionParameterOverrides {
|
|
|
1395
1452
|
/**
|
|
1396
1453
|
* List of rule-based overrides (refer to the nested schema).
|
|
1397
1454
|
*/
|
|
1398
|
-
rules?: outputs.
|
|
1455
|
+
rules?: outputs.RulesetRuleActionParametersOverridesRule[];
|
|
1399
1456
|
}
|
|
1400
|
-
export interface
|
|
1457
|
+
export interface RulesetRuleActionParametersOverridesCategory {
|
|
1401
1458
|
/**
|
|
1402
1459
|
* Action to perform in the rule-level override. Valid values are `"block"`, `"challenge"`, `"ddosDynamic"`, `"execute"`, `"forceConnectionClose"`, `"jsChallenge"`, `"log"`, `"rewrite"`, `"score"`, or `"skip"`.
|
|
1403
1460
|
*/
|
|
@@ -1411,7 +1468,7 @@ export interface RulesetRuleActionParameterOverridesCategory {
|
|
|
1411
1468
|
*/
|
|
1412
1469
|
enabled?: boolean;
|
|
1413
1470
|
}
|
|
1414
|
-
export interface
|
|
1471
|
+
export interface RulesetRuleActionParametersOverridesRule {
|
|
1415
1472
|
/**
|
|
1416
1473
|
* Action to perform in the rule-level override. Valid values are `"block"`, `"challenge"`, `"ddosDynamic"`, `"execute"`, `"forceConnectionClose"`, `"jsChallenge"`, `"log"`, `"rewrite"`, `"score"`, or `"skip"`.
|
|
1417
1474
|
*/
|
|
@@ -1429,18 +1486,18 @@ export interface RulesetRuleActionParameterOverridesRule {
|
|
|
1429
1486
|
*/
|
|
1430
1487
|
scoreThreshold?: number;
|
|
1431
1488
|
}
|
|
1432
|
-
export interface
|
|
1489
|
+
export interface RulesetRuleActionParametersUri {
|
|
1433
1490
|
origin?: boolean;
|
|
1434
1491
|
/**
|
|
1435
1492
|
* URI path configuration when performing a URL rewrite (refer to the nested schema).
|
|
1436
1493
|
*/
|
|
1437
|
-
|
|
1494
|
+
path?: outputs.RulesetRuleActionParametersUriPath;
|
|
1438
1495
|
/**
|
|
1439
1496
|
* Query string configuration when performing a URL rewrite (refer to the nested schema).
|
|
1440
1497
|
*/
|
|
1441
|
-
|
|
1498
|
+
query?: outputs.RulesetRuleActionParametersUriQuery;
|
|
1442
1499
|
}
|
|
1443
|
-
export interface
|
|
1500
|
+
export interface RulesetRuleActionParametersUriPath {
|
|
1444
1501
|
/**
|
|
1445
1502
|
* Expression that defines the updated (dynamic) value of the URI path or query string component. Conflicts with `value`.
|
|
1446
1503
|
*/
|
|
@@ -1450,7 +1507,7 @@ export interface RulesetRuleActionParameterUriPath {
|
|
|
1450
1507
|
*/
|
|
1451
1508
|
value?: string;
|
|
1452
1509
|
}
|
|
1453
|
-
export interface
|
|
1510
|
+
export interface RulesetRuleActionParametersUriQuery {
|
|
1454
1511
|
/**
|
|
1455
1512
|
* Expression that defines the updated (dynamic) value of the URI path or query string component. Conflicts with `value`.
|
|
1456
1513
|
*/
|
|
@@ -1460,6 +1517,28 @@ export interface RulesetRuleActionParameterUriQuery {
|
|
|
1460
1517
|
*/
|
|
1461
1518
|
value?: string;
|
|
1462
1519
|
}
|
|
1520
|
+
export interface RulesetRuleRatelimit {
|
|
1521
|
+
/**
|
|
1522
|
+
* List of parameters that define how Cloudflare tracks the request rate for this rule.
|
|
1523
|
+
*/
|
|
1524
|
+
characteristics?: string[];
|
|
1525
|
+
/**
|
|
1526
|
+
* 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.
|
|
1527
|
+
*/
|
|
1528
|
+
mitigationExpression?: string;
|
|
1529
|
+
/**
|
|
1530
|
+
* Once the request rate is reached, the Rate Limiting rule blocks further requests for the period of time defined in this field.
|
|
1531
|
+
*/
|
|
1532
|
+
mitigationTimeout?: number;
|
|
1533
|
+
/**
|
|
1534
|
+
* The period of time to consider (in seconds) when evaluating the request rate.
|
|
1535
|
+
*/
|
|
1536
|
+
period?: number;
|
|
1537
|
+
/**
|
|
1538
|
+
* The number of requests over the period of time that will trigger the Rate Limiting rule.
|
|
1539
|
+
*/
|
|
1540
|
+
requestsPerPeriod?: number;
|
|
1541
|
+
}
|
|
1463
1542
|
export interface SpectrumApplicationDns {
|
|
1464
1543
|
/**
|
|
1465
1544
|
* Fully qualified domain name of the origin e.g. origin-ssh.example.com.
|
|
@@ -1486,10 +1565,81 @@ export interface SpectrumApplicationOriginPortRange {
|
|
|
1486
1565
|
*/
|
|
1487
1566
|
start: number;
|
|
1488
1567
|
}
|
|
1568
|
+
export interface TeamsAccountAntivirus {
|
|
1569
|
+
enabledDownloadPhase: boolean;
|
|
1570
|
+
enabledUploadPhase: boolean;
|
|
1571
|
+
failClosed: boolean;
|
|
1572
|
+
}
|
|
1573
|
+
export interface TeamsAccountBlockPage {
|
|
1574
|
+
/**
|
|
1575
|
+
* Hex code of block page background color.
|
|
1576
|
+
*/
|
|
1577
|
+
backgroundColor?: string;
|
|
1578
|
+
/**
|
|
1579
|
+
* Indicator of enablement.
|
|
1580
|
+
*/
|
|
1581
|
+
enabled?: boolean;
|
|
1582
|
+
/**
|
|
1583
|
+
* Block page header text.
|
|
1584
|
+
*/
|
|
1585
|
+
footerText?: string;
|
|
1586
|
+
/**
|
|
1587
|
+
* Block page footer text.
|
|
1588
|
+
*/
|
|
1589
|
+
headerText?: string;
|
|
1590
|
+
/**
|
|
1591
|
+
* URL of block page logo.
|
|
1592
|
+
*/
|
|
1593
|
+
logoPath?: string;
|
|
1594
|
+
/**
|
|
1595
|
+
* Name of block page configuration.
|
|
1596
|
+
*/
|
|
1597
|
+
name?: string;
|
|
1598
|
+
}
|
|
1489
1599
|
export interface TeamsLocationNetwork {
|
|
1600
|
+
/**
|
|
1601
|
+
* ID of the teams location.
|
|
1602
|
+
*/
|
|
1490
1603
|
id: string;
|
|
1491
1604
|
network: string;
|
|
1492
1605
|
}
|
|
1606
|
+
export interface TeamsRuleRuleSettings {
|
|
1607
|
+
bisoAdminControls?: outputs.TeamsRuleRuleSettingsBisoAdminControls;
|
|
1608
|
+
/**
|
|
1609
|
+
* Indicator of block page enablement.
|
|
1610
|
+
*/
|
|
1611
|
+
blockPageEnabled?: boolean;
|
|
1612
|
+
/**
|
|
1613
|
+
* The displayed reason for a user being blocked.
|
|
1614
|
+
*/
|
|
1615
|
+
blockPageReason?: string;
|
|
1616
|
+
/**
|
|
1617
|
+
* Settings to forward layer 4 traffic.
|
|
1618
|
+
*/
|
|
1619
|
+
l4override?: outputs.TeamsRuleRuleSettingsL4override;
|
|
1620
|
+
/**
|
|
1621
|
+
* The host to override matching DNS queries with.
|
|
1622
|
+
*/
|
|
1623
|
+
overrideHost?: string;
|
|
1624
|
+
/**
|
|
1625
|
+
* The IPs to override matching DNS queries with.
|
|
1626
|
+
*/
|
|
1627
|
+
overrideIps?: string[];
|
|
1628
|
+
}
|
|
1629
|
+
export interface TeamsRuleRuleSettingsBisoAdminControls {
|
|
1630
|
+
disableCopyPaste?: boolean;
|
|
1631
|
+
disablePrinting?: boolean;
|
|
1632
|
+
}
|
|
1633
|
+
export interface TeamsRuleRuleSettingsL4override {
|
|
1634
|
+
/**
|
|
1635
|
+
* Override IP to forward traffic to.
|
|
1636
|
+
*/
|
|
1637
|
+
ip: string;
|
|
1638
|
+
/**
|
|
1639
|
+
* Override Port to forward traffic to.
|
|
1640
|
+
*/
|
|
1641
|
+
port: number;
|
|
1642
|
+
}
|
|
1493
1643
|
export interface WorkerScriptKvNamespaceBinding {
|
|
1494
1644
|
/**
|
|
1495
1645
|
* The global variable for the binding in your Worker code.
|