@pulumi/cloudflare 4.6.0 → 4.7.0-alpha.1653338920
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/accessApplication.d.ts +61 -1
- package/accessApplication.js +2 -0
- package/accessApplication.js.map +1 -1
- package/accessBookmark.d.ts +139 -0
- package/accessBookmark.js +93 -0
- package/accessBookmark.js.map +1 -0
- package/accessPolicy.d.ts +2 -2
- package/accessPolicy.js +2 -2
- package/byoIpPrefix.d.ts +3 -0
- package/byoIpPrefix.js +5 -0
- package/byoIpPrefix.js.map +1 -1
- package/certificatePack.d.ts +22 -6
- package/certificatePack.js +3 -0
- package/certificatePack.js.map +1 -1
- package/customPages.d.ts +3 -3
- package/devicePostureRule.d.ts +16 -0
- package/devicePostureRule.js +3 -0
- package/devicePostureRule.js.map +1 -1
- package/healthcheck.d.ts +20 -8
- package/healthcheck.js +2 -2
- package/healthcheck.js.map +1 -1
- package/index.d.ts +2 -0
- package/index.js +10 -0
- package/index.js.map +1 -1
- package/logpushJob.d.ts +3 -3
- package/notificationPolicy.d.ts +40 -27
- package/notificationPolicy.js +28 -2
- package/notificationPolicy.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/ruleset.d.ts +24 -3
- package/ruleset.js +21 -0
- package/ruleset.js.map +1 -1
- package/teamsList.d.ts +3 -3
- package/tunnelRoute.d.ts +127 -0
- package/tunnelRoute.js +107 -0
- package/tunnelRoute.js.map +1 -0
- package/types/input.d.ts +67 -1
- package/types/output.d.ts +67 -1
- package/workerCronTrigger.d.ts +3 -0
- package/workerCronTrigger.js +5 -0
- package/workerCronTrigger.js.map +1 -1
- package/workersKv.d.ts +1 -1
- package/workersKv.js +1 -1
package/ruleset.d.ts
CHANGED
|
@@ -165,6 +165,27 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
165
165
|
* }],
|
|
166
166
|
* zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
|
|
167
167
|
* });
|
|
168
|
+
* // Change origin for an API route
|
|
169
|
+
* const httpOriginExample = new cloudflare.Ruleset("http_origin_example", {
|
|
170
|
+
* description: "Change origin for a route",
|
|
171
|
+
* kind: "zone",
|
|
172
|
+
* name: "Change to some origin",
|
|
173
|
+
* phase: "http_request_origin",
|
|
174
|
+
* rules: [{
|
|
175
|
+
* action: "route",
|
|
176
|
+
* actionParameters: {
|
|
177
|
+
* hostHeader: "some.host",
|
|
178
|
+
* origin: {
|
|
179
|
+
* host: "some.host",
|
|
180
|
+
* port: 80,
|
|
181
|
+
* },
|
|
182
|
+
* },
|
|
183
|
+
* description: "change origin to some.host",
|
|
184
|
+
* enabled: true,
|
|
185
|
+
* expression: "(http.request.uri.path matches \"^/api/\")",
|
|
186
|
+
* }],
|
|
187
|
+
* zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
|
|
188
|
+
* });
|
|
168
189
|
* ```
|
|
169
190
|
*
|
|
170
191
|
* ## Import
|
|
@@ -204,7 +225,7 @@ export declare class Ruleset extends pulumi.CustomResource {
|
|
|
204
225
|
*/
|
|
205
226
|
readonly name: pulumi.Output<string>;
|
|
206
227
|
/**
|
|
207
|
-
* Point in the request/response lifecycle where the ruleset will be created. Valid values are `"ddosL4"`, `"ddosL7"`, `"httpRequestFirewallCustom"`, `"httpRequestFirewallManaged"`, `"httpRequestLateTransform"`, `"httpResponseHeadersTransform"`, `"httpRequestMain"`, `"httpRequestSanitize"`, `"httpRequestTransform"`, `"httpResponseFirewallManaged"`, `"magicTransit"`, or `"httpRatelimit"`.
|
|
228
|
+
* Point in the request/response lifecycle where the ruleset will be created. Valid values are `"ddosL4"`, `"ddosL7"`, `"httpRequestFirewallCustom"`, `"httpRequestFirewallManaged"`, `"httpRequestLateTransform"`, `"httpResponseHeadersTransform"`, `"httpRequestOrigin"`, `"httpRequestMain"`, `"httpRequestSanitize"`, `"httpRequestTransform"`, `"httpResponseFirewallManaged"`, `"magicTransit"`, or `"httpRatelimit"`.
|
|
208
229
|
*/
|
|
209
230
|
readonly phase: pulumi.Output<string>;
|
|
210
231
|
/**
|
|
@@ -249,7 +270,7 @@ export interface RulesetState {
|
|
|
249
270
|
*/
|
|
250
271
|
name?: pulumi.Input<string>;
|
|
251
272
|
/**
|
|
252
|
-
* Point in the request/response lifecycle where the ruleset will be created. Valid values are `"ddosL4"`, `"ddosL7"`, `"httpRequestFirewallCustom"`, `"httpRequestFirewallManaged"`, `"httpRequestLateTransform"`, `"httpResponseHeadersTransform"`, `"httpRequestMain"`, `"httpRequestSanitize"`, `"httpRequestTransform"`, `"httpResponseFirewallManaged"`, `"magicTransit"`, or `"httpRatelimit"`.
|
|
273
|
+
* Point in the request/response lifecycle where the ruleset will be created. Valid values are `"ddosL4"`, `"ddosL7"`, `"httpRequestFirewallCustom"`, `"httpRequestFirewallManaged"`, `"httpRequestLateTransform"`, `"httpResponseHeadersTransform"`, `"httpRequestOrigin"`, `"httpRequestMain"`, `"httpRequestSanitize"`, `"httpRequestTransform"`, `"httpResponseFirewallManaged"`, `"magicTransit"`, or `"httpRatelimit"`.
|
|
253
274
|
*/
|
|
254
275
|
phase?: pulumi.Input<string>;
|
|
255
276
|
/**
|
|
@@ -286,7 +307,7 @@ export interface RulesetArgs {
|
|
|
286
307
|
*/
|
|
287
308
|
name: pulumi.Input<string>;
|
|
288
309
|
/**
|
|
289
|
-
* Point in the request/response lifecycle where the ruleset will be created. Valid values are `"ddosL4"`, `"ddosL7"`, `"httpRequestFirewallCustom"`, `"httpRequestFirewallManaged"`, `"httpRequestLateTransform"`, `"httpResponseHeadersTransform"`, `"httpRequestMain"`, `"httpRequestSanitize"`, `"httpRequestTransform"`, `"httpResponseFirewallManaged"`, `"magicTransit"`, or `"httpRatelimit"`.
|
|
310
|
+
* Point in the request/response lifecycle where the ruleset will be created. Valid values are `"ddosL4"`, `"ddosL7"`, `"httpRequestFirewallCustom"`, `"httpRequestFirewallManaged"`, `"httpRequestLateTransform"`, `"httpResponseHeadersTransform"`, `"httpRequestOrigin"`, `"httpRequestMain"`, `"httpRequestSanitize"`, `"httpRequestTransform"`, `"httpResponseFirewallManaged"`, `"magicTransit"`, or `"httpRatelimit"`.
|
|
290
311
|
*/
|
|
291
312
|
phase: pulumi.Input<string>;
|
|
292
313
|
/**
|
package/ruleset.js
CHANGED
|
@@ -170,6 +170,27 @@ const utilities = require("./utilities");
|
|
|
170
170
|
* }],
|
|
171
171
|
* zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
|
|
172
172
|
* });
|
|
173
|
+
* // Change origin for an API route
|
|
174
|
+
* const httpOriginExample = new cloudflare.Ruleset("http_origin_example", {
|
|
175
|
+
* description: "Change origin for a route",
|
|
176
|
+
* kind: "zone",
|
|
177
|
+
* name: "Change to some origin",
|
|
178
|
+
* phase: "http_request_origin",
|
|
179
|
+
* rules: [{
|
|
180
|
+
* action: "route",
|
|
181
|
+
* actionParameters: {
|
|
182
|
+
* hostHeader: "some.host",
|
|
183
|
+
* origin: {
|
|
184
|
+
* host: "some.host",
|
|
185
|
+
* port: 80,
|
|
186
|
+
* },
|
|
187
|
+
* },
|
|
188
|
+
* description: "change origin to some.host",
|
|
189
|
+
* enabled: true,
|
|
190
|
+
* expression: "(http.request.uri.path matches \"^/api/\")",
|
|
191
|
+
* }],
|
|
192
|
+
* zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
|
|
193
|
+
* });
|
|
173
194
|
* ```
|
|
174
195
|
*
|
|
175
196
|
* ## Import
|
package/ruleset.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ruleset.js","sourceRoot":"","sources":["../ruleset.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"ruleset.js","sourceRoot":"","sources":["../ruleset.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;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AAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,0BAA0B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9F,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,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IAvGD;;;;;;;;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;;AA1BL,0BAyGC;AA3FG,gBAAgB;AACO,oBAAY,GAAG,kCAAkC,CAAC"}
|
package/teamsList.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export declare class TeamsList extends pulumi.CustomResource {
|
|
|
62
62
|
*/
|
|
63
63
|
readonly name: pulumi.Output<string>;
|
|
64
64
|
/**
|
|
65
|
-
* The teams list type. Valid values are `SERIAL`, `URL`, `DOMAIN`, and `EMAIL`.
|
|
65
|
+
* The teams list type. Valid values are `IP`, `SERIAL`, `URL`, `DOMAIN`, and `EMAIL`.
|
|
66
66
|
*/
|
|
67
67
|
readonly type: pulumi.Output<string>;
|
|
68
68
|
/**
|
|
@@ -95,7 +95,7 @@ export interface TeamsListState {
|
|
|
95
95
|
*/
|
|
96
96
|
name?: pulumi.Input<string>;
|
|
97
97
|
/**
|
|
98
|
-
* The teams list type. Valid values are `SERIAL`, `URL`, `DOMAIN`, and `EMAIL`.
|
|
98
|
+
* The teams list type. Valid values are `IP`, `SERIAL`, `URL`, `DOMAIN`, and `EMAIL`.
|
|
99
99
|
*/
|
|
100
100
|
type?: pulumi.Input<string>;
|
|
101
101
|
}
|
|
@@ -120,7 +120,7 @@ export interface TeamsListArgs {
|
|
|
120
120
|
*/
|
|
121
121
|
name: pulumi.Input<string>;
|
|
122
122
|
/**
|
|
123
|
-
* The teams list type. Valid values are `SERIAL`, `URL`, `DOMAIN`, and `EMAIL`.
|
|
123
|
+
* The teams list type. Valid values are `IP`, `SERIAL`, `URL`, `DOMAIN`, and `EMAIL`.
|
|
124
124
|
*/
|
|
125
125
|
type: pulumi.Input<string>;
|
|
126
126
|
}
|
package/tunnelRoute.d.ts
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a resource, that manages Cloudflare tunnel routes for Zero Trust. Tunnel
|
|
4
|
+
* routes are used to direct IP traffic through Cloudflare Tunnels.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
11
|
+
*
|
|
12
|
+
* const example = new cloudflare.TunnelRoute("example", {
|
|
13
|
+
* accountId: "c4a7362d577a6c3019a474fd6f485821",
|
|
14
|
+
* comment: "New tunnel route for documentation",
|
|
15
|
+
* network: "192.0.2.24/32",
|
|
16
|
+
* tunnelId: "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
22
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
23
|
+
*
|
|
24
|
+
* const tunnel = new cloudflare.ArgoTunnel("tunnel", {
|
|
25
|
+
* accountId: "c4a7362d577a6c3019a474fd6f485821",
|
|
26
|
+
* name: "my_tunnel",
|
|
27
|
+
* secret: "AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
|
|
28
|
+
* });
|
|
29
|
+
* const example = new cloudflare.TunnelRoute("example", {
|
|
30
|
+
* accountId: "c4a7362d577a6c3019a474fd6f485821",
|
|
31
|
+
* tunnelId: tunnel.id,
|
|
32
|
+
* network: "192.0.2.24/32",
|
|
33
|
+
* comment: "New tunnel route for documentation",
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* ## Import
|
|
38
|
+
*
|
|
39
|
+
* An existing tunnel route can be imported using the account ID and network CIDR.
|
|
40
|
+
*
|
|
41
|
+
* ```sh
|
|
42
|
+
* $ pulumi import cloudflare:index/tunnelRoute:TunnelRoute cloudflare_tunnel_route c4a7362d577a6c3019a474fd6f485821/192.0.2.24/32
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare class TunnelRoute extends pulumi.CustomResource {
|
|
46
|
+
/**
|
|
47
|
+
* Get an existing TunnelRoute 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: string, id: pulumi.Input<pulumi.ID>, state?: TunnelRouteState, opts?: pulumi.CustomResourceOptions): TunnelRoute;
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of TunnelRoute. This is designed to work even
|
|
58
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
59
|
+
*/
|
|
60
|
+
static isInstance(obj: any): obj is TunnelRoute;
|
|
61
|
+
/**
|
|
62
|
+
* The ID of the account where the tunnel route is being created.
|
|
63
|
+
*/
|
|
64
|
+
readonly accountId: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Description of the tunnel route.
|
|
67
|
+
*/
|
|
68
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
|
|
71
|
+
*/
|
|
72
|
+
readonly network: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* The ID of the tunnel that will service the tunnel route.
|
|
75
|
+
*/
|
|
76
|
+
readonly tunnelId: pulumi.Output<string>;
|
|
77
|
+
/**
|
|
78
|
+
* Create a TunnelRoute resource with the given unique name, arguments, and options.
|
|
79
|
+
*
|
|
80
|
+
* @param name The _unique_ name of the resource.
|
|
81
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
82
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
83
|
+
*/
|
|
84
|
+
constructor(name: string, args: TunnelRouteArgs, opts?: pulumi.CustomResourceOptions);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Input properties used for looking up and filtering TunnelRoute resources.
|
|
88
|
+
*/
|
|
89
|
+
export interface TunnelRouteState {
|
|
90
|
+
/**
|
|
91
|
+
* The ID of the account where the tunnel route is being created.
|
|
92
|
+
*/
|
|
93
|
+
accountId?: pulumi.Input<string>;
|
|
94
|
+
/**
|
|
95
|
+
* Description of the tunnel route.
|
|
96
|
+
*/
|
|
97
|
+
comment?: pulumi.Input<string>;
|
|
98
|
+
/**
|
|
99
|
+
* The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
|
|
100
|
+
*/
|
|
101
|
+
network?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* The ID of the tunnel that will service the tunnel route.
|
|
104
|
+
*/
|
|
105
|
+
tunnelId?: pulumi.Input<string>;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* The set of arguments for constructing a TunnelRoute resource.
|
|
109
|
+
*/
|
|
110
|
+
export interface TunnelRouteArgs {
|
|
111
|
+
/**
|
|
112
|
+
* The ID of the account where the tunnel route is being created.
|
|
113
|
+
*/
|
|
114
|
+
accountId: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Description of the tunnel route.
|
|
117
|
+
*/
|
|
118
|
+
comment?: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
|
|
121
|
+
*/
|
|
122
|
+
network: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* The ID of the tunnel that will service the tunnel route.
|
|
125
|
+
*/
|
|
126
|
+
tunnelId: pulumi.Input<string>;
|
|
127
|
+
}
|
package/tunnelRoute.js
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
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.TunnelRoute = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource, that manages Cloudflare tunnel routes for Zero Trust. Tunnel
|
|
10
|
+
* routes are used to direct IP traffic through Cloudflare Tunnels.
|
|
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.TunnelRoute("example", {
|
|
19
|
+
* accountId: "c4a7362d577a6c3019a474fd6f485821",
|
|
20
|
+
* comment: "New tunnel route for documentation",
|
|
21
|
+
* network: "192.0.2.24/32",
|
|
22
|
+
* tunnelId: "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ```typescript
|
|
27
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
28
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
29
|
+
*
|
|
30
|
+
* const tunnel = new cloudflare.ArgoTunnel("tunnel", {
|
|
31
|
+
* accountId: "c4a7362d577a6c3019a474fd6f485821",
|
|
32
|
+
* name: "my_tunnel",
|
|
33
|
+
* secret: "AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
|
|
34
|
+
* });
|
|
35
|
+
* const example = new cloudflare.TunnelRoute("example", {
|
|
36
|
+
* accountId: "c4a7362d577a6c3019a474fd6f485821",
|
|
37
|
+
* tunnelId: tunnel.id,
|
|
38
|
+
* network: "192.0.2.24/32",
|
|
39
|
+
* comment: "New tunnel route for documentation",
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* ## Import
|
|
44
|
+
*
|
|
45
|
+
* An existing tunnel route can be imported using the account ID and network CIDR.
|
|
46
|
+
*
|
|
47
|
+
* ```sh
|
|
48
|
+
* $ pulumi import cloudflare:index/tunnelRoute:TunnelRoute cloudflare_tunnel_route c4a7362d577a6c3019a474fd6f485821/192.0.2.24/32
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
class TunnelRoute extends pulumi.CustomResource {
|
|
52
|
+
constructor(name, argsOrState, opts) {
|
|
53
|
+
let resourceInputs = {};
|
|
54
|
+
opts = opts || {};
|
|
55
|
+
if (opts.id) {
|
|
56
|
+
const state = argsOrState;
|
|
57
|
+
resourceInputs["accountId"] = state ? state.accountId : undefined;
|
|
58
|
+
resourceInputs["comment"] = state ? state.comment : undefined;
|
|
59
|
+
resourceInputs["network"] = state ? state.network : undefined;
|
|
60
|
+
resourceInputs["tunnelId"] = state ? state.tunnelId : undefined;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
const args = argsOrState;
|
|
64
|
+
if ((!args || args.accountId === undefined) && !opts.urn) {
|
|
65
|
+
throw new Error("Missing required property 'accountId'");
|
|
66
|
+
}
|
|
67
|
+
if ((!args || args.network === undefined) && !opts.urn) {
|
|
68
|
+
throw new Error("Missing required property 'network'");
|
|
69
|
+
}
|
|
70
|
+
if ((!args || args.tunnelId === undefined) && !opts.urn) {
|
|
71
|
+
throw new Error("Missing required property 'tunnelId'");
|
|
72
|
+
}
|
|
73
|
+
resourceInputs["accountId"] = args ? args.accountId : undefined;
|
|
74
|
+
resourceInputs["comment"] = args ? args.comment : undefined;
|
|
75
|
+
resourceInputs["network"] = args ? args.network : undefined;
|
|
76
|
+
resourceInputs["tunnelId"] = args ? args.tunnelId : undefined;
|
|
77
|
+
}
|
|
78
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
79
|
+
super(TunnelRoute.__pulumiType, name, resourceInputs, opts);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Get an existing TunnelRoute resource's state with the given name, ID, and optional extra
|
|
83
|
+
* properties used to qualify the lookup.
|
|
84
|
+
*
|
|
85
|
+
* @param name The _unique_ name of the resulting resource.
|
|
86
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
87
|
+
* @param state Any extra arguments used during the lookup.
|
|
88
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
89
|
+
*/
|
|
90
|
+
static get(name, id, state, opts) {
|
|
91
|
+
return new TunnelRoute(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Returns true if the given object is an instance of TunnelRoute. This is designed to work even
|
|
95
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
96
|
+
*/
|
|
97
|
+
static isInstance(obj) {
|
|
98
|
+
if (obj === undefined || obj === null) {
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
return obj['__pulumiType'] === TunnelRoute.__pulumiType;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.TunnelRoute = TunnelRoute;
|
|
105
|
+
/** @internal */
|
|
106
|
+
TunnelRoute.__pulumiType = 'cloudflare:index/tunnelRoute:TunnelRoute';
|
|
107
|
+
//# sourceMappingURL=tunnelRoute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tunnelRoute.js","sourceRoot":"","sources":["../tunnelRoute.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAqDlD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAA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AAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;IA/ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AA1BL,kCAiFC;AAnEG,gBAAgB;AACO,wBAAY,GAAG,0CAA0C,CAAC"}
|
package/types/input.d.ts
CHANGED
|
@@ -969,6 +969,41 @@ export interface NotificationPolicyEmailIntegration {
|
|
|
969
969
|
*/
|
|
970
970
|
name?: pulumi.Input<string>;
|
|
971
971
|
}
|
|
972
|
+
export interface NotificationPolicyFilters {
|
|
973
|
+
/**
|
|
974
|
+
* State of the pool to alert on. Example: `"true"`, `"false"`.
|
|
975
|
+
*/
|
|
976
|
+
enableds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
977
|
+
/**
|
|
978
|
+
* Identifier health check.
|
|
979
|
+
*/
|
|
980
|
+
healthCheckIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
981
|
+
/**
|
|
982
|
+
* A numerical limit. Example: `"100"`
|
|
983
|
+
*/
|
|
984
|
+
limits?: pulumi.Input<pulumi.Input<string>[]>;
|
|
985
|
+
/**
|
|
986
|
+
* Load balancer pool identifier.
|
|
987
|
+
*/
|
|
988
|
+
poolIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
989
|
+
/**
|
|
990
|
+
* Product name. Available values: `"workerRequests"`, `"workerDurableObjectsRequests"`, `"workerDurableObjectsDuration"`, `"workerDurableObjectsDataTransfer"`, `"workerDurableObjectsStoredData"`, `"workerDurableObjectsStorageDeletes"`, `"workerDurableObjectsStorageWrites"`, `"workerDurableObjectsStorageReads"`.
|
|
991
|
+
*/
|
|
992
|
+
products?: pulumi.Input<pulumi.Input<string>[]>;
|
|
993
|
+
services?: pulumi.Input<pulumi.Input<string>[]>;
|
|
994
|
+
/**
|
|
995
|
+
* A numerical limit. Example: `"99.9"`
|
|
996
|
+
*/
|
|
997
|
+
slos?: pulumi.Input<pulumi.Input<string>[]>;
|
|
998
|
+
/**
|
|
999
|
+
* Status to alert on. Example: `"Unhealthy"`, `"Healthy"`.
|
|
1000
|
+
*/
|
|
1001
|
+
statuses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1002
|
+
/**
|
|
1003
|
+
* A list of zone identifiers.
|
|
1004
|
+
*/
|
|
1005
|
+
zones?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1006
|
+
}
|
|
972
1007
|
export interface NotificationPolicyPagerdutyIntegration {
|
|
973
1008
|
id: pulumi.Input<string>;
|
|
974
1009
|
/**
|
|
@@ -1387,7 +1422,7 @@ export interface RulesetRule {
|
|
|
1387
1422
|
/**
|
|
1388
1423
|
* Brief summary of the ruleset rule and its intended use.
|
|
1389
1424
|
*/
|
|
1390
|
-
description
|
|
1425
|
+
description?: pulumi.Input<string>;
|
|
1391
1426
|
/**
|
|
1392
1427
|
* Defines if the current rule-level override enables or disables the rule.
|
|
1393
1428
|
*/
|
|
@@ -1404,6 +1439,10 @@ export interface RulesetRule {
|
|
|
1404
1439
|
* Rule ID to apply the override to.
|
|
1405
1440
|
*/
|
|
1406
1441
|
id?: pulumi.Input<string>;
|
|
1442
|
+
/**
|
|
1443
|
+
* List parameters to configure how the rule generates logs (refer to the nested schema).
|
|
1444
|
+
*/
|
|
1445
|
+
logging?: pulumi.Input<inputs.RulesetRuleLogging>;
|
|
1407
1446
|
/**
|
|
1408
1447
|
* List of parameters that configure HTTP rate limiting behaviour (refer to the nested schema).
|
|
1409
1448
|
*/
|
|
@@ -1419,6 +1458,10 @@ export interface RulesetRuleActionParameters {
|
|
|
1419
1458
|
* List of HTTP header modifications to perform in the ruleset rule (refer to the nested schema).
|
|
1420
1459
|
*/
|
|
1421
1460
|
headers?: pulumi.Input<pulumi.Input<inputs.RulesetRuleActionParametersHeader>[]>;
|
|
1461
|
+
/**
|
|
1462
|
+
* Host Header that request origin receives.
|
|
1463
|
+
*/
|
|
1464
|
+
hostHeader?: pulumi.Input<string>;
|
|
1422
1465
|
/**
|
|
1423
1466
|
* Rule ID to apply the override to.
|
|
1424
1467
|
*/
|
|
@@ -1428,6 +1471,10 @@ export interface RulesetRuleActionParameters {
|
|
|
1428
1471
|
* List of properties to configure WAF payload logging (refer to the nested schema).
|
|
1429
1472
|
*/
|
|
1430
1473
|
matchedData?: pulumi.Input<inputs.RulesetRuleActionParametersMatchedData>;
|
|
1474
|
+
/**
|
|
1475
|
+
* List of properties to change request origin (refer to the nested schema).
|
|
1476
|
+
*/
|
|
1477
|
+
origin?: pulumi.Input<inputs.RulesetRuleActionParametersOrigin>;
|
|
1431
1478
|
/**
|
|
1432
1479
|
* List of override configurations to apply to the ruleset (refer to the nested schema).
|
|
1433
1480
|
*/
|
|
@@ -1485,6 +1532,16 @@ export interface RulesetRuleActionParametersMatchedData {
|
|
|
1485
1532
|
*/
|
|
1486
1533
|
publicKey?: pulumi.Input<string>;
|
|
1487
1534
|
}
|
|
1535
|
+
export interface RulesetRuleActionParametersOrigin {
|
|
1536
|
+
/**
|
|
1537
|
+
* Origin Hostname where request is sent.
|
|
1538
|
+
*/
|
|
1539
|
+
host?: pulumi.Input<string>;
|
|
1540
|
+
/**
|
|
1541
|
+
* Oirign Port where request is sent.
|
|
1542
|
+
*/
|
|
1543
|
+
port?: pulumi.Input<number>;
|
|
1544
|
+
}
|
|
1488
1545
|
export interface RulesetRuleActionParametersOverrides {
|
|
1489
1546
|
/**
|
|
1490
1547
|
* Action to perform in the rule-level override. Valid values are `"block"`, `"challenge"`, `"ddosDynamic"`, `"execute"`, `"forceConnectionClose"`, `"jsChallenge"`, `"managedChallenge"`, `"log"`, `"rewrite"`, `"score"`, or `"skip"`.
|
|
@@ -1554,6 +1611,9 @@ export interface RulesetRuleActionParametersResponse {
|
|
|
1554
1611
|
statusCode?: pulumi.Input<number>;
|
|
1555
1612
|
}
|
|
1556
1613
|
export interface RulesetRuleActionParametersUri {
|
|
1614
|
+
/**
|
|
1615
|
+
* List of properties to change request origin (refer to the nested schema).
|
|
1616
|
+
*/
|
|
1557
1617
|
origin?: pulumi.Input<boolean>;
|
|
1558
1618
|
/**
|
|
1559
1619
|
* URI path configuration when performing a URL rewrite (refer to the nested schema).
|
|
@@ -1594,6 +1654,12 @@ export interface RulesetRuleExposedCredentialCheck {
|
|
|
1594
1654
|
*/
|
|
1595
1655
|
usernameExpression?: pulumi.Input<string>;
|
|
1596
1656
|
}
|
|
1657
|
+
export interface RulesetRuleLogging {
|
|
1658
|
+
/**
|
|
1659
|
+
* Defines if the current rule-level override enables or disables the rule.
|
|
1660
|
+
*/
|
|
1661
|
+
enabled?: pulumi.Input<boolean>;
|
|
1662
|
+
}
|
|
1597
1663
|
export interface RulesetRuleRatelimit {
|
|
1598
1664
|
/**
|
|
1599
1665
|
* List of parameters that define how Cloudflare tracks the request rate for this rule.
|
package/types/output.d.ts
CHANGED
|
@@ -1069,6 +1069,41 @@ export interface NotificationPolicyEmailIntegration {
|
|
|
1069
1069
|
*/
|
|
1070
1070
|
name?: string;
|
|
1071
1071
|
}
|
|
1072
|
+
export interface NotificationPolicyFilters {
|
|
1073
|
+
/**
|
|
1074
|
+
* State of the pool to alert on. Example: `"true"`, `"false"`.
|
|
1075
|
+
*/
|
|
1076
|
+
enableds?: string[];
|
|
1077
|
+
/**
|
|
1078
|
+
* Identifier health check.
|
|
1079
|
+
*/
|
|
1080
|
+
healthCheckIds?: string[];
|
|
1081
|
+
/**
|
|
1082
|
+
* A numerical limit. Example: `"100"`
|
|
1083
|
+
*/
|
|
1084
|
+
limits?: string[];
|
|
1085
|
+
/**
|
|
1086
|
+
* Load balancer pool identifier.
|
|
1087
|
+
*/
|
|
1088
|
+
poolIds?: string[];
|
|
1089
|
+
/**
|
|
1090
|
+
* Product name. Available values: `"workerRequests"`, `"workerDurableObjectsRequests"`, `"workerDurableObjectsDuration"`, `"workerDurableObjectsDataTransfer"`, `"workerDurableObjectsStoredData"`, `"workerDurableObjectsStorageDeletes"`, `"workerDurableObjectsStorageWrites"`, `"workerDurableObjectsStorageReads"`.
|
|
1091
|
+
*/
|
|
1092
|
+
products?: string[];
|
|
1093
|
+
services?: string[];
|
|
1094
|
+
/**
|
|
1095
|
+
* A numerical limit. Example: `"99.9"`
|
|
1096
|
+
*/
|
|
1097
|
+
slos?: string[];
|
|
1098
|
+
/**
|
|
1099
|
+
* Status to alert on. Example: `"Unhealthy"`, `"Healthy"`.
|
|
1100
|
+
*/
|
|
1101
|
+
statuses?: string[];
|
|
1102
|
+
/**
|
|
1103
|
+
* A list of zone identifiers.
|
|
1104
|
+
*/
|
|
1105
|
+
zones?: string[];
|
|
1106
|
+
}
|
|
1072
1107
|
export interface NotificationPolicyPagerdutyIntegration {
|
|
1073
1108
|
id: string;
|
|
1074
1109
|
/**
|
|
@@ -1487,7 +1522,7 @@ export interface RulesetRule {
|
|
|
1487
1522
|
/**
|
|
1488
1523
|
* Brief summary of the ruleset rule and its intended use.
|
|
1489
1524
|
*/
|
|
1490
|
-
description
|
|
1525
|
+
description?: string;
|
|
1491
1526
|
/**
|
|
1492
1527
|
* Defines if the current rule-level override enables or disables the rule.
|
|
1493
1528
|
*/
|
|
@@ -1504,6 +1539,10 @@ export interface RulesetRule {
|
|
|
1504
1539
|
* Rule ID to apply the override to.
|
|
1505
1540
|
*/
|
|
1506
1541
|
id: string;
|
|
1542
|
+
/**
|
|
1543
|
+
* List parameters to configure how the rule generates logs (refer to the nested schema).
|
|
1544
|
+
*/
|
|
1545
|
+
logging?: outputs.RulesetRuleLogging;
|
|
1507
1546
|
/**
|
|
1508
1547
|
* List of parameters that configure HTTP rate limiting behaviour (refer to the nested schema).
|
|
1509
1548
|
*/
|
|
@@ -1519,6 +1558,10 @@ export interface RulesetRuleActionParameters {
|
|
|
1519
1558
|
* List of HTTP header modifications to perform in the ruleset rule (refer to the nested schema).
|
|
1520
1559
|
*/
|
|
1521
1560
|
headers?: outputs.RulesetRuleActionParametersHeader[];
|
|
1561
|
+
/**
|
|
1562
|
+
* Host Header that request origin receives.
|
|
1563
|
+
*/
|
|
1564
|
+
hostHeader?: string;
|
|
1522
1565
|
/**
|
|
1523
1566
|
* Rule ID to apply the override to.
|
|
1524
1567
|
*/
|
|
@@ -1528,6 +1571,10 @@ export interface RulesetRuleActionParameters {
|
|
|
1528
1571
|
* List of properties to configure WAF payload logging (refer to the nested schema).
|
|
1529
1572
|
*/
|
|
1530
1573
|
matchedData?: outputs.RulesetRuleActionParametersMatchedData;
|
|
1574
|
+
/**
|
|
1575
|
+
* List of properties to change request origin (refer to the nested schema).
|
|
1576
|
+
*/
|
|
1577
|
+
origin?: outputs.RulesetRuleActionParametersOrigin;
|
|
1531
1578
|
/**
|
|
1532
1579
|
* List of override configurations to apply to the ruleset (refer to the nested schema).
|
|
1533
1580
|
*/
|
|
@@ -1585,6 +1632,16 @@ export interface RulesetRuleActionParametersMatchedData {
|
|
|
1585
1632
|
*/
|
|
1586
1633
|
publicKey?: string;
|
|
1587
1634
|
}
|
|
1635
|
+
export interface RulesetRuleActionParametersOrigin {
|
|
1636
|
+
/**
|
|
1637
|
+
* Origin Hostname where request is sent.
|
|
1638
|
+
*/
|
|
1639
|
+
host?: string;
|
|
1640
|
+
/**
|
|
1641
|
+
* Oirign Port where request is sent.
|
|
1642
|
+
*/
|
|
1643
|
+
port?: number;
|
|
1644
|
+
}
|
|
1588
1645
|
export interface RulesetRuleActionParametersOverrides {
|
|
1589
1646
|
/**
|
|
1590
1647
|
* Action to perform in the rule-level override. Valid values are `"block"`, `"challenge"`, `"ddosDynamic"`, `"execute"`, `"forceConnectionClose"`, `"jsChallenge"`, `"managedChallenge"`, `"log"`, `"rewrite"`, `"score"`, or `"skip"`.
|
|
@@ -1654,6 +1711,9 @@ export interface RulesetRuleActionParametersResponse {
|
|
|
1654
1711
|
statusCode?: number;
|
|
1655
1712
|
}
|
|
1656
1713
|
export interface RulesetRuleActionParametersUri {
|
|
1714
|
+
/**
|
|
1715
|
+
* List of properties to change request origin (refer to the nested schema).
|
|
1716
|
+
*/
|
|
1657
1717
|
origin?: boolean;
|
|
1658
1718
|
/**
|
|
1659
1719
|
* URI path configuration when performing a URL rewrite (refer to the nested schema).
|
|
@@ -1694,6 +1754,12 @@ export interface RulesetRuleExposedCredentialCheck {
|
|
|
1694
1754
|
*/
|
|
1695
1755
|
usernameExpression?: string;
|
|
1696
1756
|
}
|
|
1757
|
+
export interface RulesetRuleLogging {
|
|
1758
|
+
/**
|
|
1759
|
+
* Defines if the current rule-level override enables or disables the rule.
|
|
1760
|
+
*/
|
|
1761
|
+
enabled?: boolean;
|
|
1762
|
+
}
|
|
1697
1763
|
export interface RulesetRuleRatelimit {
|
|
1698
1764
|
/**
|
|
1699
1765
|
* List of parameters that define how Cloudflare tracks the request rate for this rule.
|
package/workerCronTrigger.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export declare class WorkerCronTrigger extends pulumi.CustomResource {
|
|
|
49
49
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
50
50
|
*/
|
|
51
51
|
static isInstance(obj: any): obj is WorkerCronTrigger;
|
|
52
|
+
readonly accountId: pulumi.Output<string>;
|
|
52
53
|
/**
|
|
53
54
|
* List of cron expressions to execute the Worker Script
|
|
54
55
|
*/
|
|
@@ -70,6 +71,7 @@ export declare class WorkerCronTrigger extends pulumi.CustomResource {
|
|
|
70
71
|
* Input properties used for looking up and filtering WorkerCronTrigger resources.
|
|
71
72
|
*/
|
|
72
73
|
export interface WorkerCronTriggerState {
|
|
74
|
+
accountId?: pulumi.Input<string>;
|
|
73
75
|
/**
|
|
74
76
|
* List of cron expressions to execute the Worker Script
|
|
75
77
|
*/
|
|
@@ -83,6 +85,7 @@ export interface WorkerCronTriggerState {
|
|
|
83
85
|
* The set of arguments for constructing a WorkerCronTrigger resource.
|
|
84
86
|
*/
|
|
85
87
|
export interface WorkerCronTriggerArgs {
|
|
88
|
+
accountId: pulumi.Input<string>;
|
|
86
89
|
/**
|
|
87
90
|
* List of cron expressions to execute the Worker Script
|
|
88
91
|
*/
|
package/workerCronTrigger.js
CHANGED
|
@@ -45,17 +45,22 @@ class WorkerCronTrigger extends pulumi.CustomResource {
|
|
|
45
45
|
opts = opts || {};
|
|
46
46
|
if (opts.id) {
|
|
47
47
|
const state = argsOrState;
|
|
48
|
+
resourceInputs["accountId"] = state ? state.accountId : undefined;
|
|
48
49
|
resourceInputs["schedules"] = state ? state.schedules : undefined;
|
|
49
50
|
resourceInputs["scriptName"] = state ? state.scriptName : undefined;
|
|
50
51
|
}
|
|
51
52
|
else {
|
|
52
53
|
const args = argsOrState;
|
|
54
|
+
if ((!args || args.accountId === undefined) && !opts.urn) {
|
|
55
|
+
throw new Error("Missing required property 'accountId'");
|
|
56
|
+
}
|
|
53
57
|
if ((!args || args.schedules === undefined) && !opts.urn) {
|
|
54
58
|
throw new Error("Missing required property 'schedules'");
|
|
55
59
|
}
|
|
56
60
|
if ((!args || args.scriptName === undefined) && !opts.urn) {
|
|
57
61
|
throw new Error("Missing required property 'scriptName'");
|
|
58
62
|
}
|
|
63
|
+
resourceInputs["accountId"] = args ? args.accountId : undefined;
|
|
59
64
|
resourceInputs["schedules"] = args ? args.schedules : undefined;
|
|
60
65
|
resourceInputs["scriptName"] = args ? args.scriptName : undefined;
|
|
61
66
|
}
|