@pulumi/cloudflare 4.8.0 → 4.10.0-alpha.1661535818

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 (116) hide show
  1. package/accessApplication.d.ts +44 -35
  2. package/accessApplication.js +3 -4
  3. package/accessApplication.js.map +1 -1
  4. package/accessBookmark.d.ts +13 -11
  5. package/accessBookmark.js +4 -2
  6. package/accessBookmark.js.map +1 -1
  7. package/accessCaCertificate.d.ts +15 -13
  8. package/accessCaCertificate.js +5 -3
  9. package/accessCaCertificate.js.map +1 -1
  10. package/accessGroup.d.ts +9 -35
  11. package/accessGroup.js +3 -29
  12. package/accessGroup.js.map +1 -1
  13. package/accessIdentityProvider.d.ts +20 -23
  14. package/accessIdentityProvider.js +8 -5
  15. package/accessIdentityProvider.js.map +1 -1
  16. package/accessMutualTlsCertificate.d.ts +12 -8
  17. package/accessMutualTlsCertificate.js +6 -2
  18. package/accessMutualTlsCertificate.js.map +1 -1
  19. package/accessPolicy.d.ts +14 -15
  20. package/accessPolicy.js +5 -3
  21. package/accessPolicy.js.map +1 -1
  22. package/accessRule.d.ts +22 -9
  23. package/accessRule.js +9 -3
  24. package/accessRule.js.map +1 -1
  25. package/accessServiceToken.d.ts +11 -10
  26. package/accessServiceToken.js +3 -2
  27. package/accessServiceToken.js.map +1 -1
  28. package/accountMember.d.ts +15 -6
  29. package/accountMember.js +2 -0
  30. package/accountMember.js.map +1 -1
  31. package/apiToken.d.ts +26 -1
  32. package/apiToken.js +6 -1
  33. package/apiToken.js.map +1 -1
  34. package/argo.d.ts +9 -8
  35. package/argo.js +3 -2
  36. package/argo.js.map +1 -1
  37. package/certificatePack.d.ts +34 -88
  38. package/certificatePack.js +14 -26
  39. package/certificatePack.js.map +1 -1
  40. package/config/vars.d.ts +3 -1
  41. package/config/vars.js.map +1 -1
  42. package/customHostname.d.ts +15 -11
  43. package/customHostname.js +3 -5
  44. package/customHostname.js.map +1 -1
  45. package/filter.d.ts +4 -2
  46. package/filter.js +4 -2
  47. package/filter.js.map +1 -1
  48. package/firewallRule.d.ts +17 -23
  49. package/firewallRule.js +8 -5
  50. package/firewallRule.js.map +1 -1
  51. package/getAccessIdentityProvider.d.ts +18 -0
  52. package/getAccessIdentityProvider.js.map +1 -1
  53. package/getAccountRoles.d.ts +9 -0
  54. package/getAccountRoles.js.map +1 -1
  55. package/getDevices.d.ts +9 -0
  56. package/getDevices.js.map +1 -1
  57. package/getWafGroups.d.ts +9 -0
  58. package/getWafGroups.js.map +1 -1
  59. package/getWafPackages.d.ts +9 -0
  60. package/getWafPackages.js.map +1 -1
  61. package/getWafRules.d.ts +9 -0
  62. package/getWafRules.js.map +1 -1
  63. package/getZone.d.ts +18 -0
  64. package/getZone.js.map +1 -1
  65. package/getZoneDnssec.d.ts +9 -0
  66. package/getZoneDnssec.js.map +1 -1
  67. package/healthcheck.d.ts +50 -103
  68. package/healthcheck.js +2 -5
  69. package/healthcheck.js.map +1 -1
  70. package/ipsecTunnel.d.ts +26 -16
  71. package/ipsecTunnel.js +4 -1
  72. package/ipsecTunnel.js.map +1 -1
  73. package/list.d.ts +7 -6
  74. package/list.js +7 -6
  75. package/list.js.map +1 -1
  76. package/loadBalancer.d.ts +16 -0
  77. package/loadBalancer.js +6 -0
  78. package/loadBalancer.js.map +1 -1
  79. package/loadBalancerPool.d.ts +3 -3
  80. package/logpushJob.d.ts +21 -57
  81. package/logpushJob.js.map +1 -1
  82. package/managedHeaders.d.ts +7 -7
  83. package/managedHeaders.js +1 -1
  84. package/notificationPolicy.d.ts +18 -40
  85. package/notificationPolicy.js +3 -1
  86. package/notificationPolicy.js.map +1 -1
  87. package/package.json +4 -3
  88. package/package.json.bak +2 -1
  89. package/package.json.dev +4 -3
  90. package/provider.d.ts +6 -2
  91. package/provider.js.map +1 -1
  92. package/ruleset.d.ts +85 -37
  93. package/ruleset.js +73 -10
  94. package/ruleset.js.map +1 -1
  95. package/tunnelRoute.d.ts +10 -11
  96. package/tunnelRoute.js +7 -5
  97. package/tunnelRoute.js.map +1 -1
  98. package/tunnelVirtualNetwork.d.ts +9 -11
  99. package/tunnelVirtualNetwork.js +6 -5
  100. package/tunnelVirtualNetwork.js.map +1 -1
  101. package/types/input.d.ts +391 -36
  102. package/types/output.d.ts +395 -31
  103. package/waitingRoom.d.ts +28 -19
  104. package/waitingRoom.js +3 -1
  105. package/waitingRoom.js.map +1 -1
  106. package/waitingRoomEvent.d.ts +13 -19
  107. package/waitingRoomEvent.js +1 -1
  108. package/waitingRoomEvent.js.map +1 -1
  109. package/workerCronTrigger.d.ts +1 -1
  110. package/workerCronTrigger.js +1 -1
  111. package/workerScript.d.ts +16 -1
  112. package/workerScript.js +14 -1
  113. package/workerScript.js.map +1 -1
  114. package/zone.d.ts +34 -23
  115. package/zone.js +10 -5
  116. package/zone.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/cloudflare",
