@pulumi/cloudflare 4.16.0 → 5.0.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.
Files changed (81) hide show
  1. package/README.md +1 -1
  2. package/accessRule.d.ts +6 -6
  3. package/accountMember.d.ts +2 -2
  4. package/accountMember.js +3 -0
  5. package/accountMember.js.map +1 -1
  6. package/config/vars.d.ts +0 -5
  7. package/config/vars.js +0 -6
  8. package/config/vars.js.map +1 -1
  9. package/index.d.ts +3 -30
  10. package/index.js +8 -47
  11. package/index.js.map +1 -1
  12. package/loadBalancer.d.ts +6 -12
  13. package/loadBalancerMonitor.d.ts +3 -3
  14. package/loadBalancerMonitor.js +3 -0
  15. package/loadBalancerMonitor.js.map +1 -1
  16. package/loadBalancerPool.d.ts +2 -2
  17. package/loadBalancerPool.js +3 -0
  18. package/loadBalancerPool.js.map +1 -1
  19. package/package.json +2 -2
  20. package/package.json.dev +2 -2
  21. package/provider.d.ts +0 -14
  22. package/provider.js +0 -1
  23. package/provider.js.map +1 -1
  24. package/spectrumApplication.d.ts +16 -21
  25. package/spectrumApplication.js +7 -2
  26. package/spectrumApplication.js.map +1 -1
  27. package/teamsAccount.d.ts +12 -0
  28. package/teamsAccount.js +2 -0
  29. package/teamsAccount.js.map +1 -1
  30. package/{argoTunnel.d.ts → tunnel.d.ts} +28 -30
  31. package/{argoTunnel.js → tunnel.js} +16 -18
  32. package/tunnel.js.map +1 -0
  33. package/tunnelConfig.d.ts +0 -57
  34. package/tunnelConfig.js +0 -57
  35. package/tunnelConfig.js.map +1 -1
  36. package/tunnelRoute.d.ts +0 -29
  37. package/tunnelRoute.js +0 -29
  38. package/tunnelRoute.js.map +1 -1
  39. package/types/input.d.ts +74 -98
  40. package/types/output.d.ts +74 -150
  41. package/waitingRoom.d.ts +3 -3
  42. package/workerScript.d.ts +2 -2
  43. package/workerScript.js +3 -0
  44. package/workerScript.js.map +1 -1
  45. package/workersKv.d.ts +1 -1
  46. package/workersKv.js +3 -0
  47. package/workersKv.js.map +1 -1
  48. package/workersKvNamespace.d.ts +1 -1
  49. package/workersKvNamespace.js +3 -0
  50. package/workersKvNamespace.js.map +1 -1
  51. package/zone.d.ts +2 -2
  52. package/zone.js +3 -0
  53. package/zone.js.map +1 -1
  54. package/accessBookmark.d.ts +0 -130
  55. package/accessBookmark.js +0 -87
  56. package/accessBookmark.js.map +0 -1
  57. package/argoTunnel.js.map +0 -1
  58. package/getWafGroups.d.ts +0 -100
  59. package/getWafGroups.js +0 -61
  60. package/getWafGroups.js.map +0 -1
  61. package/getWafPackages.d.ts +0 -92
  62. package/getWafPackages.js +0 -64
  63. package/getWafPackages.js.map +0 -1
  64. package/getWafRules.d.ts +0 -106
  65. package/getWafRules.js +0 -67
  66. package/getWafRules.js.map +0 -1
  67. package/ipList.d.ts +0 -125
  68. package/ipList.js +0 -102
  69. package/ipList.js.map +0 -1
  70. package/wafGroup.d.ts +0 -108
  71. package/wafGroup.js +0 -85
  72. package/wafGroup.js.map +0 -1
  73. package/wafOverride.d.ts +0 -189
  74. package/wafOverride.js +0 -108
  75. package/wafOverride.js.map +0 -1
  76. package/wafPackage.d.ts +0 -109
  77. package/wafPackage.js +0 -86
  78. package/wafPackage.js.map +0 -1
  79. package/wafRule.d.ts +0 -116
  80. package/wafRule.js +0 -90
  81. package/wafRule.js.map +0 -1
