@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/ipList.d.ts
DELETED
|
@@ -1,125 +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
|
-
* IP Lists are a set of IP addresses or CIDR ranges that are configured on the account level. Once created, IP Lists can be
|
|
6
|
-
* used in Firewall Rules across all zones within the same account.
|
|
7
|
-
*
|
|
8
|
-
* ## Example Usage
|
|
9
|
-
*
|
|
10
|
-
* ```typescript
|
|
11
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
13
|
-
*
|
|
14
|
-
* const example = new cloudflare.IpList("example", {
|
|
15
|
-
* accountId: "d41d8cd98f00b204e9800998ecf8427e",
|
|
16
|
-
* description: "list description",
|
|
17
|
-
* items: [
|
|
18
|
-
* {
|
|
19
|
-
* comment: "Office IP",
|
|
20
|
-
* value: "192.0.2.1",
|
|
21
|
-
* },
|
|
22
|
-
* {
|
|
23
|
-
* comment: "Datacenter range",
|
|
24
|
-
* value: "203.0.113.0/24",
|
|
25
|
-
* },
|
|
26
|
-
* ],
|
|
27
|
-
* kind: "ip",
|
|
28
|
-
* name: "example_list",
|
|
29
|
-
* });
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* ## Import
|
|
33
|
-
*
|
|
34
|
-
* An existing IP List can be imported using the account ID and list ID
|
|
35
|
-
*
|
|
36
|
-
* ```sh
|
|
37
|
-
* $ pulumi import cloudflare:index/ipList:IpList example d41d8cd98f00b204e9800998ecf8427e/cb029e245cfdd66dc8d2e570d5dd3322
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
export declare class IpList extends pulumi.CustomResource {
|
|
41
|
-
/**
|
|
42
|
-
* Get an existing IpList resource's state with the given name, ID, and optional extra
|
|
43
|
-
* properties used to qualify the lookup.
|
|
44
|
-
*
|
|
45
|
-
* @param name The _unique_ name of the resulting resource.
|
|
46
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
47
|
-
* @param state Any extra arguments used during the lookup.
|
|
48
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
49
|
-
*/
|
|
50
|
-
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: IpListState, opts?: pulumi.CustomResourceOptions): IpList;
|
|
51
|
-
/**
|
|
52
|
-
* Returns true if the given object is an instance of IpList. This is designed to work even
|
|
53
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
54
|
-
*/
|
|
55
|
-
static isInstance(obj: any): obj is IpList;
|
|
56
|
-
/**
|
|
57
|
-
* The ID of the account where the IP List is being created.
|
|
58
|
-
*/
|
|
59
|
-
readonly accountId: pulumi.Output<string>;
|
|
60
|
-
/**
|
|
61
|
-
* A note that can be used to annotate the List. Maximum Length: 500
|
|
62
|
-
*/
|
|
63
|
-
readonly description: pulumi.Output<string | undefined>;
|
|
64
|
-
readonly items: pulumi.Output<outputs.IpListItem[] | undefined>;
|
|
65
|
-
/**
|
|
66
|
-
* The kind of values in the List. Valid values: `ip`.
|
|
67
|
-
*/
|
|
68
|
-
readonly kind: pulumi.Output<string>;
|
|
69
|
-
/**
|
|
70
|
-
* The name of the list (used in filter expressions). Valid pattern: `^[a-zA-Z0-9_]+$`. Maximum Length: 50
|
|
71
|
-
*/
|
|
72
|
-
readonly name: pulumi.Output<string>;
|
|
73
|
-
/**
|
|
74
|
-
* Create a IpList resource with the given unique name, arguments, and options.
|
|
75
|
-
*
|
|
76
|
-
* @param name The _unique_ name of the resource.
|
|
77
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
78
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
79
|
-
*/
|
|
80
|
-
constructor(name: string, args: IpListArgs, opts?: pulumi.CustomResourceOptions);
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Input properties used for looking up and filtering IpList resources.
|
|
84
|
-
*/
|
|
85
|
-
export interface IpListState {
|
|
86
|
-
/**
|
|
87
|
-
* The ID of the account where the IP List is being created.
|
|
88
|
-
*/
|
|
89
|
-
accountId?: pulumi.Input<string>;
|
|
90
|
-
/**
|
|
91
|
-
* A note that can be used to annotate the List. Maximum Length: 500
|
|
92
|
-
*/
|
|
93
|
-
description?: pulumi.Input<string>;
|
|
94
|
-
items?: pulumi.Input<pulumi.Input<inputs.IpListItem>[]>;
|
|
95
|
-
/**
|
|
96
|
-
* The kind of values in the List. Valid values: `ip`.
|
|
97
|
-
*/
|
|
98
|
-
kind?: pulumi.Input<string>;
|
|
99
|
-
/**
|
|
100
|
-
* The name of the list (used in filter expressions). Valid pattern: `^[a-zA-Z0-9_]+$`. Maximum Length: 50
|
|
101
|
-
*/
|
|
102
|
-
name?: pulumi.Input<string>;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* The set of arguments for constructing a IpList resource.
|
|
106
|
-
*/
|
|
107
|
-
export interface IpListArgs {
|
|
108
|
-
/**
|
|
109
|
-
* The ID of the account where the IP List is being created.
|
|
110
|
-
*/
|
|
111
|
-
accountId: pulumi.Input<string>;
|
|
112
|
-
/**
|
|
113
|
-
* A note that can be used to annotate the List. Maximum Length: 500
|
|
114
|
-
*/
|
|
115
|
-
description?: pulumi.Input<string>;
|
|
116
|
-
items?: pulumi.Input<pulumi.Input<inputs.IpListItem>[]>;
|
|
117
|
-
/**
|
|
118
|
-
* The kind of values in the List. Valid values: `ip`.
|
|
119
|
-
*/
|
|
120
|
-
kind: pulumi.Input<string>;
|
|
121
|
-
/**
|
|
122
|
-
* The name of the list (used in filter expressions). Valid pattern: `^[a-zA-Z0-9_]+$`. Maximum Length: 50
|
|
123
|
-
*/
|
|
124
|
-
name: pulumi.Input<string>;
|
|
125
|
-
}
|
package/ipList.js
DELETED
|
@@ -1,102 +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.IpList = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* IP Lists are a set of IP addresses or CIDR ranges that are configured on the account level. Once created, IP Lists can be
|
|
10
|
-
* used in Firewall Rules across all zones within the same account.
|
|
11
|
-
*
|
|
12
|
-
* ## Example Usage
|
|
13
|
-
*
|
|
14
|
-
* ```typescript
|
|
15
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
17
|
-
*
|
|
18
|
-
* const example = new cloudflare.IpList("example", {
|
|
19
|
-
* accountId: "d41d8cd98f00b204e9800998ecf8427e",
|
|
20
|
-
* description: "list description",
|
|
21
|
-
* items: [
|
|
22
|
-
* {
|
|
23
|
-
* comment: "Office IP",
|
|
24
|
-
* value: "192.0.2.1",
|
|
25
|
-
* },
|
|
26
|
-
* {
|
|
27
|
-
* comment: "Datacenter range",
|
|
28
|
-
* value: "203.0.113.0/24",
|
|
29
|
-
* },
|
|
30
|
-
* ],
|
|
31
|
-
* kind: "ip",
|
|
32
|
-
* name: "example_list",
|
|
33
|
-
* });
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* ## Import
|
|
37
|
-
*
|
|
38
|
-
* An existing IP List can be imported using the account ID and list ID
|
|
39
|
-
*
|
|
40
|
-
* ```sh
|
|
41
|
-
* $ pulumi import cloudflare:index/ipList:IpList example d41d8cd98f00b204e9800998ecf8427e/cb029e245cfdd66dc8d2e570d5dd3322
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
class IpList extends pulumi.CustomResource {
|
|
45
|
-
/**
|
|
46
|
-
* Get an existing IpList resource's state with the given name, ID, and optional extra
|
|
47
|
-
* properties used to qualify the lookup.
|
|
48
|
-
*
|
|
49
|
-
* @param name The _unique_ name of the resulting resource.
|
|
50
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
51
|
-
* @param state Any extra arguments used during the lookup.
|
|
52
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
53
|
-
*/
|
|
54
|
-
static get(name, id, state, opts) {
|
|
55
|
-
return new IpList(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Returns true if the given object is an instance of IpList. This is designed to work even
|
|
59
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
60
|
-
*/
|
|
61
|
-
static isInstance(obj) {
|
|
62
|
-
if (obj === undefined || obj === null) {
|
|
63
|
-
return false;
|
|
64
|
-
}
|
|
65
|
-
return obj['__pulumiType'] === IpList.__pulumiType;
|
|
66
|
-
}
|
|
67
|
-
constructor(name, argsOrState, opts) {
|
|
68
|
-
let resourceInputs = {};
|
|
69
|
-
opts = opts || {};
|
|
70
|
-
if (opts.id) {
|
|
71
|
-
const state = argsOrState;
|
|
72
|
-
resourceInputs["accountId"] = state ? state.accountId : undefined;
|
|
73
|
-
resourceInputs["description"] = state ? state.description : undefined;
|
|
74
|
-
resourceInputs["items"] = state ? state.items : undefined;
|
|
75
|
-
resourceInputs["kind"] = state ? state.kind : undefined;
|
|
76
|
-
resourceInputs["name"] = state ? state.name : undefined;
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
const args = argsOrState;
|
|
80
|
-
if ((!args || args.accountId === undefined) && !opts.urn) {
|
|
81
|
-
throw new Error("Missing required property 'accountId'");
|
|
82
|
-
}
|
|
83
|
-
if ((!args || args.kind === undefined) && !opts.urn) {
|
|
84
|
-
throw new Error("Missing required property 'kind'");
|
|
85
|
-
}
|
|
86
|
-
if ((!args || args.name === undefined) && !opts.urn) {
|
|
87
|
-
throw new Error("Missing required property 'name'");
|
|
88
|
-
}
|
|
89
|
-
resourceInputs["accountId"] = args ? args.accountId : undefined;
|
|
90
|
-
resourceInputs["description"] = args ? args.description : undefined;
|
|
91
|
-
resourceInputs["items"] = args ? args.items : undefined;
|
|
92
|
-
resourceInputs["kind"] = args ? args.kind : undefined;
|
|
93
|
-
resourceInputs["name"] = args ? args.name : undefined;
|
|
94
|
-
}
|
|
95
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
96
|
-
super(IpList.__pulumiType, name, resourceInputs, opts);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
exports.IpList = IpList;
|
|
100
|
-
/** @internal */
|
|
101
|
-
IpList.__pulumiType = 'cloudflare:index/ipList:IpList';
|
|
102
|
-
//# sourceMappingURL=ipList.js.map
|
package/ipList.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ipList.js","sourceRoot":"","sources":["../ipList.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;A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MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AAnFL,wBAoFC;AAtEG,gBAAgB;AACO,mBAAY,GAAG,gCAAgC,CAAC"}
|
package/wafGroup.d.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* Provides a Cloudflare WAF rule group resource for a particular zone. This can be used to configure firewall behaviour for pre-defined firewall groups.
|
|
4
|
-
*
|
|
5
|
-
* ## Example Usage
|
|
6
|
-
*
|
|
7
|
-
* ```typescript
|
|
8
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
10
|
-
*
|
|
11
|
-
* const honeyPot = new cloudflare.WafGroup("honeyPot", {
|
|
12
|
-
* groupId: "de677e5818985db1285d0e80225f06e5",
|
|
13
|
-
* mode: "on",
|
|
14
|
-
* zoneId: "ae36f999674d196762efcc5abb06b345",
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* ## Import
|
|
19
|
-
*
|
|
20
|
-
* WAF Rule Groups can be imported using a composite ID formed of zone ID and the WAF Rule Group ID, e.g.
|
|
21
|
-
*
|
|
22
|
-
* ```sh
|
|
23
|
-
* $ pulumi import cloudflare:index/wafGroup:WafGroup honey_pot ae36f999674d196762efcc5abb06b345/de677e5818985db1285d0e80225f06e5
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
export declare class WafGroup extends pulumi.CustomResource {
|
|
27
|
-
/**
|
|
28
|
-
* Get an existing WafGroup resource's state with the given name, ID, and optional extra
|
|
29
|
-
* properties used to qualify the lookup.
|
|
30
|
-
*
|
|
31
|
-
* @param name The _unique_ name of the resulting resource.
|
|
32
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
33
|
-
* @param state Any extra arguments used during the lookup.
|
|
34
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
35
|
-
*/
|
|
36
|
-
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WafGroupState, opts?: pulumi.CustomResourceOptions): WafGroup;
|
|
37
|
-
/**
|
|
38
|
-
* Returns true if the given object is an instance of WafGroup. This is designed to work even
|
|
39
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
40
|
-
*/
|
|
41
|
-
static isInstance(obj: any): obj is WafGroup;
|
|
42
|
-
/**
|
|
43
|
-
* The WAF Rule Group ID.
|
|
44
|
-
*/
|
|
45
|
-
readonly groupId: pulumi.Output<string>;
|
|
46
|
-
/**
|
|
47
|
-
* The mode of the group, can be one of ["on", "off"].
|
|
48
|
-
*/
|
|
49
|
-
readonly mode: pulumi.Output<string | undefined>;
|
|
50
|
-
/**
|
|
51
|
-
* The ID of the WAF Rule Package that contains the group.
|
|
52
|
-
*/
|
|
53
|
-
readonly packageId: pulumi.Output<string>;
|
|
54
|
-
/**
|
|
55
|
-
* The DNS zone ID to apply to.
|
|
56
|
-
*/
|
|
57
|
-
readonly zoneId: pulumi.Output<string>;
|
|
58
|
-
/**
|
|
59
|
-
* Create a WafGroup resource with the given unique name, arguments, and options.
|
|
60
|
-
*
|
|
61
|
-
* @param name The _unique_ name of the resource.
|
|
62
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
63
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
64
|
-
*/
|
|
65
|
-
constructor(name: string, args: WafGroupArgs, opts?: pulumi.CustomResourceOptions);
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Input properties used for looking up and filtering WafGroup resources.
|
|
69
|
-
*/
|
|
70
|
-
export interface WafGroupState {
|
|
71
|
-
/**
|
|
72
|
-
* The WAF Rule Group ID.
|
|
73
|
-
*/
|
|
74
|
-
groupId?: pulumi.Input<string>;
|
|
75
|
-
/**
|
|
76
|
-
* The mode of the group, can be one of ["on", "off"].
|
|
77
|
-
*/
|
|
78
|
-
mode?: pulumi.Input<string>;
|
|
79
|
-
/**
|
|
80
|
-
* The ID of the WAF Rule Package that contains the group.
|
|
81
|
-
*/
|
|
82
|
-
packageId?: pulumi.Input<string>;
|
|
83
|
-
/**
|
|
84
|
-
* The DNS zone ID to apply to.
|
|
85
|
-
*/
|
|
86
|
-
zoneId?: pulumi.Input<string>;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* The set of arguments for constructing a WafGroup resource.
|
|
90
|
-
*/
|
|
91
|
-
export interface WafGroupArgs {
|
|
92
|
-
/**
|
|
93
|
-
* The WAF Rule Group ID.
|
|
94
|
-
*/
|
|
95
|
-
groupId: pulumi.Input<string>;
|
|
96
|
-
/**
|
|
97
|
-
* The mode of the group, can be one of ["on", "off"].
|
|
98
|
-
*/
|
|
99
|
-
mode?: pulumi.Input<string>;
|
|
100
|
-
/**
|
|
101
|
-
* The ID of the WAF Rule Package that contains the group.
|
|
102
|
-
*/
|
|
103
|
-
packageId?: pulumi.Input<string>;
|
|
104
|
-
/**
|
|
105
|
-
* The DNS zone ID to apply to.
|
|
106
|
-
*/
|
|
107
|
-
zoneId: pulumi.Input<string>;
|
|
108
|
-
}
|
package/wafGroup.js
DELETED
|
@@ -1,85 +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.WafGroup = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Provides a Cloudflare WAF rule group resource for a particular zone. This can be used to configure firewall behaviour for pre-defined firewall groups.
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
16
|
-
*
|
|
17
|
-
* const honeyPot = new cloudflare.WafGroup("honeyPot", {
|
|
18
|
-
* groupId: "de677e5818985db1285d0e80225f06e5",
|
|
19
|
-
* mode: "on",
|
|
20
|
-
* zoneId: "ae36f999674d196762efcc5abb06b345",
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* ## Import
|
|
25
|
-
*
|
|
26
|
-
* WAF Rule Groups can be imported using a composite ID formed of zone ID and the WAF Rule Group ID, e.g.
|
|
27
|
-
*
|
|
28
|
-
* ```sh
|
|
29
|
-
* $ pulumi import cloudflare:index/wafGroup:WafGroup honey_pot ae36f999674d196762efcc5abb06b345/de677e5818985db1285d0e80225f06e5
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
class WafGroup extends pulumi.CustomResource {
|
|
33
|
-
/**
|
|
34
|
-
* Get an existing WafGroup resource's state with the given name, ID, and optional extra
|
|
35
|
-
* properties used to qualify the lookup.
|
|
36
|
-
*
|
|
37
|
-
* @param name The _unique_ name of the resulting resource.
|
|
38
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
39
|
-
* @param state Any extra arguments used during the lookup.
|
|
40
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
|
-
*/
|
|
42
|
-
static get(name, id, state, opts) {
|
|
43
|
-
return new WafGroup(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Returns true if the given object is an instance of WafGroup. This is designed to work even
|
|
47
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
48
|
-
*/
|
|
49
|
-
static isInstance(obj) {
|
|
50
|
-
if (obj === undefined || obj === null) {
|
|
51
|
-
return false;
|
|
52
|
-
}
|
|
53
|
-
return obj['__pulumiType'] === WafGroup.__pulumiType;
|
|
54
|
-
}
|
|
55
|
-
constructor(name, argsOrState, opts) {
|
|
56
|
-
let resourceInputs = {};
|
|
57
|
-
opts = opts || {};
|
|
58
|
-
if (opts.id) {
|
|
59
|
-
const state = argsOrState;
|
|
60
|
-
resourceInputs["groupId"] = state ? state.groupId : undefined;
|
|
61
|
-
resourceInputs["mode"] = state ? state.mode : undefined;
|
|
62
|
-
resourceInputs["packageId"] = state ? state.packageId : undefined;
|
|
63
|
-
resourceInputs["zoneId"] = state ? state.zoneId : undefined;
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
const args = argsOrState;
|
|
67
|
-
if ((!args || args.groupId === undefined) && !opts.urn) {
|
|
68
|
-
throw new Error("Missing required property 'groupId'");
|
|
69
|
-
}
|
|
70
|
-
if ((!args || args.zoneId === undefined) && !opts.urn) {
|
|
71
|
-
throw new Error("Missing required property 'zoneId'");
|
|
72
|
-
}
|
|
73
|
-
resourceInputs["groupId"] = args ? args.groupId : undefined;
|
|
74
|
-
resourceInputs["mode"] = args ? args.mode : undefined;
|
|
75
|
-
resourceInputs["packageId"] = args ? args.packageId : undefined;
|
|
76
|
-
resourceInputs["zoneId"] = args ? args.zoneId : undefined;
|
|
77
|
-
}
|
|
78
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
79
|
-
super(WafGroup.__pulumiType, name, resourceInputs, opts);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
exports.WafGroup = WafGroup;
|
|
83
|
-
/** @internal */
|
|
84
|
-
WafGroup.__pulumiType = 'cloudflare:index/wafGroup:WafGroup';
|
|
85
|
-
//# sourceMappingURL=wafGroup.js.map
|
package/wafGroup.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wafGroup.js","sourceRoot":"","sources":["../wafGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,QAAS,SAAQ,MAAM,C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ACpD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA7EL,4BA8EC;AAhEG,gBAAgB;AACO,qBAAY,GAAG,oCAAoC,CAAC"}
|
package/wafOverride.d.ts
DELETED
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* Provides a Cloudflare WAF override resource. This enables the ability to toggle
|
|
4
|
-
* WAF rules and groups on or off based on URIs.
|
|
5
|
-
*
|
|
6
|
-
* ## Example Usage
|
|
7
|
-
*
|
|
8
|
-
* ```typescript
|
|
9
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
11
|
-
*
|
|
12
|
-
* const shopEcxample = new cloudflare.WafOverride("shopEcxample", {
|
|
13
|
-
* zoneId: "1d5fdc9e88c8a8c4518b068cd94331fe",
|
|
14
|
-
* urls: [
|
|
15
|
-
* "example.com/no-waf-here",
|
|
16
|
-
* "example.com/another/path/*",
|
|
17
|
-
* ],
|
|
18
|
-
* rules: {
|
|
19
|
-
* "100015": "disable",
|
|
20
|
-
* },
|
|
21
|
-
* groups: {
|
|
22
|
-
* ea8687e59929c1fd05ba97574ad43f77: "default",
|
|
23
|
-
* },
|
|
24
|
-
* rewriteAction: {
|
|
25
|
-
* "default": "block",
|
|
26
|
-
* challenge: "block",
|
|
27
|
-
* },
|
|
28
|
-
* });
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* ## Import
|
|
32
|
-
*
|
|
33
|
-
* WAF Overrides can be imported using a composite ID formed of zone ID and override ID.
|
|
34
|
-
*
|
|
35
|
-
* ```sh
|
|
36
|
-
* $ pulumi import cloudflare:index/wafOverride:WafOverride my_example_waf_override 3abe5b950053dbddf1516d89f9ef1e8a/9d4e66d7649c178663bf62e06dbacb23
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
export declare class WafOverride extends pulumi.CustomResource {
|
|
40
|
-
/**
|
|
41
|
-
* Get an existing WafOverride 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?: WafOverrideState, opts?: pulumi.CustomResourceOptions): WafOverride;
|
|
50
|
-
/**
|
|
51
|
-
* Returns true if the given object is an instance of WafOverride. 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 WafOverride;
|
|
55
|
-
/**
|
|
56
|
-
* Description of what the WAF override does.
|
|
57
|
-
*/
|
|
58
|
-
readonly description: pulumi.Output<string | undefined>;
|
|
59
|
-
/**
|
|
60
|
-
* Similar to `rules`; which WAF groups you want to alter.
|
|
61
|
-
*/
|
|
62
|
-
readonly groups: pulumi.Output<{
|
|
63
|
-
[key: string]: string;
|
|
64
|
-
} | undefined>;
|
|
65
|
-
readonly overrideId: pulumi.Output<string>;
|
|
66
|
-
/**
|
|
67
|
-
* Whether this package is currently paused.
|
|
68
|
-
*/
|
|
69
|
-
readonly paused: pulumi.Output<boolean | undefined>;
|
|
70
|
-
/**
|
|
71
|
-
* Relative priority of this configuration when multiple configurations match a single URL.
|
|
72
|
-
*/
|
|
73
|
-
readonly priority: pulumi.Output<number | undefined>;
|
|
74
|
-
/**
|
|
75
|
-
* When a WAF rule matches, substitute its configured action for a different action specified by this definition.
|
|
76
|
-
*/
|
|
77
|
-
readonly rewriteAction: pulumi.Output<{
|
|
78
|
-
[key: string]: string;
|
|
79
|
-
} | undefined>;
|
|
80
|
-
/**
|
|
81
|
-
* A list of WAF rule ID to rule action you intend to apply.
|
|
82
|
-
*/
|
|
83
|
-
readonly rules: pulumi.Output<{
|
|
84
|
-
[key: string]: string;
|
|
85
|
-
} | undefined>;
|
|
86
|
-
/**
|
|
87
|
-
* An array of URLs to apply the WAF override to.
|
|
88
|
-
*/
|
|
89
|
-
readonly urls: pulumi.Output<string[]>;
|
|
90
|
-
/**
|
|
91
|
-
* The DNS zone to which the WAF override condition should be added.
|
|
92
|
-
*/
|
|
93
|
-
readonly zoneId: pulumi.Output<string>;
|
|
94
|
-
/**
|
|
95
|
-
* Create a WafOverride resource with the given unique name, arguments, and options.
|
|
96
|
-
*
|
|
97
|
-
* @param name The _unique_ name of the resource.
|
|
98
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
99
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
100
|
-
*/
|
|
101
|
-
constructor(name: string, args: WafOverrideArgs, opts?: pulumi.CustomResourceOptions);
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Input properties used for looking up and filtering WafOverride resources.
|
|
105
|
-
*/
|
|
106
|
-
export interface WafOverrideState {
|
|
107
|
-
/**
|
|
108
|
-
* Description of what the WAF override does.
|
|
109
|
-
*/
|
|
110
|
-
description?: pulumi.Input<string>;
|
|
111
|
-
/**
|
|
112
|
-
* Similar to `rules`; which WAF groups you want to alter.
|
|
113
|
-
*/
|
|
114
|
-
groups?: pulumi.Input<{
|
|
115
|
-
[key: string]: pulumi.Input<string>;
|
|
116
|
-
}>;
|
|
117
|
-
overrideId?: pulumi.Input<string>;
|
|
118
|
-
/**
|
|
119
|
-
* Whether this package is currently paused.
|
|
120
|
-
*/
|
|
121
|
-
paused?: pulumi.Input<boolean>;
|
|
122
|
-
/**
|
|
123
|
-
* Relative priority of this configuration when multiple configurations match a single URL.
|
|
124
|
-
*/
|
|
125
|
-
priority?: pulumi.Input<number>;
|
|
126
|
-
/**
|
|
127
|
-
* When a WAF rule matches, substitute its configured action for a different action specified by this definition.
|
|
128
|
-
*/
|
|
129
|
-
rewriteAction?: pulumi.Input<{
|
|
130
|
-
[key: string]: pulumi.Input<string>;
|
|
131
|
-
}>;
|
|
132
|
-
/**
|
|
133
|
-
* A list of WAF rule ID to rule action you intend to apply.
|
|
134
|
-
*/
|
|
135
|
-
rules?: pulumi.Input<{
|
|
136
|
-
[key: string]: pulumi.Input<string>;
|
|
137
|
-
}>;
|
|
138
|
-
/**
|
|
139
|
-
* An array of URLs to apply the WAF override to.
|
|
140
|
-
*/
|
|
141
|
-
urls?: pulumi.Input<pulumi.Input<string>[]>;
|
|
142
|
-
/**
|
|
143
|
-
* The DNS zone to which the WAF override condition should be added.
|
|
144
|
-
*/
|
|
145
|
-
zoneId?: pulumi.Input<string>;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* The set of arguments for constructing a WafOverride resource.
|
|
149
|
-
*/
|
|
150
|
-
export interface WafOverrideArgs {
|
|
151
|
-
/**
|
|
152
|
-
* Description of what the WAF override does.
|
|
153
|
-
*/
|
|
154
|
-
description?: pulumi.Input<string>;
|
|
155
|
-
/**
|
|
156
|
-
* Similar to `rules`; which WAF groups you want to alter.
|
|
157
|
-
*/
|
|
158
|
-
groups?: pulumi.Input<{
|
|
159
|
-
[key: string]: pulumi.Input<string>;
|
|
160
|
-
}>;
|
|
161
|
-
/**
|
|
162
|
-
* Whether this package is currently paused.
|
|
163
|
-
*/
|
|
164
|
-
paused?: pulumi.Input<boolean>;
|
|
165
|
-
/**
|
|
166
|
-
* Relative priority of this configuration when multiple configurations match a single URL.
|
|
167
|
-
*/
|
|
168
|
-
priority?: pulumi.Input<number>;
|
|
169
|
-
/**
|
|
170
|
-
* When a WAF rule matches, substitute its configured action for a different action specified by this definition.
|
|
171
|
-
*/
|
|
172
|
-
rewriteAction?: pulumi.Input<{
|
|
173
|
-
[key: string]: pulumi.Input<string>;
|
|
174
|
-
}>;
|
|
175
|
-
/**
|
|
176
|
-
* A list of WAF rule ID to rule action you intend to apply.
|
|
177
|
-
*/
|
|
178
|
-
rules?: pulumi.Input<{
|
|
179
|
-
[key: string]: pulumi.Input<string>;
|
|
180
|
-
}>;
|
|
181
|
-
/**
|
|
182
|
-
* An array of URLs to apply the WAF override to.
|
|
183
|
-
*/
|
|
184
|
-
urls: pulumi.Input<pulumi.Input<string>[]>;
|
|
185
|
-
/**
|
|
186
|
-
* The DNS zone to which the WAF override condition should be added.
|
|
187
|
-
*/
|
|
188
|
-
zoneId: pulumi.Input<string>;
|
|
189
|
-
}
|