3
- "version": "v4.8.0",
3
+ "version": "v4.10.0-alpha.1661535818+c5ec1a75",
4
4
  "description": "A Pulumi package for creating and managing Cloudflare cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource cloudflare v4.8.0"
14
+ "install": "node scripts/install-pulumi-plugin.js resource cloudflare v4.10.0-alpha.1661535818+c5ec1a75"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
@@ -22,6 +22,7 @@
22
22
  "typescript": "^4.3.5"
23
23
  },
24
24
  "pulumi": {
25
- "resource": true
25
+ "resource": true,
26
+ "name": "cloudflare"
26
27
  }
27
28
  }
package/package.json.bak CHANGED
@@ -22,6 +22,7 @@
22
22
  "typescript": "^4.3.5"
23
23
  },
24
24
  "pulumi": {
25
- "resource": true
25
+ "resource": true,
26
+ "name": "cloudflare"
26
27
  }
27
28
  }
package/package.json.dev CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/cloudflare",
3
- "version": "v4.8.0",
3
+ "version": "v4.10.0-alpha.1661535818+c5ec1a75",
4
4
  "description": "A Pulumi package for creating and managing Cloudflare cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource cloudflare v4.8.0"
14
+ "install": "node scripts/install-pulumi-plugin.js resource cloudflare v4.10.0-alpha.1661535818+c5ec1a75"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
@@ -22,6 +22,7 @@
22
22
  "typescript": "^4.3.5"
23
23
  },
24
24
  "pulumi": {
25
- "resource": true
25
+ "resource": true,
26
+ "name": "cloudflare"
26
27
  }
27
28
  }
package/provider.d.ts CHANGED
@@ -29,7 +29,9 @@ export declare class Provider extends pulumi.ProviderResource {
29
29
  */
30
30
  readonly apiHostname: pulumi.Output<string | undefined>;
31
31
  /**
32
- * The API key for operations. Alternatively, can be configured using the `CLOUDFLARE_API_KEY` environment variable.
32
+ * The API key for operations. Alternatively, can be configured using the `CLOUDFLARE_API_KEY` environment variable. API
33
+ * keys are [now considered legacy by Cloudflare](https://developers.cloudflare.com/api/keys/#limitations), API tokens
34
+ * should be used instead.
33
35
  */
34
36
  readonly apiKey: pulumi.Output<string | undefined>;
35
37
  /**
@@ -82,7 +84,9 @@ export interface ProviderArgs {
82
84
  */
83
85
  apiHostname?: pulumi.Input<string>;
84
86
  /**
85
- * The API key for operations. Alternatively, can be configured using the `CLOUDFLARE_API_KEY` environment variable.
87
+ * The API key for operations. Alternatively, can be configured using the `CLOUDFLARE_API_KEY` environment variable. API
88
+ * keys are [now considered legacy by Cloudflare](https://developers.cloudflare.com/api/keys/#limitations), API tokens
89
+ * should be used instead.
86
90
  */
87
91
  apiKey?: pulumi.Input<string>;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CAAC,MAAM,CAAC,MAAA,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,mCAAI,CAAC,SAAS,CAAC,YAAY,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC1J,cAAc,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,MAAA,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,mCAAI,CAAC,SAAS,CAAC,YAAY,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SACjJ;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;IA3ED;;;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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AAbL,4BAgFC;AA/EG,gBAAgB;AACO,qBAAY,GAAG,YAAY,CAAC"}
package/ruleset.d.ts CHANGED
@@ -9,7 +9,7 @@ import { input as inputs, output as outputs } from "./types";
9
9
  *
10
10
  * // Magic Transit
11
11
  * const magicTransitExample = new cloudflare.Ruleset("magic_transit_example", {
12
- * accountId: "d41d8cd98f00b204e9800998ecf8427e",
12
+ * accountId: "f037e56e89293a057740de681ac9abbe",
13
13
  * description: "example magic transit ruleset description",
14
14
  * kind: "root",
15
15
  * name: "account magic transit",
@@ -35,7 +35,7 @@ import { input as inputs, output as outputs } from "./types";
35
35
  * enabled: true,
36
36
  * expression: "true",
37
37
  * }],
38
- * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
38
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
39
39
  * });
