pulumi-cloudflare 6.10.1__py3-none-any.whl → 6.11.0__py3-none-any.whl
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.
- pulumi_cloudflare/__init__.py +31 -0
- pulumi_cloudflare/_inputs.py +2127 -309
- pulumi_cloudflare/access_application.py +7 -7
- pulumi_cloudflare/access_identity_provider.py +60 -0
- pulumi_cloudflare/access_mutual_tls_hostname_settings.py +26 -0
- pulumi_cloudflare/access_organization.py +56 -0
- pulumi_cloudflare/access_policy.py +96 -0
- pulumi_cloudflare/account.py +47 -0
- pulumi_cloudflare/account_dns_settings.py +62 -0
- pulumi_cloudflare/account_subscription.py +36 -0
- pulumi_cloudflare/account_token.py +90 -0
- pulumi_cloudflare/api_shield.py +0 -68
- pulumi_cloudflare/api_token.py +88 -0
- pulumi_cloudflare/authenticated_origin_pulls.py +26 -0
- pulumi_cloudflare/content_scanning.py +253 -0
- pulumi_cloudflare/custom_hostname.py +144 -0
- pulumi_cloudflare/custom_pages.py +7 -7
- pulumi_cloudflare/device_managed_networks.py +28 -0
- pulumi_cloudflare/device_posture_integration.py +34 -0
- pulumi_cloudflare/device_posture_rule.py +46 -0
- pulumi_cloudflare/dlp_custom_profile.py +57 -7
- pulumi_cloudflare/dns_firewall.py +50 -0
- pulumi_cloudflare/dns_record.py +38 -0
- pulumi_cloudflare/get_account.py +15 -1
- pulumi_cloudflare/get_api_shield.py +5 -27
- pulumi_cloudflare/get_content_scanning.py +136 -0
- pulumi_cloudflare/get_custom_pages.py +3 -3
- pulumi_cloudflare/get_list.py +2 -2
- pulumi_cloudflare/get_magic_transit_connector.py +12 -1
- pulumi_cloudflare/get_notification_policy.py +3 -3
- pulumi_cloudflare/get_notification_policy_webhooks.py +2 -2
- pulumi_cloudflare/get_organization.py +171 -0
- pulumi_cloudflare/get_organization_profile.py +154 -0
- pulumi_cloudflare/get_organizations.py +248 -0
- pulumi_cloudflare/get_pages_project.py +77 -7
- pulumi_cloudflare/get_worker.py +15 -1
- pulumi_cloudflare/get_zero_trust_access_application.py +1 -1
- pulumi_cloudflare/get_zero_trust_dex_test.py +7 -0
- pulumi_cloudflare/get_zero_trust_gateway_policy.py +1 -1
- pulumi_cloudflare/get_zero_trust_tunnel_cloudflared_config.py +18 -4
- pulumi_cloudflare/healthcheck.py +84 -0
- pulumi_cloudflare/hyperdrive_config.py +52 -0
- pulumi_cloudflare/keyless_certificate.py +34 -0
- pulumi_cloudflare/list_item.py +16 -0
- pulumi_cloudflare/load_balancer.py +282 -0
- pulumi_cloudflare/logpush_job.py +80 -0
- pulumi_cloudflare/magic_transit_site_acl.py +56 -0
- pulumi_cloudflare/magic_transit_site_lan.py +82 -0
- pulumi_cloudflare/magic_transit_site_wan.py +36 -0
- pulumi_cloudflare/magic_wan_static_route.py +34 -0
- pulumi_cloudflare/notification_policy.py +145 -7
- pulumi_cloudflare/organization.py +297 -0
- pulumi_cloudflare/organization_profile.py +340 -0
- pulumi_cloudflare/outputs.py +3322 -642
- pulumi_cloudflare/page_rule.py +34 -0
- pulumi_cloudflare/pages_project.py +571 -30
- pulumi_cloudflare/pulumi-plugin.json +1 -1
- pulumi_cloudflare/queue_consumer.py +38 -0
- pulumi_cloudflare/r2_bucket_cors.py +38 -0
- pulumi_cloudflare/r2_bucket_event_notification.py +19 -18
- pulumi_cloudflare/r2_bucket_lifecycle.py +70 -0
- pulumi_cloudflare/record.py +38 -0
- pulumi_cloudflare/snippet.py +42 -0
- pulumi_cloudflare/snippet_rules.py +28 -0
- pulumi_cloudflare/static_route.py +34 -0
- pulumi_cloudflare/teams_account.py +148 -0
- pulumi_cloudflare/teams_rule.py +259 -7
- pulumi_cloudflare/tunnel_config.py +50 -3
- pulumi_cloudflare/worker.py +88 -0
- pulumi_cloudflare/worker_script.py +158 -2
- pulumi_cloudflare/worker_version.py +112 -0
- pulumi_cloudflare/workers_deployment.py +34 -0
- pulumi_cloudflare/workers_script.py +158 -2
- pulumi_cloudflare/zero_trust_access_application.py +7 -7
- pulumi_cloudflare/zero_trust_access_identity_provider.py +60 -0
- pulumi_cloudflare/zero_trust_access_mtls_hostname_settings.py +26 -0
- pulumi_cloudflare/zero_trust_access_policy.py +96 -0
- pulumi_cloudflare/zero_trust_device_managed_networks.py +28 -0
- pulumi_cloudflare/zero_trust_device_posture_integration.py +34 -0
- pulumi_cloudflare/zero_trust_device_posture_rule.py +46 -0
- pulumi_cloudflare/zero_trust_dex_test.py +63 -3
- pulumi_cloudflare/zero_trust_dlp_custom_entry.py +6 -7
- pulumi_cloudflare/zero_trust_dlp_custom_profile.py +57 -7
- pulumi_cloudflare/zero_trust_dlp_entry.py +6 -7
- pulumi_cloudflare/zero_trust_dlp_predefined_entry.py +1 -1
- pulumi_cloudflare/zero_trust_gateway_policy.py +259 -7
- pulumi_cloudflare/zero_trust_gateway_settings.py +148 -0
- pulumi_cloudflare/zero_trust_organization.py +56 -0
- pulumi_cloudflare/zero_trust_tunnel_cloudflared_config.py +50 -3
- pulumi_cloudflare/zone_cache_variants.py +108 -0
- pulumi_cloudflare/zone_dns_settings.py +60 -0
- pulumi_cloudflare/zone_subscription.py +36 -0
- {pulumi_cloudflare-6.10.1.dist-info → pulumi_cloudflare-6.11.0.dist-info}/METADATA +1 -1
- {pulumi_cloudflare-6.10.1.dist-info → pulumi_cloudflare-6.11.0.dist-info}/RECORD +96 -89
- {pulumi_cloudflare-6.10.1.dist-info → pulumi_cloudflare-6.11.0.dist-info}/WHEEL +0 -0
- {pulumi_cloudflare-6.10.1.dist-info → pulumi_cloudflare-6.11.0.dist-info}/top_level.txt +0 -0
|
@@ -902,10 +902,88 @@ class WorkerScript(pulumi.CustomResource):
|
|
|
902
902
|
usage_model: Optional[pulumi.Input[_builtins.str]] = None,
|
|
903
903
|
__props__=None):
|
|
904
904
|
"""
|
|
905
|
-
|
|
905
|
+
> For more direct control over Workers resources, we recommend the beta `Worker`, `WorkerVersion`, and `WorkersDeployment` resources. See how to use them in the [developer documentation](https://developers.cloudflare.com/workers/platform/infrastructure-as-code/).
|
|
906
906
|
|
|
907
907
|
## Example Usage
|
|
908
908
|
|
|
909
|
+
```python
|
|
910
|
+
import pulumi
|
|
911
|
+
import pulumi_cloudflare as cloudflare
|
|
912
|
+
import pulumi_std as std
|
|
913
|
+
|
|
914
|
+
example_workers_script = cloudflare.WorkersScript("example_workers_script",
|
|
915
|
+
account_id="023e105f4ecef8ad9ca31a8372d0c353",
|
|
916
|
+
script_name="this-is_my_script-01",
|
|
917
|
+
assets={
|
|
918
|
+
"config": {
|
|
919
|
+
"headers": \"\"\" /dashboard/*
|
|
920
|
+
X-Frame-Options: DENY
|
|
921
|
+
|
|
922
|
+
/static/*
|
|
923
|
+
Access-Control-Allow-Origin: *
|
|
924
|
+
\"\"\",
|
|
925
|
+
"redirects": \"\"\" /foo /bar 301
|
|
926
|
+
/news/* /blog/:splat
|
|
927
|
+
\"\"\",
|
|
928
|
+
"html_handling": "auto-trailing-slash",
|
|
929
|
+
"not_found_handling": "none",
|
|
930
|
+
"run_worker_first": False,
|
|
931
|
+
},
|
|
932
|
+
"jwt": "jwt",
|
|
933
|
+
},
|
|
934
|
+
bindings=[{
|
|
935
|
+
"name": "MY_ENV_VAR",
|
|
936
|
+
"text": "my_data",
|
|
937
|
+
"type": "plain_text",
|
|
938
|
+
}],
|
|
939
|
+
compatibility_date="2021-01-01",
|
|
940
|
+
compatibility_flags=["nodejs_compat"],
|
|
941
|
+
content_file="worker.js",
|
|
942
|
+
content_sha256=std.filesha256(input="worker.js").result,
|
|
943
|
+
keep_assets=False,
|
|
944
|
+
keep_bindings=["kv_namespace"],
|
|
945
|
+
limits={
|
|
946
|
+
"cpu_ms": 50,
|
|
947
|
+
},
|
|
948
|
+
logpush=False,
|
|
949
|
+
main_module="worker.js",
|
|
950
|
+
migrations={
|
|
951
|
+
"deleted_classes": ["string"],
|
|
952
|
+
"new_classes": ["string"],
|
|
953
|
+
"new_sqlite_classes": ["string"],
|
|
954
|
+
"new_tag": "v2",
|
|
955
|
+
"old_tag": "v1",
|
|
956
|
+
"renamed_classes": [{
|
|
957
|
+
"from_": "from",
|
|
958
|
+
"to": "to",
|
|
959
|
+
}],
|
|
960
|
+
"transferred_classes": [{
|
|
961
|
+
"from_": "from",
|
|
962
|
+
"from_script": "from_script",
|
|
963
|
+
"to": "to",
|
|
964
|
+
}],
|
|
965
|
+
},
|
|
966
|
+
observability={
|
|
967
|
+
"enabled": True,
|
|
968
|
+
"head_sampling_rate": 0.1,
|
|
969
|
+
"logs": {
|
|
970
|
+
"enabled": True,
|
|
971
|
+
"invocation_logs": True,
|
|
972
|
+
"destinations": ["cloudflare"],
|
|
973
|
+
"head_sampling_rate": 0.1,
|
|
974
|
+
"persist": True,
|
|
975
|
+
},
|
|
976
|
+
},
|
|
977
|
+
placement={
|
|
978
|
+
"mode": "smart",
|
|
979
|
+
},
|
|
980
|
+
tail_consumers=[{
|
|
981
|
+
"service": "my-log-consumer",
|
|
982
|
+
"environment": "production",
|
|
983
|
+
"namespace": "my-namespace",
|
|
984
|
+
}])
|
|
985
|
+
```
|
|
986
|
+
|
|
909
987
|
## Import
|
|
910
988
|
|
|
911
989
|
```sh
|
|
@@ -945,10 +1023,88 @@ class WorkerScript(pulumi.CustomResource):
|
|
|
945
1023
|
args: WorkerScriptArgs,
|
|
946
1024
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
947
1025
|
"""
|
|
948
|
-
|
|
1026
|
+
> For more direct control over Workers resources, we recommend the beta `Worker`, `WorkerVersion`, and `WorkersDeployment` resources. See how to use them in the [developer documentation](https://developers.cloudflare.com/workers/platform/infrastructure-as-code/).
|
|
949
1027
|
|
|
950
1028
|
## Example Usage
|
|
951
1029
|
|
|
1030
|
+
```python
|
|
1031
|
+
import pulumi
|
|
1032
|
+
import pulumi_cloudflare as cloudflare
|
|
1033
|
+
import pulumi_std as std
|
|
1034
|
+
|
|
1035
|
+
example_workers_script = cloudflare.WorkersScript("example_workers_script",
|
|
1036
|
+
account_id="023e105f4ecef8ad9ca31a8372d0c353",
|
|
1037
|
+
script_name="this-is_my_script-01",
|
|
1038
|
+
assets={
|
|
1039
|
+
"config": {
|
|
1040
|
+
"headers": \"\"\" /dashboard/*
|
|
1041
|
+
X-Frame-Options: DENY
|
|
1042
|
+
|
|
1043
|
+
/static/*
|
|
1044
|
+
Access-Control-Allow-Origin: *
|
|
1045
|
+
\"\"\",
|
|
1046
|
+
"redirects": \"\"\" /foo /bar 301
|
|
1047
|
+
/news/* /blog/:splat
|
|
1048
|
+
\"\"\",
|
|
1049
|
+
"html_handling": "auto-trailing-slash",
|
|
1050
|
+
"not_found_handling": "none",
|
|
1051
|
+
"run_worker_first": False,
|
|
1052
|
+
},
|
|
1053
|
+
"jwt": "jwt",
|
|
1054
|
+
},
|
|
1055
|
+
bindings=[{
|
|
1056
|
+
"name": "MY_ENV_VAR",
|
|
1057
|
+
"text": "my_data",
|
|
1058
|
+
"type": "plain_text",
|
|
1059
|
+
}],
|
|
1060
|
+
compatibility_date="2021-01-01",
|
|
1061
|
+
compatibility_flags=["nodejs_compat"],
|
|
1062
|
+
content_file="worker.js",
|
|
1063
|
+
content_sha256=std.filesha256(input="worker.js").result,
|
|
1064
|
+
keep_assets=False,
|
|
1065
|
+
keep_bindings=["kv_namespace"],
|
|
1066
|
+
limits={
|
|
1067
|
+
"cpu_ms": 50,
|
|
1068
|
+
},
|
|
1069
|
+
logpush=False,
|
|
1070
|
+
main_module="worker.js",
|
|
1071
|
+
migrations={
|
|
1072
|
+
"deleted_classes": ["string"],
|
|
1073
|
+
"new_classes": ["string"],
|
|
1074
|
+
"new_sqlite_classes": ["string"],
|
|
1075
|
+
"new_tag": "v2",
|
|
1076
|
+
"old_tag": "v1",
|
|
1077
|
+
"renamed_classes": [{
|
|
1078
|
+
"from_": "from",
|
|
1079
|
+
"to": "to",
|
|
1080
|
+
}],
|
|
1081
|
+
"transferred_classes": [{
|
|
1082
|
+
"from_": "from",
|
|
1083
|
+
"from_script": "from_script",
|
|
1084
|
+
"to": "to",
|
|
1085
|
+
}],
|
|
1086
|
+
},
|
|
1087
|
+
observability={
|
|
1088
|
+
"enabled": True,
|
|
1089
|
+
"head_sampling_rate": 0.1,
|
|
1090
|
+
"logs": {
|
|
1091
|
+
"enabled": True,
|
|
1092
|
+
"invocation_logs": True,
|
|
1093
|
+
"destinations": ["cloudflare"],
|
|
1094
|
+
"head_sampling_rate": 0.1,
|
|
1095
|
+
"persist": True,
|
|
1096
|
+
},
|
|
1097
|
+
},
|
|
1098
|
+
placement={
|
|
1099
|
+
"mode": "smart",
|
|
1100
|
+
},
|
|
1101
|
+
tail_consumers=[{
|
|
1102
|
+
"service": "my-log-consumer",
|
|
1103
|
+
"environment": "production",
|
|
1104
|
+
"namespace": "my-namespace",
|
|
1105
|
+
}])
|
|
1106
|
+
```
|
|
1107
|
+
|
|
952
1108
|
## Import
|
|
953
1109
|
|
|
954
1110
|
```sh
|
|
@@ -551,6 +551,62 @@ class WorkerVersion(pulumi.CustomResource):
|
|
|
551
551
|
"""
|
|
552
552
|
## Example Usage
|
|
553
553
|
|
|
554
|
+
```python
|
|
555
|
+
import pulumi
|
|
556
|
+
import pulumi_cloudflare as cloudflare
|
|
557
|
+
|
|
558
|
+
example_worker_version = cloudflare.WorkerVersion("example_worker_version",
|
|
559
|
+
account_id="023e105f4ecef8ad9ca31a8372d0c353",
|
|
560
|
+
worker_id="worker_id",
|
|
561
|
+
annotations={
|
|
562
|
+
"workers_message": "Fixed bug.",
|
|
563
|
+
"workers_tag": "v1.0.1",
|
|
564
|
+
},
|
|
565
|
+
assets={
|
|
566
|
+
"config": {
|
|
567
|
+
"html_handling": "auto-trailing-slash",
|
|
568
|
+
"not_found_handling": "404-page",
|
|
569
|
+
"run_worker_firsts": ["string"],
|
|
570
|
+
},
|
|
571
|
+
"jwt": "jwt",
|
|
572
|
+
},
|
|
573
|
+
bindings=[{
|
|
574
|
+
"name": "MY_ENV_VAR",
|
|
575
|
+
"text": "my_data",
|
|
576
|
+
"type": "plain_text",
|
|
577
|
+
}],
|
|
578
|
+
compatibility_date="2021-01-01",
|
|
579
|
+
compatibility_flags=["nodejs_compat"],
|
|
580
|
+
limits={
|
|
581
|
+
"cpu_ms": 50,
|
|
582
|
+
},
|
|
583
|
+
main_module="index.js",
|
|
584
|
+
migrations={
|
|
585
|
+
"deleted_classes": ["string"],
|
|
586
|
+
"new_classes": ["string"],
|
|
587
|
+
"new_sqlite_classes": ["string"],
|
|
588
|
+
"new_tag": "v2",
|
|
589
|
+
"old_tag": "v1",
|
|
590
|
+
"renamed_classes": [{
|
|
591
|
+
"from_": "from",
|
|
592
|
+
"to": "to",
|
|
593
|
+
}],
|
|
594
|
+
"transferred_classes": [{
|
|
595
|
+
"from_": "from",
|
|
596
|
+
"from_script": "from_script",
|
|
597
|
+
"to": "to",
|
|
598
|
+
}],
|
|
599
|
+
},
|
|
600
|
+
modules=[{
|
|
601
|
+
"content_file": "dist/index.js",
|
|
602
|
+
"content_type": "application/javascript+module",
|
|
603
|
+
"name": "index.js",
|
|
604
|
+
}],
|
|
605
|
+
placement={
|
|
606
|
+
"mode": "smart",
|
|
607
|
+
})
|
|
608
|
+
```
|
|
609
|
+
|
|
554
610
|
## Import
|
|
555
611
|
|
|
556
612
|
```sh
|
|
@@ -588,6 +644,62 @@ class WorkerVersion(pulumi.CustomResource):
|
|
|
588
644
|
"""
|
|
589
645
|
## Example Usage
|
|
590
646
|
|
|
647
|
+
```python
|
|
648
|
+
import pulumi
|
|
649
|
+
import pulumi_cloudflare as cloudflare
|
|
650
|
+
|
|
651
|
+
example_worker_version = cloudflare.WorkerVersion("example_worker_version",
|
|
652
|
+
account_id="023e105f4ecef8ad9ca31a8372d0c353",
|
|
653
|
+
worker_id="worker_id",
|
|
654
|
+
annotations={
|
|
655
|
+
"workers_message": "Fixed bug.",
|
|
656
|
+
"workers_tag": "v1.0.1",
|
|
657
|
+
},
|
|
658
|
+
assets={
|
|
659
|
+
"config": {
|
|
660
|
+
"html_handling": "auto-trailing-slash",
|
|
661
|
+
"not_found_handling": "404-page",
|
|
662
|
+
"run_worker_firsts": ["string"],
|
|
663
|
+
},
|
|
664
|
+
"jwt": "jwt",
|
|
665
|
+
},
|
|
666
|
+
bindings=[{
|
|
667
|
+
"name": "MY_ENV_VAR",
|
|
668
|
+
"text": "my_data",
|
|
669
|
+
"type": "plain_text",
|
|
670
|
+
}],
|
|
671
|
+
compatibility_date="2021-01-01",
|
|
672
|
+
compatibility_flags=["nodejs_compat"],
|
|
673
|
+
limits={
|
|
674
|
+
"cpu_ms": 50,
|
|
675
|
+
},
|
|
676
|
+
main_module="index.js",
|
|
677
|
+
migrations={
|
|
678
|
+
"deleted_classes": ["string"],
|
|
679
|
+
"new_classes": ["string"],
|
|
680
|
+
"new_sqlite_classes": ["string"],
|
|
681
|
+
"new_tag": "v2",
|
|
682
|
+
"old_tag": "v1",
|
|
683
|
+
"renamed_classes": [{
|
|
684
|
+
"from_": "from",
|
|
685
|
+
"to": "to",
|
|
686
|
+
}],
|
|
687
|
+
"transferred_classes": [{
|
|
688
|
+
"from_": "from",
|
|
689
|
+
"from_script": "from_script",
|
|
690
|
+
"to": "to",
|
|
691
|
+
}],
|
|
692
|
+
},
|
|
693
|
+
modules=[{
|
|
694
|
+
"content_file": "dist/index.js",
|
|
695
|
+
"content_type": "application/javascript+module",
|
|
696
|
+
"name": "index.js",
|
|
697
|
+
}],
|
|
698
|
+
placement={
|
|
699
|
+
"mode": "smart",
|
|
700
|
+
})
|
|
701
|
+
```
|
|
702
|
+
|
|
591
703
|
## Import
|
|
592
704
|
|
|
593
705
|
```sh
|
|
@@ -225,6 +225,23 @@ class WorkersDeployment(pulumi.CustomResource):
|
|
|
225
225
|
"""
|
|
226
226
|
## Example Usage
|
|
227
227
|
|
|
228
|
+
```python
|
|
229
|
+
import pulumi
|
|
230
|
+
import pulumi_cloudflare as cloudflare
|
|
231
|
+
|
|
232
|
+
example_workers_deployment = cloudflare.WorkersDeployment("example_workers_deployment",
|
|
233
|
+
account_id="023e105f4ecef8ad9ca31a8372d0c353",
|
|
234
|
+
script_name="this-is_my_script-01",
|
|
235
|
+
strategy="percentage",
|
|
236
|
+
versions=[{
|
|
237
|
+
"percentage": 100,
|
|
238
|
+
"version_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
|
|
239
|
+
}],
|
|
240
|
+
annotations={
|
|
241
|
+
"workers_message": "Deploy bug fix.",
|
|
242
|
+
})
|
|
243
|
+
```
|
|
244
|
+
|
|
228
245
|
## Import
|
|
229
246
|
|
|
230
247
|
```sh
|
|
@@ -246,6 +263,23 @@ class WorkersDeployment(pulumi.CustomResource):
|
|
|
246
263
|
"""
|
|
247
264
|
## Example Usage
|
|
248
265
|
|
|
266
|
+
```python
|
|
267
|
+
import pulumi
|
|
268
|
+
import pulumi_cloudflare as cloudflare
|
|
269
|
+
|
|
270
|
+
example_workers_deployment = cloudflare.WorkersDeployment("example_workers_deployment",
|
|
271
|
+
account_id="023e105f4ecef8ad9ca31a8372d0c353",
|
|
272
|
+
script_name="this-is_my_script-01",
|
|
273
|
+
strategy="percentage",
|
|
274
|
+
versions=[{
|
|
275
|
+
"percentage": 100,
|
|
276
|
+
"version_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
|
|
277
|
+
}],
|
|
278
|
+
annotations={
|
|
279
|
+
"workers_message": "Deploy bug fix.",
|
|
280
|
+
})
|
|
281
|
+
```
|
|
282
|
+
|
|
249
283
|
## Import
|
|
250
284
|
|
|
251
285
|
```sh
|
|
@@ -897,10 +897,88 @@ class WorkersScript(pulumi.CustomResource):
|
|
|
897
897
|
usage_model: Optional[pulumi.Input[_builtins.str]] = None,
|
|
898
898
|
__props__=None):
|
|
899
899
|
"""
|
|
900
|
-
|
|
900
|
+
> For more direct control over Workers resources, we recommend the beta `Worker`, `WorkerVersion`, and `WorkersDeployment` resources. See how to use them in the [developer documentation](https://developers.cloudflare.com/workers/platform/infrastructure-as-code/).
|
|
901
901
|
|
|
902
902
|
## Example Usage
|
|
903
903
|
|
|
904
|
+
```python
|
|
905
|
+
import pulumi
|
|
906
|
+
import pulumi_cloudflare as cloudflare
|
|
907
|
+
import pulumi_std as std
|
|
908
|
+
|
|
909
|
+
example_workers_script = cloudflare.WorkersScript("example_workers_script",
|
|
910
|
+
account_id="023e105f4ecef8ad9ca31a8372d0c353",
|
|
911
|
+
script_name="this-is_my_script-01",
|
|
912
|
+
assets={
|
|
913
|
+
"config": {
|
|
914
|
+
"headers": \"\"\" /dashboard/*
|
|
915
|
+
X-Frame-Options: DENY
|
|
916
|
+
|
|
917
|
+
/static/*
|
|
918
|
+
Access-Control-Allow-Origin: *
|
|
919
|
+
\"\"\",
|
|
920
|
+
"redirects": \"\"\" /foo /bar 301
|
|
921
|
+
/news/* /blog/:splat
|
|
922
|
+
\"\"\",
|
|
923
|
+
"html_handling": "auto-trailing-slash",
|
|
924
|
+
"not_found_handling": "none",
|
|
925
|
+
"run_worker_first": False,
|
|
926
|
+
},
|
|
927
|
+
"jwt": "jwt",
|
|
928
|
+
},
|
|
929
|
+
bindings=[{
|
|
930
|
+
"name": "MY_ENV_VAR",
|
|
931
|
+
"text": "my_data",
|
|
932
|
+
"type": "plain_text",
|
|
933
|
+
}],
|
|
934
|
+
compatibility_date="2021-01-01",
|
|
935
|
+
compatibility_flags=["nodejs_compat"],
|
|
936
|
+
content_file="worker.js",
|
|
937
|
+
content_sha256=std.filesha256(input="worker.js").result,
|
|
938
|
+
keep_assets=False,
|
|
939
|
+
keep_bindings=["kv_namespace"],
|
|
940
|
+
limits={
|
|
941
|
+
"cpu_ms": 50,
|
|
942
|
+
},
|
|
943
|
+
logpush=False,
|
|
944
|
+
main_module="worker.js",
|
|
945
|
+
migrations={
|
|
946
|
+
"deleted_classes": ["string"],
|
|
947
|
+
"new_classes": ["string"],
|
|
948
|
+
"new_sqlite_classes": ["string"],
|
|
949
|
+
"new_tag": "v2",
|
|
950
|
+
"old_tag": "v1",
|
|
951
|
+
"renamed_classes": [{
|
|
952
|
+
"from_": "from",
|
|
953
|
+
"to": "to",
|
|
954
|
+
}],
|
|
955
|
+
"transferred_classes": [{
|
|
956
|
+
"from_": "from",
|
|
957
|
+
"from_script": "from_script",
|
|
958
|
+
"to": "to",
|
|
959
|
+
}],
|
|
960
|
+
},
|
|
961
|
+
observability={
|
|
962
|
+
"enabled": True,
|
|
963
|
+
"head_sampling_rate": 0.1,
|
|
964
|
+
"logs": {
|
|
965
|
+
"enabled": True,
|
|
966
|
+
"invocation_logs": True,
|
|
967
|
+
"destinations": ["cloudflare"],
|
|
968
|
+
"head_sampling_rate": 0.1,
|
|
969
|
+
"persist": True,
|
|
970
|
+
},
|
|
971
|
+
},
|
|
972
|
+
placement={
|
|
973
|
+
"mode": "smart",
|
|
974
|
+
},
|
|
975
|
+
tail_consumers=[{
|
|
976
|
+
"service": "my-log-consumer",
|
|
977
|
+
"environment": "production",
|
|
978
|
+
"namespace": "my-namespace",
|
|
979
|
+
}])
|
|
980
|
+
```
|
|
981
|
+
|
|
904
982
|
## Import
|
|
905
983
|
|
|
906
984
|
```sh
|
|
@@ -940,10 +1018,88 @@ class WorkersScript(pulumi.CustomResource):
|
|
|
940
1018
|
args: WorkersScriptArgs,
|
|
941
1019
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
942
1020
|
"""
|
|
943
|
-
|
|
1021
|
+
> For more direct control over Workers resources, we recommend the beta `Worker`, `WorkerVersion`, and `WorkersDeployment` resources. See how to use them in the [developer documentation](https://developers.cloudflare.com/workers/platform/infrastructure-as-code/).
|
|
944
1022
|
|
|
945
1023
|
## Example Usage
|
|
946
1024
|
|
|
1025
|
+
```python
|
|
1026
|
+
import pulumi
|
|
1027
|
+
import pulumi_cloudflare as cloudflare
|
|
1028
|
+
import pulumi_std as std
|
|
1029
|
+
|
|
1030
|
+
example_workers_script = cloudflare.WorkersScript("example_workers_script",
|
|
1031
|
+
account_id="023e105f4ecef8ad9ca31a8372d0c353",
|
|
1032
|
+
script_name="this-is_my_script-01",
|
|
1033
|
+
assets={
|
|
1034
|
+
"config": {
|
|
1035
|
+
"headers": \"\"\" /dashboard/*
|
|
1036
|
+
X-Frame-Options: DENY
|
|
1037
|
+
|
|
1038
|
+
/static/*
|
|
1039
|
+
Access-Control-Allow-Origin: *
|
|
1040
|
+
\"\"\",
|
|
1041
|
+
"redirects": \"\"\" /foo /bar 301
|
|
1042
|
+
/news/* /blog/:splat
|
|
1043
|
+
\"\"\",
|
|
1044
|
+
"html_handling": "auto-trailing-slash",
|
|
1045
|
+
"not_found_handling": "none",
|
|
1046
|
+
"run_worker_first": False,
|
|
1047
|
+
},
|
|
1048
|
+
"jwt": "jwt",
|
|
1049
|
+
},
|
|
1050
|
+
bindings=[{
|
|
1051
|
+
"name": "MY_ENV_VAR",
|
|
1052
|
+
"text": "my_data",
|
|
1053
|
+
"type": "plain_text",
|
|
1054
|
+
}],
|
|
1055
|
+
compatibility_date="2021-01-01",
|
|
1056
|
+
compatibility_flags=["nodejs_compat"],
|
|
1057
|
+
content_file="worker.js",
|
|
1058
|
+
content_sha256=std.filesha256(input="worker.js").result,
|
|
1059
|
+
keep_assets=False,
|
|
1060
|
+
keep_bindings=["kv_namespace"],
|
|
1061
|
+
limits={
|
|
1062
|
+
"cpu_ms": 50,
|
|
1063
|
+
},
|
|
1064
|
+
logpush=False,
|
|
1065
|
+
main_module="worker.js",
|
|
1066
|
+
migrations={
|
|
1067
|
+
"deleted_classes": ["string"],
|
|
1068
|
+
"new_classes": ["string"],
|
|
1069
|
+
"new_sqlite_classes": ["string"],
|
|
1070
|
+
"new_tag": "v2",
|
|
1071
|
+
"old_tag": "v1",
|
|
1072
|
+
"renamed_classes": [{
|
|
1073
|
+
"from_": "from",
|
|
1074
|
+
"to": "to",
|
|
1075
|
+
}],
|
|
1076
|
+
"transferred_classes": [{
|
|
1077
|
+
"from_": "from",
|
|
1078
|
+
"from_script": "from_script",
|
|
1079
|
+
"to": "to",
|
|
1080
|
+
}],
|
|
1081
|
+
},
|
|
1082
|
+
observability={
|
|
1083
|
+
"enabled": True,
|
|
1084
|
+
"head_sampling_rate": 0.1,
|
|
1085
|
+
"logs": {
|
|
1086
|
+
"enabled": True,
|
|
1087
|
+
"invocation_logs": True,
|
|
1088
|
+
"destinations": ["cloudflare"],
|
|
1089
|
+
"head_sampling_rate": 0.1,
|
|
1090
|
+
"persist": True,
|
|
1091
|
+
},
|
|
1092
|
+
},
|
|
1093
|
+
placement={
|
|
1094
|
+
"mode": "smart",
|
|
1095
|
+
},
|
|
1096
|
+
tail_consumers=[{
|
|
1097
|
+
"service": "my-log-consumer",
|
|
1098
|
+
"environment": "production",
|
|
1099
|
+
"namespace": "my-namespace",
|
|
1100
|
+
}])
|
|
1101
|
+
```
|
|
1102
|
+
|
|
947
1103
|
## Import
|
|
948
1104
|
|
|
949
1105
|
```sh
|
|
@@ -101,7 +101,7 @@ class ZeroTrustAccessApplicationArgs:
|
|
|
101
101
|
:param pulumi.Input[_builtins.bool] skip_interstitial: Enables automatic authentication through cloudflared.
|
|
102
102
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The tags you want assigned to an application. Tags are used to filter applications in the App Launcher dashboard.
|
|
103
103
|
:param pulumi.Input[_builtins.str] type: The application type.
|
|
104
|
-
Available values: "self*hosted", "saas", "ssh", "vnc", "app*launcher", "warp", "biso", "bookmark", "
|
|
104
|
+
Available values: "self*hosted", "saas", "ssh", "vnc", "app*launcher", "warp", "biso", "bookmark", "dash*sso", "infrastructure", "rdp", "mcp", "mcp*portal".
|
|
105
105
|
:param pulumi.Input[_builtins.str] zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
|
|
106
106
|
"""
|
|
107
107
|
if account_id is not None:
|
|
@@ -619,7 +619,7 @@ class ZeroTrustAccessApplicationArgs:
|
|
|
619
619
|
def type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
620
620
|
"""
|
|
621
621
|
The application type.
|
|
622
|
-
Available values: "self*hosted", "saas", "ssh", "vnc", "app*launcher", "warp", "biso", "bookmark", "
|
|
622
|
+
Available values: "self*hosted", "saas", "ssh", "vnc", "app*launcher", "warp", "biso", "bookmark", "dash*sso", "infrastructure", "rdp", "mcp", "mcp*portal".
|
|
623
623
|
"""
|
|
624
624
|
return pulumi.get(self, "type")
|
|
625
625
|
|
|
@@ -725,7 +725,7 @@ class _ZeroTrustAccessApplicationState:
|
|
|
725
725
|
:param pulumi.Input[_builtins.bool] skip_interstitial: Enables automatic authentication through cloudflared.
|
|
726
726
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The tags you want assigned to an application. Tags are used to filter applications in the App Launcher dashboard.
|
|
727
727
|
:param pulumi.Input[_builtins.str] type: The application type.
|
|
728
|
-
Available values: "self*hosted", "saas", "ssh", "vnc", "app*launcher", "warp", "biso", "bookmark", "
|
|
728
|
+
Available values: "self*hosted", "saas", "ssh", "vnc", "app*launcher", "warp", "biso", "bookmark", "dash*sso", "infrastructure", "rdp", "mcp", "mcp*portal".
|
|
729
729
|
:param pulumi.Input[_builtins.str] zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
|
|
730
730
|
"""
|
|
731
731
|
if account_id is not None:
|
|
@@ -1257,7 +1257,7 @@ class _ZeroTrustAccessApplicationState:
|
|
|
1257
1257
|
def type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
1258
1258
|
"""
|
|
1259
1259
|
The application type.
|
|
1260
|
-
Available values: "self*hosted", "saas", "ssh", "vnc", "app*launcher", "warp", "biso", "bookmark", "
|
|
1260
|
+
Available values: "self*hosted", "saas", "ssh", "vnc", "app*launcher", "warp", "biso", "bookmark", "dash*sso", "infrastructure", "rdp", "mcp", "mcp*portal".
|
|
1261
1261
|
"""
|
|
1262
1262
|
return pulumi.get(self, "type")
|
|
1263
1263
|
|
|
@@ -1374,7 +1374,7 @@ class ZeroTrustAccessApplication(pulumi.CustomResource):
|
|
|
1374
1374
|
:param pulumi.Input[_builtins.bool] skip_interstitial: Enables automatic authentication through cloudflared.
|
|
1375
1375
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The tags you want assigned to an application. Tags are used to filter applications in the App Launcher dashboard.
|
|
1376
1376
|
:param pulumi.Input[_builtins.str] type: The application type.
|
|
1377
|
-
Available values: "self*hosted", "saas", "ssh", "vnc", "app*launcher", "warp", "biso", "bookmark", "
|
|
1377
|
+
Available values: "self*hosted", "saas", "ssh", "vnc", "app*launcher", "warp", "biso", "bookmark", "dash*sso", "infrastructure", "rdp", "mcp", "mcp*portal".
|
|
1378
1378
|
:param pulumi.Input[_builtins.str] zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
|
|
1379
1379
|
"""
|
|
1380
1380
|
...
|
|
@@ -1592,7 +1592,7 @@ class ZeroTrustAccessApplication(pulumi.CustomResource):
|
|
|
1592
1592
|
:param pulumi.Input[_builtins.bool] skip_interstitial: Enables automatic authentication through cloudflared.
|
|
1593
1593
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The tags you want assigned to an application. Tags are used to filter applications in the App Launcher dashboard.
|
|
1594
1594
|
:param pulumi.Input[_builtins.str] type: The application type.
|
|
1595
|
-
Available values: "self*hosted", "saas", "ssh", "vnc", "app*launcher", "warp", "biso", "bookmark", "
|
|
1595
|
+
Available values: "self*hosted", "saas", "ssh", "vnc", "app*launcher", "warp", "biso", "bookmark", "dash*sso", "infrastructure", "rdp", "mcp", "mcp*portal".
|
|
1596
1596
|
:param pulumi.Input[_builtins.str] zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
|
|
1597
1597
|
"""
|
|
1598
1598
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -1939,7 +1939,7 @@ class ZeroTrustAccessApplication(pulumi.CustomResource):
|
|
|
1939
1939
|
def type(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1940
1940
|
"""
|
|
1941
1941
|
The application type.
|
|
1942
|
-
Available values: "self*hosted", "saas", "ssh", "vnc", "app*launcher", "warp", "biso", "bookmark", "
|
|
1942
|
+
Available values: "self*hosted", "saas", "ssh", "vnc", "app*launcher", "warp", "biso", "bookmark", "dash*sso", "infrastructure", "rdp", "mcp", "mcp*portal".
|
|
1943
1943
|
"""
|
|
1944
1944
|
return pulumi.get(self, "type")
|
|
1945
1945
|
|
|
@@ -243,6 +243,36 @@ class ZeroTrustAccessIdentityProvider(pulumi.CustomResource):
|
|
|
243
243
|
"""
|
|
244
244
|
## Example Usage
|
|
245
245
|
|
|
246
|
+
```python
|
|
247
|
+
import pulumi
|
|
248
|
+
import pulumi_cloudflare as cloudflare
|
|
249
|
+
|
|
250
|
+
example_zero_trust_access_identity_provider = cloudflare.ZeroTrustAccessIdentityProvider("example_zero_trust_access_identity_provider",
|
|
251
|
+
config={
|
|
252
|
+
"claims": [
|
|
253
|
+
"email_verified",
|
|
254
|
+
"preferred_username",
|
|
255
|
+
"custom_claim_name",
|
|
256
|
+
],
|
|
257
|
+
"client_id": "<your client id>",
|
|
258
|
+
"client_secret": "<your client secret>",
|
|
259
|
+
"conditional_access_enabled": True,
|
|
260
|
+
"directory_id": "<your azure directory uuid>",
|
|
261
|
+
"email_claim_name": "custom_claim_name",
|
|
262
|
+
"prompt": "login",
|
|
263
|
+
"support_groups": True,
|
|
264
|
+
},
|
|
265
|
+
name="Widget Corps IDP",
|
|
266
|
+
type="onetimepin",
|
|
267
|
+
zone_id="zone_id",
|
|
268
|
+
scim_config={
|
|
269
|
+
"enabled": True,
|
|
270
|
+
"identity_update_behavior": "automatic",
|
|
271
|
+
"seat_deprovision": True,
|
|
272
|
+
"user_deprovision": True,
|
|
273
|
+
})
|
|
274
|
+
```
|
|
275
|
+
|
|
246
276
|
## Import
|
|
247
277
|
|
|
248
278
|
```sh
|
|
@@ -268,6 +298,36 @@ class ZeroTrustAccessIdentityProvider(pulumi.CustomResource):
|
|
|
268
298
|
"""
|
|
269
299
|
## Example Usage
|
|
270
300
|
|
|
301
|
+
```python
|
|
302
|
+
import pulumi
|
|
303
|
+
import pulumi_cloudflare as cloudflare
|
|
304
|
+
|
|
305
|
+
example_zero_trust_access_identity_provider = cloudflare.ZeroTrustAccessIdentityProvider("example_zero_trust_access_identity_provider",
|
|
306
|
+
config={
|
|
307
|
+
"claims": [
|
|
308
|
+
"email_verified",
|
|
309
|
+
"preferred_username",
|
|
310
|
+
"custom_claim_name",
|
|
311
|
+
],
|
|
312
|
+
"client_id": "<your client id>",
|
|
313
|
+
"client_secret": "<your client secret>",
|
|
314
|
+
"conditional_access_enabled": True,
|
|
315
|
+
"directory_id": "<your azure directory uuid>",
|
|
316
|
+
"email_claim_name": "custom_claim_name",
|
|
317
|
+
"prompt": "login",
|
|
318
|
+
"support_groups": True,
|
|
319
|
+
},
|
|
320
|
+
name="Widget Corps IDP",
|
|
321
|
+
type="onetimepin",
|
|
322
|
+
zone_id="zone_id",
|
|
323
|
+
scim_config={
|
|
324
|
+
"enabled": True,
|
|
325
|
+
"identity_update_behavior": "automatic",
|
|
326
|
+
"seat_deprovision": True,
|
|
327
|
+
"user_deprovision": True,
|
|
328
|
+
})
|
|
329
|
+
```
|
|
330
|
+
|
|
271
331
|
## Import
|
|
272
332
|
|
|
273
333
|
```sh
|