@pulumi/cloudflare 4.9.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.
- package/accessApplication.d.ts +44 -35
- package/accessApplication.js +3 -4
- package/accessApplication.js.map +1 -1
- package/accessBookmark.d.ts +13 -11
- package/accessBookmark.js +4 -2
- package/accessBookmark.js.map +1 -1
- package/accessCaCertificate.d.ts +15 -13
- package/accessCaCertificate.js +5 -3
- package/accessCaCertificate.js.map +1 -1
- package/accessGroup.d.ts +9 -35
- package/accessGroup.js +3 -29
- package/accessGroup.js.map +1 -1
- package/accessIdentityProvider.d.ts +20 -23
- package/accessIdentityProvider.js +8 -5
- package/accessIdentityProvider.js.map +1 -1
- package/accessMutualTlsCertificate.d.ts +12 -8
- package/accessMutualTlsCertificate.js +6 -2
- package/accessMutualTlsCertificate.js.map +1 -1
- package/accessPolicy.d.ts +14 -15
- package/accessPolicy.js +5 -3
- package/accessPolicy.js.map +1 -1
- package/accessRule.d.ts +22 -9
- package/accessRule.js +9 -3
- package/accessRule.js.map +1 -1
- package/accessServiceToken.d.ts +11 -10
- package/accessServiceToken.js +3 -2
- package/accessServiceToken.js.map +1 -1
- package/accountMember.d.ts +15 -6
- package/accountMember.js +2 -0
- package/accountMember.js.map +1 -1
- package/apiToken.d.ts +26 -1
- package/apiToken.js +6 -1
- package/apiToken.js.map +1 -1
- package/argo.d.ts +9 -8
- package/argo.js +3 -2
- package/argo.js.map +1 -1
- package/certificatePack.d.ts +34 -88
- package/certificatePack.js +14 -26
- package/certificatePack.js.map +1 -1
- package/customHostname.d.ts +15 -11
- package/customHostname.js +3 -5
- package/customHostname.js.map +1 -1
- package/filter.d.ts +4 -2
- package/filter.js +4 -2
- package/filter.js.map +1 -1
- package/firewallRule.d.ts +17 -23
- package/firewallRule.js +8 -5
- package/firewallRule.js.map +1 -1
- package/getAccessIdentityProvider.d.ts +18 -0
- package/getAccessIdentityProvider.js.map +1 -1
- package/getAccountRoles.d.ts +9 -0
- package/getAccountRoles.js.map +1 -1
- package/getDevices.d.ts +9 -0
- package/getDevices.js.map +1 -1
- package/getWafGroups.d.ts +9 -0
- package/getWafGroups.js.map +1 -1
- package/getWafPackages.d.ts +9 -0
- package/getWafPackages.js.map +1 -1
- package/getWafRules.d.ts +9 -0
- package/getWafRules.js.map +1 -1
- package/getZone.d.ts +18 -0
- package/getZone.js.map +1 -1
- package/getZoneDnssec.d.ts +9 -0
- package/getZoneDnssec.js.map +1 -1
- package/healthcheck.d.ts +50 -103
- package/healthcheck.js +2 -5
- package/healthcheck.js.map +1 -1
- package/ipsecTunnel.d.ts +16 -19
- package/ipsecTunnel.js +1 -1
- package/ipsecTunnel.js.map +1 -1
- package/list.d.ts +3 -2
- package/list.js +3 -2
- package/list.js.map +1 -1
- package/loadBalancer.d.ts +16 -0
- package/loadBalancer.js +6 -0
- package/loadBalancer.js.map +1 -1
- package/loadBalancerPool.d.ts +3 -3
- package/logpushJob.d.ts +21 -57
- package/logpushJob.js.map +1 -1
- package/managedHeaders.d.ts +7 -7
- package/managedHeaders.js +1 -1
- package/notificationPolicy.d.ts +18 -40
- package/notificationPolicy.js +3 -1
- package/notificationPolicy.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +2 -1
- package/package.json.dev +4 -3
- package/ruleset.d.ts +64 -37
- package/ruleset.js +52 -10
- package/ruleset.js.map +1 -1
- package/tunnelRoute.d.ts +9 -10
- package/tunnelRoute.js +6 -4
- package/tunnelRoute.js.map +1 -1
- package/tunnelVirtualNetwork.d.ts +8 -10
- package/tunnelVirtualNetwork.js +5 -4
- package/tunnelVirtualNetwork.js.map +1 -1
- package/types/input.d.ts +360 -32
- package/types/output.d.ts +364 -27
- package/waitingRoom.d.ts +19 -22
- package/waitingRoom.js +1 -1
- package/waitingRoom.js.map +1 -1
- package/waitingRoomEvent.d.ts +13 -19
- package/waitingRoomEvent.js +1 -1
- package/waitingRoomEvent.js.map +1 -1
- package/workerCronTrigger.d.ts +1 -1
- package/workerCronTrigger.js +1 -1
- package/workerScript.d.ts +8 -1
- package/workerScript.js +7 -1
- package/workerScript.js.map +1 -1
- package/zone.d.ts +34 -23
- package/zone.js +10 -5
- package/zone.js.map +1 -1
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/cloudflare",
|
|
3
|
-
"version": "v4.
|
|
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.
|
|
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/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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
187
|
+
* zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
|
|
188
188
|
* });
|
|
189
189
|
* // Custom fields logging
|
|
190
190
|
* const customFieldsLoggingExample = new cloudflare.Ruleset("custom_fields_logging_example", {
|
|
@@ -215,7 +215,7 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
215
215
|
* enabled: true,
|
|
216
216
|
* expression: "true",
|
|
217
217
|
* }],
|
|
218
|
-
* zoneId: "
|
|
218
|
+
* zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
|
|
219
219
|
* });
|
|
220
220
|
* // Custom cache keys + settings
|
|
221
221
|
* const cacheSettingsExample = new cloudflare.Ruleset("cache_settings_example", {
|
|
@@ -293,7 +293,7 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
293
293
|
* enabled: true,
|
|
294
294
|
* expression: "true",
|
|
295
295
|
* }],
|
|
296
|
-
* zoneId: "
|
|
296
|
+
* zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
|
|
297
297
|
* });
|
|
298
298
|
* // Redirects based on a List resource
|
|
299
299
|
* const redirectFromListExample = new cloudflare.Ruleset("redirect_from_list_example", {
|
|
@@ -315,6 +315,48 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
315
315
|
* expression: "http.request.full_uri in $redirect_list",
|
|
316
316
|
* }],
|
|
317
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",
|
|
359
|
+
* });
|
|
318
360
|
* ```
|
|
319
361
|
*
|
|
320
362
|
* ## Import
|
|
@@ -338,7 +380,7 @@ export declare class Ruleset extends pulumi.CustomResource {
|
|
|
338
380
|
*/
|
|
339
381
|
static isInstance(obj: any): obj is Ruleset;
|
|
340
382
|
/**
|
|
341
|
-
* The account identifier to target for the resource.
|
|
383
|
+
* The account identifier to target for the resource. Conflicts with `zoneId`.
|
|
342
384
|
*/
|
|
343
385
|
readonly accountId: pulumi.Output<string | undefined>;
|
|
344
386
|
/**
|
|
@@ -346,7 +388,7 @@ export declare class Ruleset extends pulumi.CustomResource {
|
|
|
346
388
|
*/
|
|
347
389
|
readonly description: pulumi.Output<string | undefined>;
|
|
348
390
|
/**
|
|
349
|
-
* 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`.
|
|
350
392
|
*/
|
|
351
393
|
readonly kind: pulumi.Output<string>;
|
|
352
394
|
/**
|
|
@@ -354,12 +396,7 @@ export declare class Ruleset extends pulumi.CustomResource {
|
|
|
354
396
|
*/
|
|
355
397
|
readonly name: pulumi.Output<string>;
|
|
356
398
|
/**
|
|
357
|
-
* Point in the request/response lifecycle where the ruleset will be created. Available values: `
|
|
358
|
-
* `http_log_custom_fields`, `http_request_cache_settings`, `http_request_firewall_custom`,
|
|
359
|
-
* `http_request_firewall_managed`, `http_request_late_transform`, `http_request_late_transform_managed`,
|
|
360
|
-
* `http_request_main`, `http_request_origin`, `http_request_redirect`, `http_request_sanitize`, `http_request_transform`,
|
|
361
|
-
* `http_response_firewall_managed`, `http_response_headers_transform`, `http_response_headers_transform_managed`,
|
|
362
|
-
* `magic_transit`, `http_ratelimit`, `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`.
|
|
363
400
|
*/
|
|
364
401
|
readonly phase: pulumi.Output<string>;
|
|
365
402
|
/**
|
|
@@ -371,7 +408,7 @@ export declare class Ruleset extends pulumi.CustomResource {
|
|
|
371
408
|
*/
|
|
372
409
|
readonly shareableEntitlementName: pulumi.Output<string | undefined>;
|
|
373
410
|
/**
|
|
374
|
-
* The zone identifier to target for the resource.
|
|
411
|
+
* The zone identifier to target for the resource. Conflicts with `accountId`.
|
|
375
412
|
*/
|
|
376
413
|
readonly zoneId: pulumi.Output<string | undefined>;
|
|
377
414
|
/**
|
|
@@ -388,7 +425,7 @@ export declare class Ruleset extends pulumi.CustomResource {
|
|
|
388
425
|
*/
|
|
389
426
|
export interface RulesetState {
|
|
390
427
|
/**
|
|
391
|
-
* The account identifier to target for the resource.
|
|
428
|
+
* The account identifier to target for the resource. Conflicts with `zoneId`.
|
|
392
429
|
*/
|
|
393
430
|
accountId?: pulumi.Input<string>;
|
|
394
431
|
/**
|
|
@@ -396,7 +433,7 @@ export interface RulesetState {
|
|
|
396
433
|
*/
|
|
397
434
|
description?: pulumi.Input<string>;
|
|
398
435
|
/**
|
|
399
|
-
* 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`.
|
|
400
437
|
*/
|
|
401
438
|
kind?: pulumi.Input<string>;
|
|
402
439
|
/**
|
|
@@ -404,12 +441,7 @@ export interface RulesetState {
|
|
|
404
441
|
*/
|
|
405
442
|
name?: pulumi.Input<string>;
|
|
406
443
|
/**
|
|
407
|
-
* Point in the request/response lifecycle where the ruleset will be created. Available values: `
|
|
408
|
-
* `http_log_custom_fields`, `http_request_cache_settings`, `http_request_firewall_custom`,
|
|
409
|
-
* `http_request_firewall_managed`, `http_request_late_transform`, `http_request_late_transform_managed`,
|
|
410
|
-
* `http_request_main`, `http_request_origin`, `http_request_redirect`, `http_request_sanitize`, `http_request_transform`,
|
|
411
|
-
* `http_response_firewall_managed`, `http_response_headers_transform`, `http_response_headers_transform_managed`,
|
|
412
|
-
* `magic_transit`, `http_ratelimit`, `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`.
|
|
413
445
|
*/
|
|
414
446
|
phase?: pulumi.Input<string>;
|
|
415
447
|
/**
|
|
@@ -421,7 +453,7 @@ export interface RulesetState {
|
|
|
421
453
|
*/
|
|
422
454
|
shareableEntitlementName?: pulumi.Input<string>;
|
|
423
455
|
/**
|
|
424
|
-
* The zone identifier to target for the resource.
|
|
456
|
+
* The zone identifier to target for the resource. Conflicts with `accountId`.
|
|
425
457
|
*/
|
|
426
458
|
zoneId?: pulumi.Input<string>;
|
|
427
459
|
}
|
|
@@ -430,7 +462,7 @@ export interface RulesetState {
|
|
|
430
462
|
*/
|
|
431
463
|
export interface RulesetArgs {
|
|
432
464
|
/**
|
|
433
|
-
* The account identifier to target for the resource.
|
|
465
|
+
* The account identifier to target for the resource. Conflicts with `zoneId`.
|
|
434
466
|
*/
|
|
435
467
|
accountId?: pulumi.Input<string>;
|
|
436
468
|
/**
|
|
@@ -438,7 +470,7 @@ export interface RulesetArgs {
|
|
|
438
470
|
*/
|
|
439
471
|
description?: pulumi.Input<string>;
|
|
440
472
|
/**
|
|
441
|
-
* 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`.
|
|
442
474
|
*/
|
|
443
475
|
kind: pulumi.Input<string>;
|
|
444
476
|
/**
|
|
@@ -446,12 +478,7 @@ export interface RulesetArgs {
|
|
|
446
478
|
*/
|
|
447
479
|
name: pulumi.Input<string>;
|
|
448
480
|
/**
|
|
449
|
-
* Point in the request/response lifecycle where the ruleset will be created. Available values: `
|
|
450
|
-
* `http_log_custom_fields`, `http_request_cache_settings`, `http_request_firewall_custom`,
|
|
451
|
-
* `http_request_firewall_managed`, `http_request_late_transform`, `http_request_late_transform_managed`,
|
|
452
|
-
* `http_request_main`, `http_request_origin`, `http_request_redirect`, `http_request_sanitize`, `http_request_transform`,
|
|
453
|
-
* `http_response_firewall_managed`, `http_response_headers_transform`, `http_response_headers_transform_managed`,
|
|
454
|
-
* `magic_transit`, `http_ratelimit`, `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`.
|
|
455
482
|
*/
|
|
456
483
|
phase: pulumi.Input<string>;
|
|
457
484
|
/**
|
|
@@ -463,7 +490,7 @@ export interface RulesetArgs {
|
|
|
463
490
|
*/
|
|
464
491
|
shareableEntitlementName?: pulumi.Input<string>;
|
|
465
492
|
/**
|
|
466
|
-
* The zone identifier to target for the resource.
|
|
493
|
+
* The zone identifier to target for the resource. Conflicts with `accountId`.
|
|
467
494
|
*/
|
|
468
495
|
zoneId?: pulumi.Input<string>;
|
|
469
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
192
|
+
* zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
|
|
193
193
|
* });
|
|
194
194
|
* // Custom fields logging
|
|
195
195
|
* const customFieldsLoggingExample = new cloudflare.Ruleset("custom_fields_logging_example", {
|
|
@@ -220,7 +220,7 @@ const utilities = require("./utilities");
|
|
|
220
220
|
* enabled: true,
|
|
221
221
|
* expression: "true",
|
|
222
222
|
* }],
|
|
223
|
-
* zoneId: "
|
|
223
|
+
* zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
|
|
224
224
|
* });
|
|
225
225
|
* // Custom cache keys + settings
|
|
226
226
|
* const cacheSettingsExample = new cloudflare.Ruleset("cache_settings_example", {
|
|
@@ -298,7 +298,7 @@ const utilities = require("./utilities");
|
|
|
298
298
|
* enabled: true,
|
|
299
299
|
* expression: "true",
|
|
300
300
|
* }],
|
|
301
|
-
* zoneId: "
|
|
301
|
+
* zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
|
|
302
302
|
* });
|
|
303
303
|
* // Redirects based on a List resource
|
|
304
304
|
* const redirectFromListExample = new cloudflare.Ruleset("redirect_from_list_example", {
|
|
@@ -320,6 +320,48 @@ const utilities = require("./utilities");
|
|
|
320
320
|
* expression: "http.request.full_uri in $redirect_list",
|
|
321
321
|
* }],
|
|
322
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",
|
|
364
|
+
* });
|
|
323
365
|
* ```
|
|
324
366
|
*
|
|
325
367
|
* ## 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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AG,IAAI,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/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
|
|
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: "
|
|
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: "
|
|
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: "
|
|
28
|
+
* accountId: "f037e56e89293a057740de681ac9abbe",
|
|
27
29
|
* tunnelId: tunnel.id,
|
|
28
30
|
* network: "192.0.2.24/32",
|
|
29
31
|
* comment: "New tunnel route for documentation",
|
|
@@ -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
|
|
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: "
|
|
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: "
|
|
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: "
|
|
34
|
+
* accountId: "f037e56e89293a057740de681ac9abbe",
|
|
33
35
|
* tunnelId: tunnel.id,
|
|
34
36
|
* network: "192.0.2.24/32",
|
|
35
37
|
* comment: "New tunnel route for documentation",
|
package/tunnelRoute.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tunnelRoute.js","sourceRoot":"","sources":["../tunnelRoute.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"tunnelRoute.js","sourceRoot":"","sources":["../tunnelRoute.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAyDlD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG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1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* Provides a resource, that manages Cloudflare tunnel virtual networks
|
|
4
|
-
* virtual networks are used for segregation of
|
|
5
|
-
*
|
|
3
|
+
* Provides a resource, that manages Cloudflare tunnel virtual networks
|
|
4
|
+
* for Zero Trust. Tunnel virtual networks are used for segregation of
|
|
5
|
+
* Tunnel IP Routes via Virtualized Networks to handle overlapping
|
|
6
|
+
* private IPs in your origins.
|
|
6
7
|
*
|
|
7
8
|
* ## Example Usage
|
|
8
9
|
*
|
|
@@ -11,7 +12,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
11
12
|
* import * as cloudflare from "@pulumi/cloudflare";
|
|
12
13
|
*
|
|
13
14
|
* const example = new cloudflare.TunnelVirtualNetwork("example", {
|
|
14
|
-
* accountId: "
|
|
15
|
+
* accountId: "f037e56e89293a057740de681ac9abbe",
|
|
15
16
|
* comment: "New tunnel virtual network for documentation",
|
|
16
17
|
* name: "vnet-for-documentation",
|
|
17
18
|
* });
|
|
@@ -48,8 +49,7 @@ export declare class TunnelVirtualNetwork extends pulumi.CustomResource {
|
|
|
48
49
|
*/
|
|
49
50
|
readonly comment: pulumi.Output<string | undefined>;
|
|
50
51
|
/**
|
|
51
|
-
* Whether this virtual network is the default one for the account. This means IP Routes belong to this virtual network and
|
|
52
|
-
* Teams Clients in the account route through this virtual network, unless specified otherwise for each case.
|
|
52
|
+
* Whether this virtual network is the default one for the account. This means IP Routes belong to this virtual network and Teams Clients in the account route through this virtual network, unless specified otherwise for each case.
|
|
53
53
|
*/
|
|
54
54
|
readonly isDefaultNetwork: pulumi.Output<boolean | undefined>;
|
|
55
55
|
/**
|
|
@@ -78,8 +78,7 @@ export interface TunnelVirtualNetworkState {
|
|
|
78
78
|
*/
|
|
79
79
|
comment?: pulumi.Input<string>;
|
|
80
80
|
/**
|
|
81
|
-
* Whether this virtual network is the default one for the account. This means IP Routes belong to this virtual network and
|
|
82
|
-
* Teams Clients in the account route through this virtual network, unless specified otherwise for each case.
|
|
81
|
+
* Whether this virtual network is the default one for the account. This means IP Routes belong to this virtual network and Teams Clients in the account route through this virtual network, unless specified otherwise for each case.
|
|
83
82
|
*/
|
|
84
83
|
isDefaultNetwork?: pulumi.Input<boolean>;
|
|
85
84
|
/**
|
|
@@ -100,8 +99,7 @@ export interface TunnelVirtualNetworkArgs {
|
|
|
100
99
|
*/
|
|
101
100
|
comment?: pulumi.Input<string>;
|
|
102
101
|
/**
|
|
103
|
-
* Whether this virtual network is the default one for the account. This means IP Routes belong to this virtual network and
|
|
104
|
-
* Teams Clients in the account route through this virtual network, unless specified otherwise for each case.
|
|
102
|
+
* Whether this virtual network is the default one for the account. This means IP Routes belong to this virtual network and Teams Clients in the account route through this virtual network, unless specified otherwise for each case.
|
|
105
103
|
*/
|
|
106
104
|
isDefaultNetwork?: pulumi.Input<boolean>;
|
|
107
105
|
/**
|
package/tunnelVirtualNetwork.js
CHANGED
|
@@ -6,9 +6,10 @@ exports.TunnelVirtualNetwork = 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 virtual networks
|
|
10
|
-
* virtual networks are used for segregation of
|
|
11
|
-
*
|
|
9
|
+
* Provides a resource, that manages Cloudflare tunnel virtual networks
|
|
10
|
+
* for Zero Trust. Tunnel virtual networks are used for segregation of
|
|
11
|
+
* Tunnel IP Routes via Virtualized Networks to handle overlapping
|
|
12
|
+
* private IPs in your origins.
|
|
12
13
|
*
|
|
13
14
|
* ## Example Usage
|
|
14
15
|
*
|
|
@@ -17,7 +18,7 @@ const utilities = require("./utilities");
|
|
|
17
18
|
* import * as cloudflare from "@pulumi/cloudflare";
|
|
18
19
|
*
|
|
19
20
|
* const example = new cloudflare.TunnelVirtualNetwork("example", {
|
|
20
|
-
* accountId: "
|
|
21
|
+
* accountId: "f037e56e89293a057740de681ac9abbe",
|
|
21
22
|
* comment: "New tunnel virtual network for documentation",
|
|
22
23
|
* name: "vnet-for-documentation",
|
|
23
24
|
* });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tunnelVirtualNetwork.js","sourceRoot":"","sources":["../tunnelVirtualNetwork.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"tunnelVirtualNetwork.js","sourceRoot":"","sources":["../tunnelVirtualNetwork.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAqD3D,YAAY,IAAY,EAAE,WAAkE,EAAE,IAAmC;QAC7H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoD,CAAC;YACnE,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,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;aAAM;YACH,MAAM,IAAI,GAAG,WAAmD,CAAC;YACjE,IAAI,CAAC,CAAC,IAAI,IAAI,I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