40
40
  * // Zone-level WAF with tag-based overrides
41
41
  * const zoneLevelManagedWafWithCategoryBasedOverrides = new cloudflare.Ruleset("zone_level_managed_waf_with_category_based_overrides", {
@@ -66,7 +66,7 @@ import { input as inputs, output as outputs } from "./types";
66
66
  * enabled: false,
67
67
  * expression: "true",
68
68
  * }],
69
- * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
69
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
70
70
  * });
71
71
  * // Rewrite the URI path component to a static path
72
72
  * const transformUriRulePath = new cloudflare.Ruleset("transform_uri_rule_path", {
@@ -87,7 +87,7 @@ import { input as inputs, output as outputs } from "./types";
87
87
  * enabled: true,
88
88
  * expression: "(http.host eq \"example.com\" and http.request.uri.path eq \"/old-path\")",
89
89
  * }],
90
- * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
90
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
91
91
  * });
92
92
  * // Rewrite the URI query component to a static query
93
93
  * const transformUriRuleQuery = new cloudflare.Ruleset("transform_uri_rule_query", {
@@ -108,7 +108,7 @@ import { input as inputs, output as outputs } from "./types";
108
108
  * enabled: true,
109
109
  * expression: "true",
110
110
  * }],
111
- * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
111
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
112
112
  * });
113
113
  * // Rewrite HTTP headers to a modified values
114
114
  * const transformUriHttpHeaders = new cloudflare.Ruleset("transform_uri_http_headers", {
@@ -140,7 +140,7 @@ import { input as inputs, output as outputs } from "./types";
140
140
  * enabled: false,
141
141
  * expression: "true",
142
142
  * }],
143
- * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
143
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
144
144
  * });
145
145
  * // HTTP rate limit for an API route
146
146
  * const rateLimitingExample = new cloudflare.Ruleset("rate_limiting_example", {
@@ -163,7 +163,7 @@ import { input as inputs, output as outputs } from "./types";
163
163
  * requestsPerPeriod: 100,
164
164
  * },
165
165
  * }],
166
- * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
166
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
167
167
  * });
168
168
  * // Change origin for an API route
169
169
  * const httpOriginExample = new cloudflare.Ruleset("http_origin_example", {
@@ -184,7 +184,7 @@ import { input as inputs, output as outputs } from "./types";
184
184
  * enabled: true,
185
185
  * expression: "(http.request.uri.path matches \"^/api/\")",
186
186
  * }],
187
- * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
187
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
188
188
  * });
189
189
  * // Custom fields logging
190
190
  * const customFieldsLoggingExample = new cloudflare.Ruleset("custom_fields_logging_example", {
@@ -215,8 +215,9 @@ import { input as inputs, output as outputs } from "./types";
215
215
  * enabled: true,
216
216
  * expression: "true",
217
217
  * }],
218
- * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
218
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
219
219
  * });
220
+ * // Custom cache keys + settings
220
221
  * const cacheSettingsExample = new cloudflare.Ruleset("cache_settings_example", {
221
222
  * description: "set cache settings for the request",
222
223
  * kind: "zone",
@@ -292,7 +293,69 @@ import { input as inputs, output as outputs } from "./types";
292
293
  * enabled: true,
293
294
  * expression: "true",
294
295
  * }],
