@pulumi/cloudflare 4.16.0 → 5.0.0-alpha.1678741462
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/README.md +1 -1
- package/accessRule.d.ts +6 -6
- package/accountMember.d.ts +2 -2
- package/accountMember.js +3 -0
- package/accountMember.js.map +1 -1
- package/config/vars.d.ts +0 -5
- package/config/vars.js +0 -6
- package/config/vars.js.map +1 -1
- package/index.d.ts +3 -30
- package/index.js +8 -47
- package/index.js.map +1 -1
- package/loadBalancer.d.ts +6 -12
- package/loadBalancerMonitor.d.ts +3 -3
- package/loadBalancerMonitor.js +3 -0
- package/loadBalancerMonitor.js.map +1 -1
- package/loadBalancerPool.d.ts +2 -2
- package/loadBalancerPool.js +3 -0
- package/loadBalancerPool.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/provider.d.ts +0 -14
- package/provider.js +0 -1
- package/provider.js.map +1 -1
- package/spectrumApplication.d.ts +16 -21
- package/spectrumApplication.js +7 -2
- package/spectrumApplication.js.map +1 -1
- package/teamsAccount.d.ts +12 -0
- package/teamsAccount.js +2 -0
- package/teamsAccount.js.map +1 -1
- package/{argoTunnel.d.ts → tunnel.d.ts} +28 -30
- package/{argoTunnel.js → tunnel.js} +16 -18
- package/tunnel.js.map +1 -0
- package/tunnelConfig.d.ts +0 -57
- package/tunnelConfig.js +0 -57
- package/tunnelConfig.js.map +1 -1
- package/tunnelRoute.d.ts +0 -29
- package/tunnelRoute.js +0 -29
- package/tunnelRoute.js.map +1 -1
- package/types/input.d.ts +74 -98
- package/types/output.d.ts +74 -150
- package/waitingRoom.d.ts +3 -3
- package/workerScript.d.ts +2 -2
- package/workerScript.js +3 -0
- package/workerScript.js.map +1 -1
- package/workersKv.d.ts +1 -1
- package/workersKv.js +3 -0
- package/workersKv.js.map +1 -1
- package/workersKvNamespace.d.ts +1 -1
- package/workersKvNamespace.js +3 -0
- package/workersKvNamespace.js.map +1 -1
- package/zone.d.ts +2 -2
- package/zone.js +3 -0
- package/zone.js.map +1 -1
- package/accessBookmark.d.ts +0 -130
- package/accessBookmark.js +0 -87
- package/accessBookmark.js.map +0 -1
- package/argoTunnel.js.map +0 -1
- package/getWafGroups.d.ts +0 -100
- package/getWafGroups.js +0 -61
- package/getWafGroups.js.map +0 -1
- package/getWafPackages.d.ts +0 -92
- package/getWafPackages.js +0 -64
- package/getWafPackages.js.map +0 -1
- package/getWafRules.d.ts +0 -106
- package/getWafRules.js +0 -67
- package/getWafRules.js.map +0 -1
- package/ipList.d.ts +0 -125
- package/ipList.js +0 -102
- package/ipList.js.map +0 -1
- package/wafGroup.d.ts +0 -108
- package/wafGroup.js +0 -85
- package/wafGroup.js.map +0 -1
- package/wafOverride.d.ts +0 -189
- package/wafOverride.js +0 -108
- package/wafOverride.js.map +0 -1
- package/wafPackage.d.ts +0 -109
- package/wafPackage.js +0 -86
- package/wafPackage.js.map +0 -1
- package/wafRule.d.ts +0 -116
- package/wafRule.js +0 -90
- package/wafRule.js.map +0 -1
package/accessBookmark.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
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
|
-
exports.AccessBookmark = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* ## Example Usage
|
|
10
|
-
*
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
14
|
-
*
|
|
15
|
-
* const myBookmarkApp = new cloudflare.AccessBookmark("myBookmarkApp", {
|
|
16
|
-
* accountId: "f037e56e89293a057740de681ac9abbe",
|
|
17
|
-
* appLauncherVisible: true,
|
|
18
|
-
* domain: "example.com",
|
|
19
|
-
* logoUrl: "https://example.com/example.png",
|
|
20
|
-
* name: "My Bookmark App",
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* ## Import
|
|
25
|
-
*
|
|
26
|
-
* ```sh
|
|
27
|
-
* $ pulumi import cloudflare:index/accessBookmark:AccessBookmark example <account_id>/<bookmark_id>
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
class AccessBookmark extends pulumi.CustomResource {
|
|
31
|
-
/**
|
|
32
|
-
* Get an existing AccessBookmark resource's state with the given name, ID, and optional extra
|
|
33
|
-
* properties used to qualify the lookup.
|
|
34
|
-
*
|
|
35
|
-
* @param name The _unique_ name of the resulting resource.
|
|
36
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
-
* @param state Any extra arguments used during the lookup.
|
|
38
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
-
*/
|
|
40
|
-
static get(name, id, state, opts) {
|
|
41
|
-
return new AccessBookmark(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Returns true if the given object is an instance of AccessBookmark. This is designed to work even
|
|
45
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
46
|
-
*/
|
|
47
|
-
static isInstance(obj) {
|
|
48
|
-
if (obj === undefined || obj === null) {
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
return obj['__pulumiType'] === AccessBookmark.__pulumiType;
|
|
52
|
-
}
|
|
53
|
-
constructor(name, argsOrState, opts) {
|
|
54
|
-
let resourceInputs = {};
|
|
55
|
-
opts = opts || {};
|
|
56
|
-
if (opts.id) {
|
|
57
|
-
const state = argsOrState;
|
|
58
|
-
resourceInputs["accountId"] = state ? state.accountId : undefined;
|
|
59
|
-
resourceInputs["appLauncherVisible"] = state ? state.appLauncherVisible : undefined;
|
|
60
|
-
resourceInputs["domain"] = state ? state.domain : undefined;
|
|
61
|
-
resourceInputs["logoUrl"] = state ? state.logoUrl : undefined;
|
|
62
|
-
resourceInputs["name"] = state ? state.name : undefined;
|
|
63
|
-
resourceInputs["zoneId"] = state ? state.zoneId : undefined;
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
const args = argsOrState;
|
|
67
|
-
if ((!args || args.domain === undefined) && !opts.urn) {
|
|
68
|
-
throw new Error("Missing required property 'domain'");
|
|
69
|
-
}
|
|
70
|
-
if ((!args || args.name === undefined) && !opts.urn) {
|
|
71
|
-
throw new Error("Missing required property 'name'");
|
|
72
|
-
}
|
|
73
|
-
resourceInputs["accountId"] = args ? args.accountId : undefined;
|
|
74
|
-
resourceInputs["appLauncherVisible"] = args ? args.appLauncherVisible : undefined;
|
|
75
|
-
resourceInputs["domain"] = args ? args.domain : undefined;
|
|
76
|
-
resourceInputs["logoUrl"] = args ? args.logoUrl : undefined;
|
|
77
|
-
resourceInputs["name"] = args ? args.name : undefined;
|
|
78
|
-
resourceInputs["zoneId"] = args ? args.zoneId : undefined;
|
|
79
|
-
}
|
|
80
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
81
|
-
super(AccessBookmark.__pulumiType, name, resourceInputs, opts);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
exports.AccessBookmark = AccessBookmark;
|
|
85
|
-
/** @internal */
|
|
86
|
-
AccessBookmark.__pulumiType = 'cloudflare:index/accessBookmark:AccessBookmark';
|
|
87
|
-
//# sourceMappingURL=accessBookmark.js.map
|
package/accessBookmark.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accessBookmark.js","sourceRoot":"","sources":["../accessBookmark.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,cAAe,SAAQ,MAAM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AAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACjF,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,QAAQ,EAAE,aAAa,CAAC,EAAE,CAAC;QAC1E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAxFL,gCAyFC;AA3EG,gBAAgB;AACO,uBAAY,GAAG,wCAAwC,CAAC"}
|
package/getWafGroups.d.ts
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import * as inputs from "./types/input";
|
|
3
|
-
import * as outputs from "./types/output";
|
|
4
|
-
/**
|
|
5
|
-
* Use this data source to look up [WAF Rule Groups](https://api.cloudflare.com/#waf-rule-groups-properties).
|
|
6
|
-
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* The example below matches all WAF Rule Groups that contain the word `example` and are currently `on`. The matched WAF Rule Groups are then returned as output.
|
|
10
|
-
*
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
14
|
-
*
|
|
15
|
-
* const test = cloudflare.getWafGroups({
|
|
16
|
-
* filter: {
|
|
17
|
-
* name: ".*example.*",
|
|
18
|
-
* mode: "on",
|
|
19
|
-
* },
|
|
20
|
-
* });
|
|
21
|
-
* export const wafGroups = test.then(test => test.groups);
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export declare function getWafGroups(args: GetWafGroupsArgs, opts?: pulumi.InvokeOptions): Promise<GetWafGroupsResult>;
|
|
25
|
-
/**
|
|
26
|
-
* A collection of arguments for invoking getWafGroups.
|
|
27
|
-
*/
|
|
28
|
-
export interface GetWafGroupsArgs {
|
|
29
|
-
/**
|
|
30
|
-
* One or more values used to look up WAF Rule Groups. If more than one value is given all
|
|
31
|
-
* values must match in order to be included, see below for full list.
|
|
32
|
-
*/
|
|
33
|
-
filter?: inputs.GetWafGroupsFilter;
|
|
34
|
-
/**
|
|
35
|
-
* The ID of the WAF Rule Package in which to search for the WAF Rule Groups.
|
|
36
|
-
*/
|
|
37
|
-
packageId?: string;
|
|
38
|
-
/**
|
|
39
|
-
* The ID of the DNS zone in which to search for the WAF Rule Groups.
|
|
40
|
-
*/
|
|
41
|
-
zoneId: string;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* A collection of values returned by getWafGroups.
|
|
45
|
-
*/
|
|
46
|
-
export interface GetWafGroupsResult {
|
|
47
|
-
readonly filter?: outputs.GetWafGroupsFilter;
|
|
48
|
-
/**
|
|
49
|
-
* A map of WAF Rule Groups details. Full list below:
|
|
50
|
-
*/
|
|
51
|
-
readonly groups: outputs.GetWafGroupsGroup[];
|
|
52
|
-
/**
|
|
53
|
-
* The provider-assigned unique ID for this managed resource.
|
|
54
|
-
*/
|
|
55
|
-
readonly id: string;
|
|
56
|
-
/**
|
|
57
|
-
* The ID of the WAF Rule Package that contains the WAF Rule Group
|
|
58
|
-
*/
|
|
59
|
-
readonly packageId?: string;
|
|
60
|
-
readonly zoneId: string;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Use this data source to look up [WAF Rule Groups](https://api.cloudflare.com/#waf-rule-groups-properties).
|
|
64
|
-
*
|
|
65
|
-
* ## Example Usage
|
|
66
|
-
*
|
|
67
|
-
* The example below matches all WAF Rule Groups that contain the word `example` and are currently `on`. The matched WAF Rule Groups are then returned as output.
|
|
68
|
-
*
|
|
69
|
-
* ```typescript
|
|
70
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
71
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
72
|
-
*
|
|
73
|
-
* const test = cloudflare.getWafGroups({
|
|
74
|
-
* filter: {
|
|
75
|
-
* name: ".*example.*",
|
|
76
|
-
* mode: "on",
|
|
77
|
-
* },
|
|
78
|
-
* });
|
|
79
|
-
* export const wafGroups = test.then(test => test.groups);
|
|
80
|
-
* ```
|
|
81
|
-
*/
|
|
82
|
-
export declare function getWafGroupsOutput(args: GetWafGroupsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetWafGroupsResult>;
|
|
83
|
-
/**
|
|
84
|
-
* A collection of arguments for invoking getWafGroups.
|
|
85
|
-
*/
|
|
86
|
-
export interface GetWafGroupsOutputArgs {
|
|
87
|
-
/**
|
|
88
|
-
* One or more values used to look up WAF Rule Groups. If more than one value is given all
|
|
89
|
-
* values must match in order to be included, see below for full list.
|
|
90
|
-
*/
|
|
91
|
-
filter?: pulumi.Input<inputs.GetWafGroupsFilterArgs>;
|
|
92
|
-
/**
|
|
93
|
-
* The ID of the WAF Rule Package in which to search for the WAF Rule Groups.
|
|
94
|
-
*/
|
|
95
|
-
packageId?: pulumi.Input<string>;
|
|
96
|
-
/**
|
|
97
|
-
* The ID of the DNS zone in which to search for the WAF Rule Groups.
|
|
98
|
-
*/
|
|
99
|
-
zoneId: pulumi.Input<string>;
|
|
100
|
-
}
|
package/getWafGroups.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
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
|
-
exports.getWafGroupsOutput = exports.getWafGroups = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Use this data source to look up [WAF Rule Groups](https://api.cloudflare.com/#waf-rule-groups-properties).
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* The example below matches all WAF Rule Groups that contain the word `example` and are currently `on`. The matched WAF Rule Groups are then returned as output.
|
|
14
|
-
*
|
|
15
|
-
* ```typescript
|
|
16
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
18
|
-
*
|
|
19
|
-
* const test = cloudflare.getWafGroups({
|
|
20
|
-
* filter: {
|
|
21
|
-
* name: ".*example.*",
|
|
22
|
-
* mode: "on",
|
|
23
|
-
* },
|
|
24
|
-
* });
|
|
25
|
-
* export const wafGroups = test.then(test => test.groups);
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
function getWafGroups(args, opts) {
|
|
29
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
30
|
-
return pulumi.runtime.invoke("cloudflare:index/getWafGroups:getWafGroups", {
|
|
31
|
-
"filter": args.filter,
|
|
32
|
-
"packageId": args.packageId,
|
|
33
|
-
"zoneId": args.zoneId,
|
|
34
|
-
}, opts);
|
|
35
|
-
}
|
|
36
|
-
exports.getWafGroups = getWafGroups;
|
|
37
|
-
/**
|
|
38
|
-
* Use this data source to look up [WAF Rule Groups](https://api.cloudflare.com/#waf-rule-groups-properties).
|
|
39
|
-
*
|
|
40
|
-
* ## Example Usage
|
|
41
|
-
*
|
|
42
|
-
* The example below matches all WAF Rule Groups that contain the word `example` and are currently `on`. The matched WAF Rule Groups are then returned as output.
|
|
43
|
-
*
|
|
44
|
-
* ```typescript
|
|
45
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
47
|
-
*
|
|
48
|
-
* const test = cloudflare.getWafGroups({
|
|
49
|
-
* filter: {
|
|
50
|
-
* name: ".*example.*",
|
|
51
|
-
* mode: "on",
|
|
52
|
-
* },
|
|
53
|
-
* });
|
|
54
|
-
* export const wafGroups = test.then(test => test.groups);
|
|
55
|
-
* ```
|
|
56
|
-
*/
|
|
57
|
-
function getWafGroupsOutput(args, opts) {
|
|
58
|
-
return pulumi.output(args).apply((a) => getWafGroups(a, opts));
|
|
59
|
-
}
|
|
60
|
-
exports.getWafGroupsOutput = getWafGroupsOutput;
|
|
61
|
-
//# sourceMappingURL=getWafGroups.js.map
|
package/getWafGroups.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getWafGroups.js","sourceRoot":"","sources":["../getWafGroups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAE5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,oCAQC;AAwCD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,gDAEC"}
|
package/getWafPackages.d.ts
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import * as inputs from "./types/input";
|
|
3
|
-
import * as outputs from "./types/output";
|
|
4
|
-
/**
|
|
5
|
-
* Use this data source to look up [WAF Rule Packages](https://api.cloudflare.com/#waf-rule-packages-properties).
|
|
6
|
-
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* The example below matches all `high` sensitivity WAF Rule Packages, with a `challenge` action mode and an `anomaly` detection mode, that contain the word `example`. The matched WAF Rule Packages are then returned as output.
|
|
10
|
-
*
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
14
|
-
*
|
|
15
|
-
* const test = cloudflare.getWafPackages({
|
|
16
|
-
* filter: {
|
|
17
|
-
* name: ".*example.*",
|
|
18
|
-
* detectionMode: "anomaly",
|
|
19
|
-
* sensitivity: "high",
|
|
20
|
-
* actionMode: "challenge",
|
|
21
|
-
* },
|
|
22
|
-
* });
|
|
23
|
-
* export const wafPackages = test.then(test => test.packages);
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
export declare function getWafPackages(args: GetWafPackagesArgs, opts?: pulumi.InvokeOptions): Promise<GetWafPackagesResult>;
|
|
27
|
-
/**
|
|
28
|
-
* A collection of arguments for invoking getWafPackages.
|
|
29
|
-
*/
|
|
30
|
-
export interface GetWafPackagesArgs {
|
|
31
|
-
/**
|
|
32
|
-
* One or more values used to look up WAF Rule Packages. If more than one value is given all
|
|
33
|
-
* values must match in order to be included, see below for full list.
|
|
34
|
-
*/
|
|
35
|
-
filter?: inputs.GetWafPackagesFilter;
|
|
36
|
-
/**
|
|
37
|
-
* The ID of the DNS zone in which to search for the WAF Rule Packages.
|
|
38
|
-
*/
|
|
39
|
-
zoneId: string;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* A collection of values returned by getWafPackages.
|
|
43
|
-
*/
|
|
44
|
-
export interface GetWafPackagesResult {
|
|
45
|
-
readonly filter?: outputs.GetWafPackagesFilter;
|
|
46
|
-
/**
|
|
47
|
-
* The provider-assigned unique ID for this managed resource.
|
|
48
|
-
*/
|
|
49
|
-
readonly id: string;
|
|
50
|
-
/**
|
|
51
|
-
* A map of WAF Rule Packages details. Full list below:
|
|
52
|
-
*/
|
|
53
|
-
readonly packages: outputs.GetWafPackagesPackage[];
|
|
54
|
-
readonly zoneId: string;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Use this data source to look up [WAF Rule Packages](https://api.cloudflare.com/#waf-rule-packages-properties).
|
|
58
|
-
*
|
|
59
|
-
* ## Example Usage
|
|
60
|
-
*
|
|
61
|
-
* The example below matches all `high` sensitivity WAF Rule Packages, with a `challenge` action mode and an `anomaly` detection mode, that contain the word `example`. The matched WAF Rule Packages are then returned as output.
|
|
62
|
-
*
|
|
63
|
-
* ```typescript
|
|
64
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
65
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
66
|
-
*
|
|
67
|
-
* const test = cloudflare.getWafPackages({
|
|
68
|
-
* filter: {
|
|
69
|
-
* name: ".*example.*",
|
|
70
|
-
* detectionMode: "anomaly",
|
|
71
|
-
* sensitivity: "high",
|
|
72
|
-
* actionMode: "challenge",
|
|
73
|
-
* },
|
|
74
|
-
* });
|
|
75
|
-
* export const wafPackages = test.then(test => test.packages);
|
|
76
|
-
* ```
|
|
77
|
-
*/
|
|
78
|
-
export declare function getWafPackagesOutput(args: GetWafPackagesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetWafPackagesResult>;
|
|
79
|
-
/**
|
|
80
|
-
* A collection of arguments for invoking getWafPackages.
|
|
81
|
-
*/
|
|
82
|
-
export interface GetWafPackagesOutputArgs {
|
|
83
|
-
/**
|
|
84
|
-
* One or more values used to look up WAF Rule Packages. If more than one value is given all
|
|
85
|
-
* values must match in order to be included, see below for full list.
|
|
86
|
-
*/
|
|
87
|
-
filter?: pulumi.Input<inputs.GetWafPackagesFilterArgs>;
|
|
88
|
-
/**
|
|
89
|
-
* The ID of the DNS zone in which to search for the WAF Rule Packages.
|
|
90
|
-
*/
|
|
91
|
-
zoneId: pulumi.Input<string>;
|
|
92
|
-
}
|
package/getWafPackages.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
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
|
-
exports.getWafPackagesOutput = exports.getWafPackages = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Use this data source to look up [WAF Rule Packages](https://api.cloudflare.com/#waf-rule-packages-properties).
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* The example below matches all `high` sensitivity WAF Rule Packages, with a `challenge` action mode and an `anomaly` detection mode, that contain the word `example`. The matched WAF Rule Packages are then returned as output.
|
|
14
|
-
*
|
|
15
|
-
* ```typescript
|
|
16
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
18
|
-
*
|
|
19
|
-
* const test = cloudflare.getWafPackages({
|
|
20
|
-
* filter: {
|
|
21
|
-
* name: ".*example.*",
|
|
22
|
-
* detectionMode: "anomaly",
|
|
23
|
-
* sensitivity: "high",
|
|
24
|
-
* actionMode: "challenge",
|
|
25
|
-
* },
|
|
26
|
-
* });
|
|
27
|
-
* export const wafPackages = test.then(test => test.packages);
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
function getWafPackages(args, opts) {
|
|
31
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
32
|
-
return pulumi.runtime.invoke("cloudflare:index/getWafPackages:getWafPackages", {
|
|
33
|
-
"filter": args.filter,
|
|
34
|
-
"zoneId": args.zoneId,
|
|
35
|
-
}, opts);
|
|
36
|
-
}
|
|
37
|
-
exports.getWafPackages = getWafPackages;
|
|
38
|
-
/**
|
|
39
|
-
* Use this data source to look up [WAF Rule Packages](https://api.cloudflare.com/#waf-rule-packages-properties).
|
|
40
|
-
*
|
|
41
|
-
* ## Example Usage
|
|
42
|
-
*
|
|
43
|
-
* The example below matches all `high` sensitivity WAF Rule Packages, with a `challenge` action mode and an `anomaly` detection mode, that contain the word `example`. The matched WAF Rule Packages are then returned as output.
|
|
44
|
-
*
|
|
45
|
-
* ```typescript
|
|
46
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
47
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
48
|
-
*
|
|
49
|
-
* const test = cloudflare.getWafPackages({
|
|
50
|
-
* filter: {
|
|
51
|
-
* name: ".*example.*",
|
|
52
|
-
* detectionMode: "anomaly",
|
|
53
|
-
* sensitivity: "high",
|
|
54
|
-
* actionMode: "challenge",
|
|
55
|
-
* },
|
|
56
|
-
* });
|
|
57
|
-
* export const wafPackages = test.then(test => test.packages);
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
function getWafPackagesOutput(args, opts) {
|
|
61
|
-
return pulumi.output(args).apply((a) => getWafPackages(a, opts));
|
|
62
|
-
}
|
|
63
|
-
exports.getWafPackagesOutput = getWafPackagesOutput;
|
|
64
|
-
//# sourceMappingURL=getWafPackages.js.map
|
package/getWafPackages.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getWafPackages.js","sourceRoot":"","sources":["../getWafPackages.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAEhF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,wCAOC;AAgCD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACzE,CAAC;AAFD,oDAEC"}
|
package/getWafRules.d.ts
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import * as inputs from "./types/input";
|
|
3
|
-
import * as outputs from "./types/output";
|
|
4
|
-
/**
|
|
5
|
-
* Use this data source to look up [WAF Rules](https://api.cloudflare.com/#waf-rule-groups-properties).
|
|
6
|
-
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* The example below matches all WAF Rules that are in the group of ID `de677e5818985db1285d0e80225f06e5`, contain `example` in their description, and are currently `on`. The matched WAF Rules are then returned as output.
|
|
10
|
-
*
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
14
|
-
*
|
|
15
|
-
* const test = cloudflare.getWafRules({
|
|
16
|
-
* zoneId: "ae36f999674d196762efcc5abb06b345",
|
|
17
|
-
* packageId: "a25a9a7e9c00afc1fb2e0245519d725b",
|
|
18
|
-
* filter: {
|
|
19
|
-
* description: ".*example.*",
|
|
20
|
-
* mode: "on",
|
|
21
|
-
* groupId: "de677e5818985db1285d0e80225f06e5",
|
|
22
|
-
* },
|
|
23
|
-
* });
|
|
24
|
-
* export const wafRules = test.then(test => test.rules);
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export declare function getWafRules(args: GetWafRulesArgs, opts?: pulumi.InvokeOptions): Promise<GetWafRulesResult>;
|
|
28
|
-
/**
|
|
29
|
-
* A collection of arguments for invoking getWafRules.
|
|
30
|
-
*/
|
|
31
|
-
export interface GetWafRulesArgs {
|
|
32
|
-
/**
|
|
33
|
-
* One or more values used to look up WAF Rules. If more than one value is given all
|
|
34
|
-
* values must match in order to be included, see below for full list.
|
|
35
|
-
*/
|
|
36
|
-
filter?: inputs.GetWafRulesFilter;
|
|
37
|
-
/**
|
|
38
|
-
* The ID of the WAF Rule Package in which to search for the WAF Rules.
|
|
39
|
-
*/
|
|
40
|
-
packageId?: string;
|
|
41
|
-
/**
|
|
42
|
-
* The ID of the DNS zone in which to search for the WAF Rules.
|
|
43
|
-
*/
|
|
44
|
-
zoneId: string;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* A collection of values returned by getWafRules.
|
|
48
|
-
*/
|
|
49
|
-
export interface GetWafRulesResult {
|
|
50
|
-
readonly filter?: outputs.GetWafRulesFilter;
|
|
51
|
-
/**
|
|
52
|
-
* The provider-assigned unique ID for this managed resource.
|
|
53
|
-
*/
|
|
54
|
-
readonly id: string;
|
|
55
|
-
/**
|
|
56
|
-
* The ID of the WAF Rule Package that contains the WAF Rule
|
|
57
|
-
*/
|
|
58
|
-
readonly packageId?: string;
|
|
59
|
-
/**
|
|
60
|
-
* A map of WAF Rules details. Full list below:
|
|
61
|
-
*/
|
|
62
|
-
readonly rules: outputs.GetWafRulesRule[];
|
|
63
|
-
readonly zoneId: string;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Use this data source to look up [WAF Rules](https://api.cloudflare.com/#waf-rule-groups-properties).
|
|
67
|
-
*
|
|
68
|
-
* ## Example Usage
|
|
69
|
-
*
|
|
70
|
-
* The example below matches all WAF Rules that are in the group of ID `de677e5818985db1285d0e80225f06e5`, contain `example` in their description, and are currently `on`. The matched WAF Rules are then returned as output.
|
|
71
|
-
*
|
|
72
|
-
* ```typescript
|
|
73
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
74
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
75
|
-
*
|
|
76
|
-
* const test = cloudflare.getWafRules({
|
|
77
|
-
* zoneId: "ae36f999674d196762efcc5abb06b345",
|
|
78
|
-
* packageId: "a25a9a7e9c00afc1fb2e0245519d725b",
|
|
79
|
-
* filter: {
|
|
80
|
-
* description: ".*example.*",
|
|
81
|
-
* mode: "on",
|
|
82
|
-
* groupId: "de677e5818985db1285d0e80225f06e5",
|
|
83
|
-
* },
|
|
84
|
-
* });
|
|
85
|
-
* export const wafRules = test.then(test => test.rules);
|
|
86
|
-
* ```
|
|
87
|
-
*/
|
|
88
|
-
export declare function getWafRulesOutput(args: GetWafRulesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetWafRulesResult>;
|
|
89
|
-
/**
|
|
90
|
-
* A collection of arguments for invoking getWafRules.
|
|
91
|
-
*/
|
|
92
|
-
export interface GetWafRulesOutputArgs {
|
|
93
|
-
/**
|
|
94
|
-
* One or more values used to look up WAF Rules. If more than one value is given all
|
|
95
|
-
* values must match in order to be included, see below for full list.
|
|
96
|
-
*/
|
|
97
|
-
filter?: pulumi.Input<inputs.GetWafRulesFilterArgs>;
|
|
98
|
-
/**
|
|
99
|
-
* The ID of the WAF Rule Package in which to search for the WAF Rules.
|
|
100
|
-
*/
|
|
101
|
-
packageId?: pulumi.Input<string>;
|
|
102
|
-
/**
|
|
103
|
-
* The ID of the DNS zone in which to search for the WAF Rules.
|
|
104
|
-
*/
|
|
105
|
-
zoneId: pulumi.Input<string>;
|
|
106
|
-
}
|
package/getWafRules.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
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
|
-
exports.getWafRulesOutput = exports.getWafRules = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Use this data source to look up [WAF Rules](https://api.cloudflare.com/#waf-rule-groups-properties).
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* The example below matches all WAF Rules that are in the group of ID `de677e5818985db1285d0e80225f06e5`, contain `example` in their description, and are currently `on`. The matched WAF Rules are then returned as output.
|
|
14
|
-
*
|
|
15
|
-
* ```typescript
|
|
16
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
18
|
-
*
|
|
19
|
-
* const test = cloudflare.getWafRules({
|
|
20
|
-
* zoneId: "ae36f999674d196762efcc5abb06b345",
|
|
21
|
-
* packageId: "a25a9a7e9c00afc1fb2e0245519d725b",
|
|
22
|
-
* filter: {
|
|
23
|
-
* description: ".*example.*",
|
|
24
|
-
* mode: "on",
|
|
25
|
-
* groupId: "de677e5818985db1285d0e80225f06e5",
|
|
26
|
-
* },
|
|
27
|
-
* });
|
|
28
|
-
* export const wafRules = test.then(test => test.rules);
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
function getWafRules(args, opts) {
|
|
32
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
33
|
-
return pulumi.runtime.invoke("cloudflare:index/getWafRules:getWafRules", {
|
|
34
|
-
"filter": args.filter,
|
|
35
|
-
"packageId": args.packageId,
|
|
36
|
-
"zoneId": args.zoneId,
|
|
37
|
-
}, opts);
|
|
38
|
-
}
|
|
39
|
-
exports.getWafRules = getWafRules;
|
|
40
|
-
/**
|
|
41
|
-
* Use this data source to look up [WAF Rules](https://api.cloudflare.com/#waf-rule-groups-properties).
|
|
42
|
-
*
|
|
43
|
-
* ## Example Usage
|
|
44
|
-
*
|
|
45
|
-
* The example below matches all WAF Rules that are in the group of ID `de677e5818985db1285d0e80225f06e5`, contain `example` in their description, and are currently `on`. The matched WAF Rules are then returned as output.
|
|
46
|
-
*
|
|
47
|
-
* ```typescript
|
|
48
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
49
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
50
|
-
*
|
|
51
|
-
* const test = cloudflare.getWafRules({
|
|
52
|
-
* zoneId: "ae36f999674d196762efcc5abb06b345",
|
|
53
|
-
* packageId: "a25a9a7e9c00afc1fb2e0245519d725b",
|
|
54
|
-
* filter: {
|
|
55
|
-
* description: ".*example.*",
|
|
56
|
-
* mode: "on",
|
|
57
|
-
* groupId: "de677e5818985db1285d0e80225f06e5",
|
|
58
|
-
* },
|
|
59
|
-
* });
|
|
60
|
-
* export const wafRules = test.then(test => test.rules);
|
|
61
|
-
* ```
|
|
62
|
-
*/
|
|
63
|
-
function getWafRulesOutput(args, opts) {
|
|
64
|
-
return pulumi.output(args).apply((a) => getWafRules(a, opts));
|
|
65
|
-
}
|
|
66
|
-
exports.getWafRulesOutput = getWafRulesOutput;
|
|
67
|
-
//# sourceMappingURL=getWafRules.js.map
|
package/getWafRules.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getWafRules.js","sourceRoot":"","sources":["../getWafRules.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAE1E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,kCAQC;AAwCD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,8CAEC"}
|