package/wafOverride.js DELETED
@@ -1,108 +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.WafOverride = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("./utilities");
8
- /**
9
- * Provides a Cloudflare WAF override resource. This enables the ability to toggle
10
- * WAF rules and groups on or off based on URIs.
11
- *
12
- * ## Example Usage
13
- *
14
- * ```typescript
15
- * import * as pulumi from "@pulumi/pulumi";
16
- * import * as cloudflare from "@pulumi/cloudflare";
17
- *
18
- * const shopEcxample = new cloudflare.WafOverride("shopEcxample", {
19
- * zoneId: "1d5fdc9e88c8a8c4518b068cd94331fe",
20
- * urls: [
21
- * "example.com/no-waf-here",
22
- * "example.com/another/path/*",
23
- * ],
24
- * rules: {
25
- * "100015": "disable",
26
- * },
27
- * groups: {
28
- * ea8687e59929c1fd05ba97574ad43f77: "default",
29
- * },
30
- * rewriteAction: {
31
- * "default": "block",
32
- * challenge: "block",
33
- * },
34
- * });
35
- * ```
36
- *
37
- * ## Import
38
- *
39
- * WAF Overrides can be imported using a composite ID formed of zone ID and override ID.
40
- *
41
- * ```sh
42
- * $ pulumi import cloudflare:index/wafOverride:WafOverride my_example_waf_override 3abe5b950053dbddf1516d89f9ef1e8a/9d4e66d7649c178663bf62e06dbacb23
43
- * ```
44
- */
45
- class WafOverride extends pulumi.CustomResource {
46
- /**
47
- * Get an existing WafOverride resource's state with the given name, ID, and optional extra
48
- * properties used to qualify the lookup.
49
- *
50
- * @param name The _unique_ name of the resulting resource.
51
- * @param id The _unique_ provider ID of the resource to lookup.
52
- * @param state Any extra arguments used during the lookup.
53
- * @param opts Optional settings to control the behavior of the CustomResource.
54
- */
55
- static get(name, id, state, opts) {
56
- return new WafOverride(name, state, Object.assign(Object.assign({}, opts), { id: id }));
57
- }
58
- /**
59
- * Returns true if the given object is an instance of WafOverride. This is designed to work even
60
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
61
- */
62
- static isInstance(obj) {
63
- if (obj === undefined || obj === null) {
64
- return false;
65
- }
66
- return obj['__pulumiType'] === WafOverride.__pulumiType;
67
- }
68
- constructor(name, argsOrState, opts) {
69
- let resourceInputs = {};
70
- opts = opts || {};
71
- if (opts.id) {
72
- const state = argsOrState;
73
- resourceInputs["description"] = state ? state.description : undefined;
74
- resourceInputs["groups"] = state ? state.groups : undefined;
75
- resourceInputs["overrideId"] = state ? state.overrideId : undefined;
76
- resourceInputs["paused"] = state ? state.paused : undefined;
77
- resourceInputs["priority"] = state ? state.priority : undefined;
78
- resourceInputs["rewriteAction"] = state ? state.rewriteAction : undefined;
79
- resourceInputs["rules"] = state ? state.rules : undefined;
80
- resourceInputs["urls"] = state ? state.urls : undefined;
81
- resourceInputs["zoneId"] = state ? state.zoneId : undefined;
82
- }
83
- else {
84
- const args = argsOrState;
85
- if ((!args || args.urls === undefined) && !opts.urn) {
86
- throw new Error("Missing required property 'urls'");
87
- }
88
- if ((!args || args.zoneId === undefined) && !opts.urn) {
89
- throw new Error("Missing required property 'zoneId'");
90
- }
91
- resourceInputs["description"] = args ? args.description : undefined;
92
- resourceInputs["groups"] = args ? args.groups : undefined;
93
- resourceInputs["paused"] = args ? args.paused : undefined;
94
- resourceInputs["priority"] = args ? args.priority : undefined;
95
- resourceInputs["rewriteAction"] = args ? args.rewriteAction : undefined;
96
- resourceInputs["rules"] = args ? args.rules : undefined;
97
- resourceInputs["urls"] = args ? args.urls : undefined;
98
- resourceInputs["zoneId"] = args ? args.zoneId : undefined;
99
- resourceInputs["overrideId"] = undefined /*out*/;
100
- }
101
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
102
- super(WafOverride.__pulumiType, name, resourceInputs, opts);
103
- }
104
- }
105
- exports.WafOverride = WafOverride;
106
- /** @internal */
107
- WafOverride.__pulumiType = 'cloudflare:index/wafOverride:WafOverride';
108
- //# sourceMappingURL=wafOverride.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wafOverride.js","sourceRoot":"","sources":["../wafOverride.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,C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CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAxGL,kCAyGC;AA3FG,gBAAgB;AACO,wBAAY,GAAG,0CAA0C,CAAC"}
package/wafPackage.d.ts DELETED
@@ -1,109 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * Provides a Cloudflare WAF rule package resource for a particular zone. This can be used to configure firewall behaviour for pre-defined firewall packages.
4
- *
5
- * ## Example Usage
6
- *
7
- * ```typescript
8
- * import * as pulumi from "@pulumi/pulumi";
9
- * import * as cloudflare from "@pulumi/cloudflare";
10
- *
11
- * const owasp = new cloudflare.WafPackage("owasp", {
12
- * actionMode: "simulate",
13
- * packageId: "a25a9a7e9c00afc1fb2e0245519d725b",
14
- * sensitivity: "medium",
15
- * zoneId: "ae36f999674d196762efcc5abb06b345",
16
- * });
17
- * ```
18
- *
19
- * ## Import
20
- *
21
- * Packages can be imported using a composite ID formed of zone ID and the WAF Package ID, e.g.
22
- *
23
- * ```sh
24
- * $ pulumi import cloudflare:index/wafPackage:WafPackage owasp ae36f999674d196762efcc5abb06b345/a25a9a7e9c00afc1fb2e0245519d725b
25
- * ```
26
- */
27
- export declare class WafPackage extends pulumi.CustomResource {
28
- /**
29
- * Get an existing WafPackage resource's state with the given name, ID, and optional extra
30
- * properties used to qualify the lookup.
31
- *
32
- * @param name The _unique_ name of the resulting resource.
33
- * @param id The _unique_ provider ID of the resource to lookup.
34
- * @param state Any extra arguments used during the lookup.
35
- * @param opts Optional settings to control the behavior of the CustomResource.
36
- */
37
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WafPackageState, opts?: pulumi.CustomResourceOptions): WafPackage;
38
- /**
39
- * Returns true if the given object is an instance of WafPackage. This is designed to work even
40
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
41
- */
42
- static isInstance(obj: any): obj is WafPackage;
43
- /**
44
- * The action mode of the package, can be one of ["block", "challenge", "simulate"].
45
- */
46
- readonly actionMode: pulumi.Output<string | undefined>;
47
- /**
48
- * The WAF Package ID.
49
- */
50
- readonly packageId: pulumi.Output<string>;
51
- /**
52
- * The sensitivity of the package, can be one of ["high", "medium", "low", "off"].
53
- */
54
- readonly sensitivity: pulumi.Output<string | undefined>;
55
- /**
56
- * The DNS zone ID to apply to.
57
- */
58
- readonly zoneId: pulumi.Output<string>;
59
- /**
60
- * Create a WafPackage resource with the given unique name, arguments, and options.
61
- *
62
- * @param name The _unique_ name of the resource.
63
- * @param args The arguments to use to populate this resource's properties.
64
- * @param opts A bag of options that control this resource's behavior.
65
- */
66
- constructor(name: string, args: WafPackageArgs, opts?: pulumi.CustomResourceOptions);
67
- }
68
- /**
69
- * Input properties used for looking up and filtering WafPackage resources.
70
- */
71
- export interface WafPackageState {
72
- /**
73
- * The action mode of the package, can be one of ["block", "challenge", "simulate"].
74
- */
75
- actionMode?: pulumi.Input<string>;
76
- /**
77
- * The WAF Package ID.
78
- */
79
- packageId?: pulumi.Input<string>;
80
- /**
81
- * The sensitivity of the package, can be one of ["high", "medium", "low", "off"].
82
- */
83
- sensitivity?: pulumi.Input<string>;
84
- /**
85
- * The DNS zone ID to apply to.
86
- */
87
- zoneId?: pulumi.Input<string>;
88
- }
89
- /**
90
- * The set of arguments for constructing a WafPackage resource.
91
- */
92
- export interface WafPackageArgs {
93
- /**
94
- * The action mode of the package, can be one of ["block", "challenge", "simulate"].
95
- */
96
- actionMode?: pulumi.Input<string>;
97
- /**
98
- * The WAF Package ID.
99
- */
100
- packageId: pulumi.Input<string>;
101
- /**
102
- * The sensitivity of the package, can be one of ["high", "medium", "low", "off"].
103
- */
104
- sensitivity?: pulumi.Input<string>;
105
- /**
106
- * The DNS zone ID to apply to.
107
- */
108
- zoneId: pulumi.Input<string>;
109
- }
package/wafPackage.js DELETED
@@ -1,86 +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.WafPackage = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("./utilities");
8
- /**
9
- * Provides a Cloudflare WAF rule package resource for a particular zone. This can be used to configure firewall behaviour for pre-defined firewall packages.
10
- *
11
- * ## Example Usage
12
- *
13
- * ```typescript
14
- * import * as pulumi from "@pulumi/pulumi";
15
- * import * as cloudflare from "@pulumi/cloudflare";
16
- *
17
- * const owasp = new cloudflare.WafPackage("owasp", {
18
- * actionMode: "simulate",
19
- * packageId: "a25a9a7e9c00afc1fb2e0245519d725b",
20
- * sensitivity: "medium",
21
- * zoneId: "ae36f999674d196762efcc5abb06b345",
22
- * });
23
- * ```
24
- *
25
- * ## Import
26
- *
27
- * Packages can be imported using a composite ID formed of zone ID and the WAF Package ID, e.g.
28
- *
29
- * ```sh
30
- * $ pulumi import cloudflare:index/wafPackage:WafPackage owasp ae36f999674d196762efcc5abb06b345/a25a9a7e9c00afc1fb2e0245519d725b
31
- * ```
32
- */
33
- class WafPackage extends pulumi.CustomResource {
34
- /**
35
- * Get an existing WafPackage resource's state with the given name, ID, and optional extra
36
- * properties used to qualify the lookup.
37
- *
38
- * @param name The _unique_ name of the resulting resource.
39
- * @param id The _unique_ provider ID of the resource to lookup.
40
- * @param state Any extra arguments used during the lookup.
41
- * @param opts Optional settings to control the behavior of the CustomResource.
42
- */
43
- static get(name, id, state, opts) {
44
- return new WafPackage(name, state, Object.assign(Object.assign({}, opts), { id: id }));
45
- }
46
- /**
47
- * Returns true if the given object is an instance of WafPackage. This is designed to work even
48
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
49
- */
50
- static isInstance(obj) {
51
- if (obj === undefined || obj === null) {
52
- return false;
53
- }
54
- return obj['__pulumiType'] === WafPackage.__pulumiType;
55
- }
56
- constructor(name, argsOrState, opts) {
57
- let resourceInputs = {};
58
- opts = opts || {};
59
- if (opts.id) {
60
- const state = argsOrState;
61
- resourceInputs["actionMode"] = state ? state.actionMode : undefined;
62
- resourceInputs["packageId"] = state ? state.packageId : undefined;
63
- resourceInputs["sensitivity"] = state ? state.sensitivity : undefined;
64
- resourceInputs["zoneId"] = state ? state.zoneId : undefined;
65
- }
66
- else {
67
- const args = argsOrState;
68
- if ((!args || args.packageId === undefined) && !opts.urn) {
69
- throw new Error("Missing required property 'packageId'");
70
- }
71
- if ((!args || args.zoneId === undefined) && !opts.urn) {
72
- throw new Error("Missing required property 'zoneId'");
73
- }
74
- resourceInputs["actionMode"] = args ? args.actionMode : undefined;
75
- resourceInputs["packageId"] = args ? args.packageId : undefined;
76
- resourceInputs["sensitivity"] = args ? args.sensitivity : undefined;
77
- resourceInputs["zoneId"] = args ? args.zoneId : undefined;
78
- }
79
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
80
- super(WafPackage.__pulumiType, name, resourceInputs, opts);
81
- }
82
- }
83
- exports.WafPackage = WafPackage;
84
- /** @internal */
85
- WafPackage.__pulumiType = 'cloudflare:index/wafPackage:WafPackage';
86
- //# sourceMappingURL=wafPackage.js.map
package/wafPackage.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"wafPackage.js","sourceRoot":"","sources":["../wafPackage.ts"],"names":[],"mappings":";AAAA,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WAAyC,CAAC;YACvD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;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,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,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,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AA7EL,gCA8EC;AAhEG,gBAAgB;AACO,uBAAY,GAAG,wCAAwC,CAAC"}
package/wafRule.d.ts DELETED
@@ -1,116 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * Provides a Cloudflare WAF rule resource for a particular zone. This can be used to configure firewall behaviour for pre-defined firewall rules.
4
- *
5
- * ## Example Usage
6
- *
7
- * ```typescript
8
- * import * as pulumi from "@pulumi/pulumi";
9
- * import * as cloudflare from "@pulumi/cloudflare";
10
- *
11
- * const rule100000 = new cloudflare.WafRule("rule100000", {
12
- * mode: "simulate",
13
- * ruleId: "100000",
14
- * zoneId: "ae36f999674d196762efcc5abb06b345",
15
- * });
16
- * ```
17
- *
18
- * ## Import
19
- *
20
- * Rules can be imported using a composite ID formed of zone ID and the WAF Rule ID, e.g.
21
- *
22
- * ```sh
23
- * $ pulumi import cloudflare:index/wafRule:WafRule 100000 ae36f999674d196762efcc5abb06b345/100000
24
- * ```
25
- */
26
- export declare class WafRule extends pulumi.CustomResource {
27
- /**
28
- * Get an existing WafRule 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?: WafRuleState, opts?: pulumi.CustomResourceOptions): WafRule;
37
- /**
38
- * Returns true if the given object is an instance of WafRule. 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 WafRule;
42
- /**
43
- * The ID of the WAF Rule Group that contains the rule.
44
- */
45
- readonly groupId: pulumi.Output<string>;
46
- /**
47
- * The mode of the rule, can be one of ["block", "challenge", "default", "disable", "simulate"] or ["on", "off"] depending on the WAF Rule type.
48
- */
49
- readonly mode: pulumi.Output<string>;
50
- /**
51
- * The ID of the WAF Rule Package that contains the rule.
52
- */
53
- readonly packageId: pulumi.Output<string>;
54
- /**
55
- * The WAF Rule ID.
56
- */
57
- readonly ruleId: pulumi.Output<string>;
58
- /**
59
- * The DNS zone ID to apply to.
60
- */
61
- readonly zoneId: pulumi.Output<string>;
62
- /**
63
- * Create a WafRule resource with the given unique name, arguments, and options.
64
- *
65
- * @param name The _unique_ name of the resource.
66
- * @param args The arguments to use to populate this resource's properties.
67
- * @param opts A bag of options that control this resource's behavior.
68
- */
69
- constructor(name: string, args: WafRuleArgs, opts?: pulumi.CustomResourceOptions);
70
- }
71
- /**
72
- * Input properties used for looking up and filtering WafRule resources.
73
- */
74
- export interface WafRuleState {
75
- /**
76
- * The ID of the WAF Rule Group that contains the rule.
77
- */
78
- groupId?: pulumi.Input<string>;
79
- /**
80
- * The mode of the rule, can be one of ["block", "challenge", "default", "disable", "simulate"] or ["on", "off"] depending on the WAF Rule type.
81
- */
82
- mode?: pulumi.Input<string>;
83
- /**
84
- * The ID of the WAF Rule Package that contains the rule.
85
- */
86
- packageId?: pulumi.Input<string>;
87
- /**
88
- * The WAF Rule ID.
89
- */
90
- ruleId?: pulumi.Input<string>;
91
- /**
92
- * The DNS zone ID to apply to.
93
- */
94
- zoneId?: pulumi.Input<string>;
95
- }
96
- /**
97
- * The set of arguments for constructing a WafRule resource.
98
- */
99
- export interface WafRuleArgs {
100
- /**
101
- * The mode of the rule, can be one of ["block", "challenge", "default", "disable", "simulate"] or ["on", "off"] depending on the WAF Rule type.
102
- */
103
- mode: pulumi.Input<string>;
104
- /**
105
- * The ID of the WAF Rule Package that contains the rule.
106
- */
107
- packageId?: pulumi.Input<string>;
108
- /**
109
- * The WAF Rule ID.
110
- */
111
- ruleId: pulumi.Input<string>;
112
- /**
113
- * The DNS zone ID to apply to.
114
- */
115
- zoneId: pulumi.Input<string>;
116
- }
package/wafRule.js DELETED
@@ -1,90 +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.WafRule = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("./utilities");
8
- /**
9
- * Provides a Cloudflare WAF rule resource for a particular zone. This can be used to configure firewall behaviour for pre-defined firewall rules.
10
- *
11
- * ## Example Usage
12
- *
13
- * ```typescript
14
- * import * as pulumi from "@pulumi/pulumi";
15
- * import * as cloudflare from "@pulumi/cloudflare";
16
- *
17
- * const rule100000 = new cloudflare.WafRule("rule100000", {
18
- * mode: "simulate",
19
- * ruleId: "100000",
20
- * zoneId: "ae36f999674d196762efcc5abb06b345",
21
- * });
22
- * ```
23
- *
24
- * ## Import
25
- *
26
- * Rules can be imported using a composite ID formed of zone ID and the WAF Rule ID, e.g.
27
- *
28
- * ```sh
29
- * $ pulumi import cloudflare:index/wafRule:WafRule 100000 ae36f999674d196762efcc5abb06b345/100000
30
- * ```
31
- */
32
- class WafRule extends pulumi.CustomResource {
33
- /**
34
- * Get an existing WafRule 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 WafRule(name, state, Object.assign(Object.assign({}, opts), { id: id }));
44
- }
45
- /**
46
- * Returns true if the given object is an instance of WafRule. 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'] === WafRule.__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["ruleId"] = state ? state.ruleId : undefined;
64
- resourceInputs["zoneId"] = state ? state.zoneId : undefined;
65
- }
66
- else {
67
- const args = argsOrState;
68
- if ((!args || args.mode === undefined) && !opts.urn) {
69
- throw new Error("Missing required property 'mode'");
70
- }
71
- if ((!args || args.ruleId === undefined) && !opts.urn) {
72
- throw new Error("Missing required property 'ruleId'");
73
- }
74
- if ((!args || args.zoneId === undefined) && !opts.urn) {
75
- throw new Error("Missing required property 'zoneId'");
76
- }
77
- resourceInputs["mode"] = args ? args.mode : undefined;
78
- resourceInputs["packageId"] = args ? args.packageId : undefined;
79
- resourceInputs["ruleId"] = args ? args.ruleId : undefined;
80
- resourceInputs["zoneId"] = args ? args.zoneId : undefined;
81
- resourceInputs["groupId"] = undefined /*out*/;
82
- }
83
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
84
- super(WafRule.__pulumiType, name, resourceInputs, opts);
85
- }
86
- }
87
- exports.WafRule = WafRule;
88
- /** @internal */
89
- WafRule.__pulumiType = 'cloudflare:index/wafRule:WafRule';
90
- //# sourceMappingURL=wafRule.js.map
package/wafRule.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"wafRule.js","sourceRoot":"","sources":["../wafRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IA+BD,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QAC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