295
- * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
296
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
297
+ * });
298
+ * // Redirects based on a List resource
299
+ * const redirectFromListExample = new cloudflare.Ruleset("redirect_from_list_example", {
300
+ * accountId: "f037e56e89293a057740de681ac9abbe",
301
+ * description: "Redirect ruleset",
302
+ * kind: "root",
303
+ * name: "redirects",
304
+ * phase: "http_request_redirect",
305
+ * rules: [{
306
+ * action: "redirect",
307
+ * actionParameters: {
308
+ * fromList: {
309
+ * key: "http.request.full_uri",
310
+ * name: "redirect_list",
311
+ * },
312
+ * },
313
+ * description: "Apply redirects from redirect_list",
314
+ * enabled: true,
315
+ * expression: "http.request.full_uri in $redirect_list",
316
+ * }],
317
+ * });
318
+ * // Dynamic Redirects from value resource
319
+ * const redirectFromValueExample = new cloudflare.Ruleset("redirect_from_value_example", {
320
+ * accountId: "f037e56e89293a057740de681ac9abbe",
321
+ * description: "Redirect ruleset",
322
+ * kind: "root",
323
+ * name: "redirects",
324
+ * phase: "http_request_dynamic_redirect",
325
+ * rules: [{
326
+ * action: "redirect",
327
+ * actionParameters: {
328
+ * fromValue: {
329
+ * preserveQueryString: true,
330
+ * statusCode: 301,
331
+ * targetUrl: {
332
+ * value: "some_host.com",
333
+ * },
334
+ * },
335
+ * },
336
+ * description: "Apply redirect from value",
337
+ * enabled: true,
338
+ * expression: "true",
339
+ * }],
340
+ * });
341
+ * // Serve some custom error response
342
+ * const httpCustomErrorExample = new cloudflare.Ruleset("http_custom_error_example", {
343
+ * description: "Serve some error response",
344
+ * kind: "zone",
345
+ * name: "Serve some error response",
346
+ * phase: "http_custom_errors",
347
+ * rules: [{
348
+ * action: "serve_error",
349
+ * actionParameters: {
350
+ * content: "some error html",
351
+ * contentType: "text/html",
352
+ * statusCode: 530,
353
+ * },
354
+ * description: "serve some error response",
355
+ * enabled: true,
356
+ * expression: "(http.request.uri.path matches \"^/api/\")",
357
+ * }],
358
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
296
359
  * });
297
360
  * ```
298
361
  *
@@ -317,7 +380,7 @@ export declare class Ruleset extends pulumi.CustomResource {
317
380
  */
318
381
  static isInstance(obj: any): obj is Ruleset;
319
382
  /**
320
- * The account identifier to target for the resource.
383
+ * The account identifier to target for the resource. Conflicts with `zoneId`.
321
384
  */
322
385
  readonly accountId: pulumi.Output<string | undefined>;
323
386
  /**
@@ -325,7 +388,7 @@ export declare class Ruleset extends pulumi.CustomResource {
325
388
  */
326
389
  readonly description: pulumi.Output<string | undefined>;
327
390
  /**
328
- * Type of Ruleset to create. Available values: `custom`, `managed`, `root`, `schema`, `zone`
391
+ * Type of Ruleset to create. Available values: `custom`, `managed`, `root`, `schema`, `zone`.
329
392
  */
330
393
  readonly kind: pulumi.Output<string>;
331
394
  /**
@@ -333,12 +396,7 @@ export declare class Ruleset extends pulumi.CustomResource {
333
396
  */
334
397
  readonly name: pulumi.Output<string>;
335
398
  /**
336
- * Point in the request/response lifecycle where the ruleset will be created. Available values: `ddos_l4`, `ddos_l7`,
337
- * `http_log_custom_fields`, `http_request_cache_settings`, `http_request_firewall_custom`,
338
- * `http_request_firewall_managed`, `http_request_late_transform`, `http_request_late_transform_managed`,
339
- * `http_request_main`, `http_request_origin`, `http_request_redirect`, `http_request_sanitize`, `http_request_transform`,
340
- * `http_response_firewall_managed`, `http_response_headers_transform`, `magic_transit`, `http_ratelimit`,
341
- * `http_request_sbfm`
399
+ * Point in the request/response lifecycle where the ruleset will be created. Available values: `ddosL4`, `ddosL7`, `httpCustomErrors`, `httpLogCustomFields`, `httpRequestCacheSettings`, `httpRequestFirewallCustom`, `httpRequestFirewallManaged`, `httpRequestLateTransform`, `httpRequestLateTransformManaged`, `httpRequestMain`, `httpRequestOrigin`, `httpRequestDynamicRedirect`, `httpRequestRedirect`, `httpRequestSanitize`, `httpRequestTransform`, `httpResponseFirewallManaged`, `httpResponseHeadersTransform`, `httpResponseHeadersTransformManaged`, `magicTransit`, `httpRatelimit`, `httpRequestSbfm`.
342
400
  */
343
401
  readonly phase: pulumi.Output<string>;
344
402
  /**
@@ -350,7 +408,7 @@ export declare class Ruleset extends pulumi.CustomResource {
350
408
  */
351
409
  readonly shareableEntitlementName: pulumi.Output<string | undefined>;
352
410
  /**
353
- * The zone identifier to target for the resource.
411
+ * The zone identifier to target for the resource. Conflicts with `accountId`.
354
412
  */
355
413
  readonly zoneId: pulumi.Output<string | undefined>;
356
414
  /**
@@ -367,7 +425,7 @@ export declare class Ruleset extends pulumi.CustomResource {
367
425
  */
368
426
  export interface RulesetState {
369
427
  /**
370
- * The account identifier to target for the resource.
428
+ * The account identifier to target for the resource. Conflicts with `zoneId`.
371
429
  */
372
430
  accountId?: pulumi.Input<string>;
373
431
  /**
@@ -375,7 +433,7 @@ export interface RulesetState {
375
433
  */
376
434
  description?: pulumi.Input<string>;
377
435
  /**
378
- * Type of Ruleset to create. Available values: `custom`, `managed`, `root`, `schema`, `zone`
436
+ * Type of Ruleset to create. Available values: `custom`, `managed`, `root`, `schema`, `zone`.
379
437
  */
380
438
  kind?: pulumi.Input<string>;
381
439
  /**
@@ -383,12 +441,7 @@ export interface RulesetState {
383
441
  */
384
442
  name?: pulumi.Input<string>;
385
443
  /**
386
- * Point in the request/response lifecycle where the ruleset will be created. Available values: `ddos_l4`, `ddos_l7`,
387
- * `http_log_custom_fields`, `http_request_cache_settings`, `http_request_firewall_custom`,
388
- * `http_request_firewall_managed`, `http_request_late_transform`, `http_request_late_transform_managed`,
389
- * `http_request_main`, `http_request_origin`, `http_request_redirect`, `http_request_sanitize`, `http_request_transform`,
390
- * `http_response_firewall_managed`, `http_response_headers_transform`, `magic_transit`, `http_ratelimit`,
391
- * `http_request_sbfm`
444
+ * Point in the request/response lifecycle where the ruleset will be created. Available values: `ddosL4`, `ddosL7`, `httpCustomErrors`, `httpLogCustomFields`, `httpRequestCacheSettings`, `httpRequestFirewallCustom`, `httpRequestFirewallManaged`, `httpRequestLateTransform`, `httpRequestLateTransformManaged`, `httpRequestMain`, `httpRequestOrigin`, `httpRequestDynamicRedirect`, `httpRequestRedirect`, `httpRequestSanitize`, `httpRequestTransform`, `httpResponseFirewallManaged`, `httpResponseHeadersTransform`, `httpResponseHeadersTransformManaged`, `magicTransit`, `httpRatelimit`, `httpRequestSbfm`.
392
445
  */
393
446
  phase?: pulumi.Input<string>;
394
447
  /**
@@ -400,7 +453,7 @@ export interface RulesetState {
400
453
  */
401
454
  shareableEntitlementName?: pulumi.Input<string>;
402
455
  /**
403
- * The zone identifier to target for the resource.
456
+ * The zone identifier to target for the resource. Conflicts with `accountId`.
404
457
  */
405
458
  zoneId?: pulumi.Input<string>;
406
459
  }
@@ -409,7 +462,7 @@ export interface RulesetState {
409
462
  */
410
463
  export interface RulesetArgs {
411
464
  /**
412
- * The account identifier to target for the resource.
465
+ * The account identifier to target for the resource. Conflicts with `zoneId`.
413
466
  */
414
467
  accountId?: pulumi.Input<string>;
415
468
  /**
@@ -417,7 +470,7 @@ export interface RulesetArgs {
417
470
  */
418
471
  description?: pulumi.Input<string>;
419
472
  /**
420
- * Type of Ruleset to create. Available values: `custom`, `managed`, `root`, `schema`, `zone`
473
+ * Type of Ruleset to create. Available values: `custom`, `managed`, `root`, `schema`, `zone`.
421
474
  */
422
475
  kind: pulumi.Input<string>;
423
476
  /**
@@ -425,12 +478,7 @@ export interface RulesetArgs {
425
478
  */
426
479
  name: pulumi.Input<string>;
427
480
  /**
428
- * Point in the request/response lifecycle where the ruleset will be created. Available values: `ddos_l4`, `ddos_l7`,
429
- * `http_log_custom_fields`, `http_request_cache_settings`, `http_request_firewall_custom`,
430
- * `http_request_firewall_managed`, `http_request_late_transform`, `http_request_late_transform_managed`,
431
- * `http_request_main`, `http_request_origin`, `http_request_redirect`, `http_request_sanitize`, `http_request_transform`,
432
- * `http_response_firewall_managed`, `http_response_headers_transform`, `magic_transit`, `http_ratelimit`,
433
- * `http_request_sbfm`
481
+ * Point in the request/response lifecycle where the ruleset will be created. Available values: `ddosL4`, `ddosL7`, `httpCustomErrors`, `httpLogCustomFields`, `httpRequestCacheSettings`, `httpRequestFirewallCustom`, `httpRequestFirewallManaged`, `httpRequestLateTransform`, `httpRequestLateTransformManaged`, `httpRequestMain`, `httpRequestOrigin`, `httpRequestDynamicRedirect`, `httpRequestRedirect`, `httpRequestSanitize`, `httpRequestTransform`, `httpResponseFirewallManaged`, `httpResponseHeadersTransform`, `httpResponseHeadersTransformManaged`, `magicTransit`, `httpRatelimit`, `httpRequestSbfm`.
434
482
  */
435
483
  phase: pulumi.Input<string>;
436
484
  /**
@@ -442,7 +490,7 @@ export interface RulesetArgs {
442
490
  */
443
491
  shareableEntitlementName?: pulumi.Input<string>;
444
492
  /**
445
- * The zone identifier to target for the resource.
493
+ * The zone identifier to target for the resource. Conflicts with `accountId`.
446
494
  */
447
495
  zoneId?: pulumi.Input<string>;
448
496
  }
package/ruleset.js CHANGED
@@ -14,7 +14,7 @@ const utilities = require("./utilities");
14
14
  *
15
15
  * // Magic Transit
16
16
  * const magicTransitExample = new cloudflare.Ruleset("magic_transit_example", {
17
- * accountId: "d41d8cd98f00b204e9800998ecf8427e",
17
+ * accountId: "f037e56e89293a057740de681ac9abbe",
18
18
  * description: "example magic transit ruleset description",
19
19
  * kind: "root",
20
20
  * name: "account magic transit",
@@ -40,7 +40,7 @@ const utilities = require("./utilities");
40
40
  * enabled: true,
41
41
  * expression: "true",
42
42
  * }],
43
- * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
43
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
44
44
  * });
45
45
  * // Zone-level WAF with tag-based overrides
46
46
  * const zoneLevelManagedWafWithCategoryBasedOverrides = new cloudflare.Ruleset("zone_level_managed_waf_with_category_based_overrides", {
@@ -71,7 +71,7 @@ const utilities = require("./utilities");
71
71
  * enabled: false,
72
72
  * expression: "true",
73
73
  * }],
74
- * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
74
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
75
75
  * });
76
76
  * // Rewrite the URI path component to a static path
77
77
  * const transformUriRulePath = new cloudflare.Ruleset("transform_uri_rule_path", {
@@ -92,7 +92,7 @@ const utilities = require("./utilities");
92
92
  * enabled: true,
93
93
  * expression: "(http.host eq \"example.com\" and http.request.uri.path eq \"/old-path\")",
94
94
  * }],
95
- * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
95
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
96
96
  * });
97
97
  * // Rewrite the URI query component to a static query
98
98
  * const transformUriRuleQuery = new cloudflare.Ruleset("transform_uri_rule_query", {
@@ -113,7 +113,7 @@ const utilities = require("./utilities");
113
113
  * enabled: true,
114
114
  * expression: "true",
115
115
  * }],
116
- * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
116
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
117
117
  * });
118
118
  * // Rewrite HTTP headers to a modified values
119
119
  * const transformUriHttpHeaders = new cloudflare.Ruleset("transform_uri_http_headers", {
@@ -145,7 +145,7 @@ const utilities = require("./utilities");
145
145
  * enabled: false,
146
146
  * expression: "true",
147
147
  * }],
148
- * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
148
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
149
149
  * });
150
150
  * // HTTP rate limit for an API route
151
151
  * const rateLimitingExample = new cloudflare.Ruleset("rate_limiting_example", {
@@ -168,7 +168,7 @@ const utilities = require("./utilities");
168
168
  * requestsPerPeriod: 100,
169
169
  * },
170
170
  * }],
171
- * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
171
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
172
172
  * });
173
173
  * // Change origin for an API route
174
174
  * const httpOriginExample = new cloudflare.Ruleset("http_origin_example", {
@@ -189,7 +189,7 @@ const utilities = require("./utilities");
189
189
  * enabled: true,
190
190
  * expression: "(http.request.uri.path matches \"^/api/\")",
191
191
  * }],
192
- * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
192
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
193
193
  * });
194
194
  * // Custom fields logging
195
195
  * const customFieldsLoggingExample = new cloudflare.Ruleset("custom_fields_logging_example", {
@@ -220,8 +220,9 @@ const utilities = require("./utilities");
220
220
  * enabled: true,
221
221
  * expression: "true",
222
222
  * }],
223
- * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
223
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
224
224
  * });
225
+ * // Custom cache keys + settings
225
226
  * const cacheSettingsExample = new cloudflare.Ruleset("cache_settings_example", {
226
227
  * description: "set cache settings for the request",
227
228
  * kind: "zone",
@@ -297,7 +298,69 @@ const utilities = require("./utilities");
297
298
  * enabled: true,
298
299
  * expression: "true",
299
300
  * }],
300
- * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
301
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
302
+ * });
303
+ * // Redirects based on a List resource
304
+ * const redirectFromListExample = new cloudflare.Ruleset("redirect_from_list_example", {
305
+ * accountId: "f037e56e89293a057740de681ac9abbe",
306
+ * description: "Redirect ruleset",
307
+ * kind: "root",
308
+ * name: "redirects",
309
+ * phase: "http_request_redirect",
310
+ * rules: [{
311
+ * action: "redirect",
312
+ * actionParameters: {
313
+ * fromList: {
314
+ * key: "http.request.full_uri",
315
+ * name: "redirect_list",
316
+ * },
317
+ * },
318
+ * description: "Apply redirects from redirect_list",
319
+ * enabled: true,
320
+ * expression: "http.request.full_uri in $redirect_list",
321
+ * }],
322
+ * });
323
+ * // Dynamic Redirects from value resource
324
+ * const redirectFromValueExample = new cloudflare.Ruleset("redirect_from_value_example", {
325
+ * accountId: "f037e56e89293a057740de681ac9abbe",
326
+ * description: "Redirect ruleset",
327
+ * kind: "root",
328
+ * name: "redirects",
329
+ * phase: "http_request_dynamic_redirect",
330
+ * rules: [{
331
+ * action: "redirect",
332
+ * actionParameters: {
333
+ * fromValue: {
334
+ * preserveQueryString: true,
335
+ * statusCode: 301,
336
+ * targetUrl: {
337
+ * value: "some_host.com",
338
+ * },
339
+ * },
340
+ * },
341
+ * description: "Apply redirect from value",
342
+ * enabled: true,
343
+ * expression: "true",
344
+ * }],
345
+ * });
346
+ * // Serve some custom error response
347
+ * const httpCustomErrorExample = new cloudflare.Ruleset("http_custom_error_example", {
348
+ * description: "Serve some error response",
349
+ * kind: "zone",
350
+ * name: "Serve some error response",
351
+ * phase: "http_custom_errors",
352
+ * rules: [{
353
+ * action: "serve_error",
354
+ * actionParameters: {
355
+ * content: "some error html",
356
+ * contentType: "text/html",
357
+ * statusCode: 530,
358
+ * },
359
+ * description: "serve some error response",
360
+ * enabled: true,
361
+ * expression: "(http.request.uri.path matches \"^/api/\")",
362
+ * }],
363
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
301
364
  * });
302
365
  * ```
303
366
  *
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2SG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IA0E9C,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,CAAC;YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAA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AI,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/tunnelRoute.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * Provides a resource, that manages Cloudflare tunnel routes for Zero Trust. Tunnel routes are used to direct IP traffic through Cloudflare Tunnels.
3
+ * Provides a resource, that manages Cloudflare tunnel routes for Zero
4
+ * Trust. Tunnel routes are used to direct IP traffic through
5
+ * Cloudflare Tunnels.
4
6
  *
5
7
  * ## Example Usage
6
8
  *
@@ -10,7 +12,7 @@ import * as pulumi from "@pulumi/pulumi";
10
12
  *
11
13
  * // Tunnel route
12
14
  * const exampleTunnelRoute = new cloudflare.TunnelRoute("exampleTunnelRoute", {
13
- * accountId: "c4a7362d577a6c3019a474fd6f485821",
15
+ * accountId: "f037e56e89293a057740de681ac9abbe",
14
16
  * tunnelId: "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
15
17
  * network: "192.0.2.24/32",
16
18
  * comment: "New tunnel route for documentation",
@@ -18,12 +20,12 @@ import * as pulumi from "@pulumi/pulumi";
18
20
  * });
19
21
  * // Tunnel with tunnel route
20
22
  * const tunnel = new cloudflare.ArgoTunnel("tunnel", {
21
- * accountId: "c4a7362d577a6c3019a474fd6f485821",
23
+ * accountId: "f037e56e89293a057740de681ac9abbe",
22
24
  * name: "my_tunnel",
23
25
  * secret: "AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
24
26
  * });
25
27
  * const exampleIndex_tunnelRouteTunnelRoute = new cloudflare.TunnelRoute("exampleIndex/tunnelRouteTunnelRoute", {
26
- * accountId: "c4a7362d577a6c3019a474fd6f485821",
28
+ * accountId: "f037e56e89293a057740de681ac9abbe",
27
29
  * tunnelId: tunnel.id,
28
30
  * network: "192.0.2.24/32",
29
31
  * comment: "New tunnel route for documentation",
@@ -36,7 +38,7 @@ import * as pulumi from "@pulumi/pulumi";
36
38
  * # Use account ID, network CIDR and virtual network ID.
37
39
  *
38
40
  * ```sh
39
- * $ pulumi import cloudflare:index/tunnelRoute:TunnelRoute cloudflare_tunnel_route <account_id/<network_cidr>/<virtual_network_id>
41
+ * $ pulumi import cloudflare:index/tunnelRoute:TunnelRoute example <account_id/<network_cidr>/<virtual_network_id>
40
42
  * ```
41
43
  */
42
44
  export declare class TunnelRoute extends pulumi.CustomResource {
@@ -72,8 +74,7 @@ export declare class TunnelRoute extends pulumi.CustomResource {
72
74
  */
73
75
  readonly tunnelId: pulumi.Output<string>;
74
76
  /**
75
- * The ID of the virtual network for which this route is being added; uses the default virtual network of the account if
76
- * none is provided.
77
+ * The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided.
77
78
  */
78
79
  readonly virtualNetworkId: pulumi.Output<string | undefined>;
79
80
  /**
@@ -106,8 +107,7 @@ export interface TunnelRouteState {
106
107
  */
107
108
  tunnelId?: pulumi.Input<string>;
108
109
  /**
109
- * The ID of the virtual network for which this route is being added; uses the default virtual network of the account if
110
- * none is provided.
110
+ * The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided.
111
111
  */
112
112
  virtualNetworkId?: pulumi.Input<string>;
113
113
  }
@@ -132,8 +132,7 @@ export interface TunnelRouteArgs {
132
132
  */
133
133
  tunnelId: pulumi.Input<string>;
134
134
  /**
135
- * The ID of the virtual network for which this route is being added; uses the default virtual network of the account if
136
- * none is provided.
135
+ * The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided.
137
136
  */
138
137
  virtualNetworkId?: pulumi.Input<string>;
139
138
  }
package/tunnelRoute.js CHANGED
@@ -6,7 +6,9 @@ exports.TunnelRoute = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * Provides a resource, that manages Cloudflare tunnel routes for Zero Trust. Tunnel routes are used to direct IP traffic through Cloudflare Tunnels.
9
+ * Provides a resource, that manages Cloudflare tunnel routes for Zero
10
+ * Trust. Tunnel routes are used to direct IP traffic through
11
+ * Cloudflare Tunnels.
10
12
  *
11
13
  * ## Example Usage
12
14
  *
@@ -16,7 +18,7 @@ const utilities = require("./utilities");
16
18
  *
17
19
  * // Tunnel route
18
20
  * const exampleTunnelRoute = new cloudflare.TunnelRoute("exampleTunnelRoute", {
19
- * accountId: "c4a7362d577a6c3019a474fd6f485821",
21
+ * accountId: "f037e56e89293a057740de681ac9abbe",
20
22
  * tunnelId: "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
21
23
  * network: "192.0.2.24/32",
22
24
  * comment: "New tunnel route for documentation",
@@ -24,12 +26,12 @@ const utilities = require("./utilities");
24
26
  * });
25
27
  * // Tunnel with tunnel route
26
28
  * const tunnel = new cloudflare.ArgoTunnel("tunnel", {
27
- * accountId: "c4a7362d577a6c3019a474fd6f485821",
29
+ * accountId: "f037e56e89293a057740de681ac9abbe",
28
30
  * name: "my_tunnel",
29
31
  * secret: "AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
30
32
  * });
31
33
  * const exampleIndex_tunnelRouteTunnelRoute = new cloudflare.TunnelRoute("exampleIndex/tunnelRouteTunnelRoute", {
32
- * accountId: "c4a7362d577a6c3019a474fd6f485821",
34
+ * accountId: "f037e56e89293a057740de681ac9abbe",
33
35
  * tunnelId: tunnel.id,
34
36
  * network: "192.0.2.24/32",
35
37
  * comment: "New tunnel route for documentation",
@@ -42,7 +44,7 @@ const utilities = require("./utilities");
42
44
  * # Use account ID, network CIDR and virtual network ID.
43
45
  *
44
46
  * ```sh
45
- * $ pulumi import cloudflare:index/tunnelRoute:TunnelRoute cloudflare_tunnel_route <account_id/<network_cidr>/<virtual_network_id>
47
+ * $ pulumi import cloudflare:index/tunnelRoute:TunnelRoute example <account_id/<network_cidr>/<virtual_network_id>
46
48
  * ```
47
49
  */
48
50
  class TunnelRoute extends pulumi.CustomResource {