@pulumi/cloudflare 6.10.0-alpha.1759386985 → 6.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/accessCustomPage.d.ts +12 -0
  2. package/accessCustomPage.js +12 -0
  3. package/accessCustomPage.js.map +1 -1
  4. package/accessServiceToken.d.ts +26 -0
  5. package/accessServiceToken.js +6 -0
  6. package/accessServiceToken.js.map +1 -1
  7. package/addressMap.d.ts +1 -1
  8. package/botManagement.d.ts +17 -1
  9. package/botManagement.js +4 -1
  10. package/botManagement.js.map +1 -1
  11. package/byoIpPrefix.d.ts +16 -0
  12. package/byoIpPrefix.js.map +1 -1
  13. package/dnsFirewall.d.ts +69 -9
  14. package/dnsFirewall.js.map +1 -1
  15. package/emailRoutingDns.d.ts +2 -2
  16. package/emailRoutingDns.js +0 -3
  17. package/emailRoutingDns.js.map +1 -1
  18. package/emailSecurityBlockSender.d.ts +3 -3
  19. package/emailSecurityBlockSender.js +3 -3
  20. package/emailSecurityTrustedDomains.d.ts +4 -4
  21. package/emailSecurityTrustedDomains.js +4 -4
  22. package/getBotManagement.d.ts +5 -0
  23. package/getBotManagement.js.map +1 -1
  24. package/getByoIpPrefix.d.ts +8 -0
  25. package/getByoIpPrefix.js.map +1 -1
  26. package/getDnsFirewall.d.ts +4 -19
  27. package/getDnsFirewall.js.map +1 -1
  28. package/getLoadBalancerPool.d.ts +4 -0
  29. package/getLoadBalancerPool.js.map +1 -1
  30. package/getPageShieldConnectionsList.d.ts +3 -3
  31. package/getPageShieldCookiesList.d.ts +3 -3
  32. package/getPageShieldScriptsList.d.ts +3 -3
  33. package/getWorker.d.ts +6 -6
  34. package/getWorker.js +2 -2
  35. package/getWorkerVersion.d.ts +19 -46
  36. package/getWorkerVersion.js +4 -4
  37. package/getWorkerVersion.js.map +1 -1
  38. package/getWorkerVersions.d.ts +5 -5
  39. package/getWorkerVersions.js +2 -2
  40. package/getWorkflow.d.ts +66 -0
  41. package/getWorkflow.js +52 -0
  42. package/getWorkflow.js.map +1 -0
  43. package/getWorkflows.d.ts +80 -0
  44. package/getWorkflows.js +52 -0
  45. package/getWorkflows.js.map +1 -0
  46. package/getZeroTrustAccessApplication.d.ts +0 -2
  47. package/getZeroTrustAccessApplication.js.map +1 -1
  48. package/getZeroTrustAccessCustomPage.d.ts +0 -6
  49. package/getZeroTrustAccessCustomPage.js.map +1 -1
  50. package/getZeroTrustAccessGroup.d.ts +0 -2
  51. package/getZeroTrustAccessGroup.js.map +1 -1
  52. package/getZeroTrustAccessMtlsCertificate.d.ts +0 -2
  53. package/getZeroTrustAccessMtlsCertificate.js.map +1 -1
  54. package/getZeroTrustAccessServiceToken.d.ts +0 -3
  55. package/getZeroTrustAccessServiceToken.js.map +1 -1
  56. package/getZeroTrustAccessTag.d.ts +0 -6
  57. package/getZeroTrustAccessTag.js.map +1 -1
  58. package/getZeroTrustDnsLocation.d.ts +11 -11
  59. package/getZeroTrustGatewayAppTypesList.d.ts +3 -3
  60. package/getZeroTrustGatewayCategoriesList.d.ts +3 -3
  61. package/getZeroTrustGatewayCertificate.d.ts +11 -11
  62. package/getZeroTrustGatewayLogging.d.ts +2 -2
  63. package/getZeroTrustGatewayPolicy.d.ts +36 -10
  64. package/getZeroTrustGatewayPolicy.js.map +1 -1
  65. package/getZeroTrustGatewayProxyEndpoint.d.ts +3 -3
  66. package/getZeroTrustGatewaySettings.d.ts +3 -0
  67. package/getZeroTrustGatewaySettings.js.map +1 -1
  68. package/getZeroTrustList.d.ts +9 -9
  69. package/getZeroTrustLists.d.ts +3 -3
  70. package/getZeroTrustNetworkHostnameRoute.d.ts +101 -0
  71. package/getZeroTrustNetworkHostnameRoute.js +52 -0
  72. package/getZeroTrustNetworkHostnameRoute.js.map +1 -0
  73. package/getZeroTrustNetworkHostnameRoutes.d.ts +153 -0
  74. package/getZeroTrustNetworkHostnameRoutes.js +70 -0
  75. package/getZeroTrustNetworkHostnameRoutes.js.map +1 -0
  76. package/getZeroTrustOrganization.d.ts +0 -2
  77. package/getZeroTrustOrganization.js.map +1 -1
  78. package/index.d.ts +18 -0
  79. package/index.js +29 -7
  80. package/index.js.map +1 -1
  81. package/listItem.d.ts +4 -0
  82. package/listItem.js +4 -0
  83. package/listItem.js.map +1 -1
  84. package/loadBalancerPool.d.ts +12 -0
  85. package/loadBalancerPool.js +2 -0
  86. package/loadBalancerPool.js.map +1 -1
  87. package/package.json +2 -2
  88. package/r2customDomain.d.ts +2 -2
  89. package/r2customDomain.js +2 -2
  90. package/teamsAccount.d.ts +3 -3
  91. package/teamsList.d.ts +14 -14
  92. package/teamsLocation.d.ts +28 -28
  93. package/teamsProxyEndpoint.d.ts +8 -8
  94. package/teamsRule.d.ts +39 -51
  95. package/teamsRule.js +2 -2
  96. package/teamsRule.js.map +1 -1
  97. package/types/input.d.ts +522 -359
  98. package/types/output.d.ts +975 -740
  99. package/workerScript.d.ts +12 -12
  100. package/workerVersion.d.ts +18 -3
  101. package/workerVersion.js.map +1 -1
  102. package/workersScript.d.ts +12 -12
  103. package/workersScriptSubdomain.d.ts +2 -2
  104. package/workersScriptSubdomain.js +1 -1
  105. package/workflow.d.ts +87 -0
  106. package/workflow.js +104 -0
  107. package/workflow.js.map +1 -0
  108. package/zeroTrustAccessCustomPage.d.ts +12 -0
  109. package/zeroTrustAccessCustomPage.js +12 -0
  110. package/zeroTrustAccessCustomPage.js.map +1 -1
  111. package/zeroTrustAccessServiceToken.d.ts +26 -0
  112. package/zeroTrustAccessServiceToken.js +6 -0
  113. package/zeroTrustAccessServiceToken.js.map +1 -1
  114. package/zeroTrustDexTest.d.ts +2 -27
  115. package/zeroTrustDexTest.js +1 -25
  116. package/zeroTrustDexTest.js.map +1 -1
  117. package/zeroTrustDnsLocation.d.ts +28 -28
  118. package/zeroTrustGatewayCertificate.d.ts +26 -14
  119. package/zeroTrustGatewayCertificate.js +2 -0
  120. package/zeroTrustGatewayCertificate.js.map +1 -1
  121. package/zeroTrustGatewayLogging.d.ts +6 -6
  122. package/zeroTrustGatewayPolicy.d.ts +39 -51
  123. package/zeroTrustGatewayPolicy.js +2 -2
  124. package/zeroTrustGatewayPolicy.js.map +1 -1
  125. package/zeroTrustGatewayProxyEndpoint.d.ts +8 -8
  126. package/zeroTrustGatewaySettings.d.ts +3 -3
  127. package/zeroTrustList.d.ts +14 -14
  128. package/zeroTrustNetworkHostnameRoute.d.ts +129 -0
  129. package/zeroTrustNetworkHostnameRoute.js +85 -0
  130. package/zeroTrustNetworkHostnameRoute.js.map +1 -0
package/workerScript.d.ts CHANGED
@@ -41,7 +41,7 @@ export declare class WorkerScript extends pulumi.CustomResource {
41
41
  */
42
42
  readonly bindings: pulumi.Output<outputs.WorkerScriptBinding[]>;
43
43
  /**
44
- * Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch` event). Indicates a `service worker syntax` Worker.
44
+ * Name of the uploaded file that contains the script (e.g. the file adding a listener to the `fetch` event). Indicates a `service worker syntax` Worker.
45
45
  */
46
46
  readonly bodyPart: pulumi.Output<string | undefined>;
47
47
  /**
@@ -53,11 +53,11 @@ export declare class WorkerScript extends pulumi.CustomResource {
53
53
  */
54
54
  readonly compatibilityFlags: pulumi.Output<string[]>;
55
55
  /**
56
- * Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile` must be specified.
56
+ * Module or Service Worker contents of the Worker. Conflicts with `contentFile`.
57
57
  */
58
58
  readonly content: pulumi.Output<string | undefined>;
59
59
  /**
60
- * Path to a file containing the Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile` must be specified. Must be paired with `contentSha256`.
60
+ * Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with `content`. Must be paired with `contentSha256`.
61
61
  */
62
62
  readonly contentFile: pulumi.Output<string | undefined>;
63
63
  /**
@@ -109,7 +109,7 @@ export declare class WorkerScript extends pulumi.CustomResource {
109
109
  */
110
110
  readonly logpush: pulumi.Output<boolean>;
111
111
  /**
112
- * Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
112
+ * Name of the uploaded file that contains the main module (e.g. the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
113
113
  */
114
114
  readonly mainModule: pulumi.Output<string | undefined>;
115
115
  /**
@@ -173,7 +173,7 @@ export interface WorkerScriptState {
173
173
  */
174
174
  bindings?: pulumi.Input<pulumi.Input<inputs.WorkerScriptBinding>[]>;
175
175
  /**
176
- * Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch` event). Indicates a `service worker syntax` Worker.
176
+ * Name of the uploaded file that contains the script (e.g. the file adding a listener to the `fetch` event). Indicates a `service worker syntax` Worker.
177
177
  */
178
178
  bodyPart?: pulumi.Input<string>;
179
179
  /**
@@ -185,11 +185,11 @@ export interface WorkerScriptState {
185
185
  */
186
186
  compatibilityFlags?: pulumi.Input<pulumi.Input<string>[]>;
187
187
  /**
188
- * Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile` must be specified.
188
+ * Module or Service Worker contents of the Worker. Conflicts with `contentFile`.
189
189
  */
190
190
  content?: pulumi.Input<string>;
191
191
  /**
192
- * Path to a file containing the Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile` must be specified. Must be paired with `contentSha256`.
192
+ * Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with `content`. Must be paired with `contentSha256`.
193
193
  */
194
194
  contentFile?: pulumi.Input<string>;
195
195
  /**
@@ -241,7 +241,7 @@ export interface WorkerScriptState {
241
241
  */
242
242
  logpush?: pulumi.Input<boolean>;
243
243
  /**
244
- * Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
244
+ * Name of the uploaded file that contains the main module (e.g. the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
245
245
  */
246
246
  mainModule?: pulumi.Input<string>;
247
247
  /**
@@ -296,7 +296,7 @@ export interface WorkerScriptArgs {
296
296
  */
297
297
  bindings?: pulumi.Input<pulumi.Input<inputs.WorkerScriptBinding>[]>;
298
298
  /**
299
- * Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch` event). Indicates a `service worker syntax` Worker.
299
+ * Name of the uploaded file that contains the script (e.g. the file adding a listener to the `fetch` event). Indicates a `service worker syntax` Worker.
300
300
  */
301
301
  bodyPart?: pulumi.Input<string>;
302
302
  /**
@@ -308,11 +308,11 @@ export interface WorkerScriptArgs {
308
308
  */
309
309
  compatibilityFlags?: pulumi.Input<pulumi.Input<string>[]>;
310
310
  /**
311
- * Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile` must be specified.
311
+ * Module or Service Worker contents of the Worker. Conflicts with `contentFile`.
312
312
  */
313
313
  content?: pulumi.Input<string>;
314
314
  /**
315
- * Path to a file containing the Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile` must be specified. Must be paired with `contentSha256`.
315
+ * Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with `content`. Must be paired with `contentSha256`.
316
316
  */
317
317
  contentFile?: pulumi.Input<string>;
318
318
  /**
@@ -340,7 +340,7 @@ export interface WorkerScriptArgs {
340
340
  */
341
341
  logpush?: pulumi.Input<boolean>;
342
342
  /**
343
- * Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
343
+ * Name of the uploaded file that contains the main module (e.g. the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
344
344
  */
345
345
  mainModule?: pulumi.Input<string>;
346
346
  /**
@@ -68,6 +68,11 @@ export declare class WorkerVersion extends pulumi.CustomResource {
68
68
  readonly migrations: pulumi.Output<outputs.WorkerVersionMigrations | undefined>;
69
69
  /**
70
70
  * Code, sourcemaps, and other content used at runtime.
71
+ *
72
+ * This includes [`_headers`](https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers) and
73
+ * [`_redirects`](https://developers.cloudflare.com/workers/static-assets/redirects/) files used to configure
74
+ * [Static Assets](https://developers.cloudflare.com/workers/static-assets/). `_headers` and `_redirects` files should be
75
+ * included as modules named `_headers` and `_redirects` with content type `text/plain`.
71
76
  */
72
77
  readonly modules: pulumi.Output<outputs.WorkerVersionModule[] | undefined>;
73
78
  /**
@@ -90,7 +95,7 @@ export declare class WorkerVersion extends pulumi.CustomResource {
90
95
  */
91
96
  readonly usageModel: pulumi.Output<string>;
92
97
  /**
93
- * Identifier.
98
+ * Identifier for the Worker, which can be ID or name.
94
99
  */
95
100
  readonly workerId: pulumi.Output<string>;
96
101
  /**
@@ -148,6 +153,11 @@ export interface WorkerVersionState {
148
153
  migrations?: pulumi.Input<inputs.WorkerVersionMigrations>;
149
154
  /**
150
155
  * Code, sourcemaps, and other content used at runtime.
156
+ *
157
+ * This includes [`_headers`](https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers) and
158
+ * [`_redirects`](https://developers.cloudflare.com/workers/static-assets/redirects/) files used to configure
159
+ * [Static Assets](https://developers.cloudflare.com/workers/static-assets/). `_headers` and `_redirects` files should be
160
+ * included as modules named `_headers` and `_redirects` with content type `text/plain`.
151
161
  */
152
162
  modules?: pulumi.Input<pulumi.Input<inputs.WorkerVersionModule>[]>;
153
163
  /**
@@ -170,7 +180,7 @@ export interface WorkerVersionState {
170
180
  */
171
181
  usageModel?: pulumi.Input<string>;
172
182
  /**
173
- * Identifier.
183
+ * Identifier for the Worker, which can be ID or name.
174
184
  */
175
185
  workerId?: pulumi.Input<string>;
176
186
  }
@@ -216,6 +226,11 @@ export interface WorkerVersionArgs {
216
226
  migrations?: pulumi.Input<inputs.WorkerVersionMigrations>;
217
227
  /**
218
228
  * Code, sourcemaps, and other content used at runtime.
229
+ *
230
+ * This includes [`_headers`](https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers) and
231
+ * [`_redirects`](https://developers.cloudflare.com/workers/static-assets/redirects/) files used to configure
232
+ * [Static Assets](https://developers.cloudflare.com/workers/static-assets/). `_headers` and `_redirects` files should be
233
+ * included as modules named `_headers` and `_redirects` with content type `text/plain`.
219
234
  */
220
235
  modules?: pulumi.Input<pulumi.Input<inputs.WorkerVersionModule>[]>;
221
236
  /**
@@ -230,7 +245,7 @@ export interface WorkerVersionArgs {
230
245
  */
231
246
  usageModel?: pulumi.Input<string>;
232
247
  /**
233
- * Identifier.
248
+ * Identifier for the Worker, which can be ID or name.
234
249
  */
235
250
  workerId: pulumi.Input<string>;
236
251
  }
@@ -1 +1 @@
1
- {"version":3,"file":"workerVersion.js","sourceRoot":"","sources":["../workerVersion.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,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,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IA8ED,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAA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,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AA7JL,sCA8JC;AAhJG,gBAAgB;AACO,0BAAY,GAAG,8CAA8C,CAAC"}
@@ -39,7 +39,7 @@ export declare class WorkersScript extends pulumi.CustomResource {
39
39
  */
40
40
  readonly bindings: pulumi.Output<outputs.WorkersScriptBinding[]>;
41
41
  /**
42
- * Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch` event). Indicates a `service worker syntax` Worker.
42
+ * Name of the uploaded file that contains the script (e.g. the file adding a listener to the `fetch` event). Indicates a `service worker syntax` Worker.
43
43
  */
44
44
  readonly bodyPart: pulumi.Output<string | undefined>;
45
45
  /**
@@ -51,11 +51,11 @@ export declare class WorkersScript extends pulumi.CustomResource {
51
51
  */
52
52
  readonly compatibilityFlags: pulumi.Output<string[]>;
53
53
  /**
54
- * Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile` must be specified.
54
+ * Module or Service Worker contents of the Worker. Conflicts with `contentFile`.
55
55
  */
56
56
  readonly content: pulumi.Output<string | undefined>;
57
57
  /**
58
- * Path to a file containing the Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile` must be specified. Must be paired with `contentSha256`.
58
+ * Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with `content`. Must be paired with `contentSha256`.
59
59
  */
60
60
  readonly contentFile: pulumi.Output<string | undefined>;
61
61
  /**
@@ -107,7 +107,7 @@ export declare class WorkersScript extends pulumi.CustomResource {
107
107
  */
108
108
  readonly logpush: pulumi.Output<boolean>;
109
109
  /**
110
- * Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
110
+ * Name of the uploaded file that contains the main module (e.g. the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
111
111
  */
112
112
  readonly mainModule: pulumi.Output<string | undefined>;
113
113
  /**
@@ -170,7 +170,7 @@ export interface WorkersScriptState {
170
170
  */
171
171
  bindings?: pulumi.Input<pulumi.Input<inputs.WorkersScriptBinding>[]>;
172
172
  /**
173
- * Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch` event). Indicates a `service worker syntax` Worker.
173
+ * Name of the uploaded file that contains the script (e.g. the file adding a listener to the `fetch` event). Indicates a `service worker syntax` Worker.
174
174
  */
175
175
  bodyPart?: pulumi.Input<string>;
176
176
  /**
@@ -182,11 +182,11 @@ export interface WorkersScriptState {
182
182
  */
183
183
  compatibilityFlags?: pulumi.Input<pulumi.Input<string>[]>;
184
184
  /**
185
- * Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile` must be specified.
185
+ * Module or Service Worker contents of the Worker. Conflicts with `contentFile`.
186
186
  */
187
187
  content?: pulumi.Input<string>;
188
188
  /**
189
- * Path to a file containing the Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile` must be specified. Must be paired with `contentSha256`.
189
+ * Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with `content`. Must be paired with `contentSha256`.
190
190
  */
191
191
  contentFile?: pulumi.Input<string>;
192
192
  /**
@@ -238,7 +238,7 @@ export interface WorkersScriptState {
238
238
  */
239
239
  logpush?: pulumi.Input<boolean>;
240
240
  /**
241
- * Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
241
+ * Name of the uploaded file that contains the main module (e.g. the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
242
242
  */
243
243
  mainModule?: pulumi.Input<string>;
244
244
  /**
@@ -293,7 +293,7 @@ export interface WorkersScriptArgs {
293
293
  */
294
294
  bindings?: pulumi.Input<pulumi.Input<inputs.WorkersScriptBinding>[]>;
295
295
  /**
296
- * Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch` event). Indicates a `service worker syntax` Worker.
296
+ * Name of the uploaded file that contains the script (e.g. the file adding a listener to the `fetch` event). Indicates a `service worker syntax` Worker.
297
297
  */
298
298
  bodyPart?: pulumi.Input<string>;
299
299
  /**
@@ -305,11 +305,11 @@ export interface WorkersScriptArgs {
305
305
  */
306
306
  compatibilityFlags?: pulumi.Input<pulumi.Input<string>[]>;
307
307
  /**
308
- * Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile` must be specified.
308
+ * Module or Service Worker contents of the Worker. Conflicts with `contentFile`.
309
309
  */
310
310
  content?: pulumi.Input<string>;
311
311
  /**
312
- * Path to a file containing the Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile` must be specified. Must be paired with `contentSha256`.
312
+ * Path to a file containing the Module or Service Worker contents of the Worker. Conflicts with `content`. Must be paired with `contentSha256`.
313
313
  */
314
314
  contentFile?: pulumi.Input<string>;
315
315
  /**
@@ -337,7 +337,7 @@ export interface WorkersScriptArgs {
337
337
  */
338
338
  logpush?: pulumi.Input<boolean>;
339
339
  /**
340
- * Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
340
+ * Name of the uploaded file that contains the main module (e.g. the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
341
341
  */
342
342
  mainModule?: pulumi.Input<string>;
343
343
  /**
@@ -10,7 +10,7 @@ import * as pulumi from "@pulumi/pulumi";
10
10
  * accountId: "023e105f4ecef8ad9ca31a8372d0c353",
11
11
  * scriptName: "this-is_my_script-01",
12
12
  * enabled: true,
13
- * previewsEnabled: true,
13
+ * previewsEnabled: false,
14
14
  * });
15
15
  * ```
16
16
  */
@@ -41,7 +41,7 @@ export declare class WorkersScriptSubdomain extends pulumi.CustomResource {
41
41
  /**
42
42
  * Whether the Worker's Preview URLs should be available on the workers.dev subdomain.
43
43
  */
44
- readonly previewsEnabled: pulumi.Output<boolean | undefined>;
44
+ readonly previewsEnabled: pulumi.Output<boolean>;
45
45
  /**
46
46
  * Name of the script, used in URLs and route configuration.
47
47
  */
@@ -16,7 +16,7 @@ const utilities = require("./utilities");
16
16
  * accountId: "023e105f4ecef8ad9ca31a8372d0c353",
17
17
  * scriptName: "this-is_my_script-01",
18
18
  * enabled: true,
19
- * previewsEnabled: true,
19
+ * previewsEnabled: false,
20
20
  * });
21
21
  * ```
22
22
  */
package/workflow.d.ts ADDED
@@ -0,0 +1,87 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as cloudflare from "@pulumi/cloudflare";
10
+ *
11
+ * const exampleWorkflow = new cloudflare.Workflow("example_workflow", {
12
+ * accountId: "account_id",
13
+ * workflowName: "x",
14
+ * className: "x",
15
+ * scriptName: "x",
16
+ * });
17
+ * ```
18
+ *
19
+ * ## Import
20
+ *
21
+ * ```sh
22
+ * $ pulumi import cloudflare:index/workflow:Workflow example '<account_id>/<workflow_name>'
23
+ * ```
24
+ */
25
+ export declare class Workflow extends pulumi.CustomResource {
26
+ /**
27
+ * Get an existing Workflow resource's state with the given name, ID, and optional extra
28
+ * properties used to qualify the lookup.
29
+ *
30
+ * @param name The _unique_ name of the resulting resource.
31
+ * @param id The _unique_ provider ID of the resource to lookup.
32
+ * @param state Any extra arguments used during the lookup.
33
+ * @param opts Optional settings to control the behavior of the CustomResource.
34
+ */
35
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WorkflowState, opts?: pulumi.CustomResourceOptions): Workflow;
36
+ /**
37
+ * Returns true if the given object is an instance of Workflow. This is designed to work even
38
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
39
+ */
40
+ static isInstance(obj: any): obj is Workflow;
41
+ readonly accountId: pulumi.Output<string>;
42
+ readonly className: pulumi.Output<string>;
43
+ readonly createdOn: pulumi.Output<string>;
44
+ readonly instances: pulumi.Output<outputs.WorkflowInstances>;
45
+ readonly isDeleted: pulumi.Output<number>;
46
+ readonly modifiedOn: pulumi.Output<string>;
47
+ readonly name: pulumi.Output<string>;
48
+ readonly scriptName: pulumi.Output<string>;
49
+ readonly terminatorRunning: pulumi.Output<number>;
50
+ readonly triggeredOn: pulumi.Output<string>;
51
+ readonly versionId: pulumi.Output<string>;
52
+ readonly workflowName: pulumi.Output<string>;
53
+ /**
54
+ * Create a Workflow resource with the given unique name, arguments, and options.
55
+ *
56
+ * @param name The _unique_ name of the resource.
57
+ * @param args The arguments to use to populate this resource's properties.
58
+ * @param opts A bag of options that control this resource's behavior.
59
+ */
60
+ constructor(name: string, args: WorkflowArgs, opts?: pulumi.CustomResourceOptions);
61
+ }
62
+ /**
63
+ * Input properties used for looking up and filtering Workflow resources.
64
+ */
65
+ export interface WorkflowState {
66
+ accountId?: pulumi.Input<string>;
67
+ className?: pulumi.Input<string>;
68
+ createdOn?: pulumi.Input<string>;
69
+ instances?: pulumi.Input<inputs.WorkflowInstances>;
70
+ isDeleted?: pulumi.Input<number>;
71
+ modifiedOn?: pulumi.Input<string>;
72
+ name?: pulumi.Input<string>;
73
+ scriptName?: pulumi.Input<string>;
74
+ terminatorRunning?: pulumi.Input<number>;
75
+ triggeredOn?: pulumi.Input<string>;
76
+ versionId?: pulumi.Input<string>;
77
+ workflowName?: pulumi.Input<string>;
78
+ }
79
+ /**
80
+ * The set of arguments for constructing a Workflow resource.
81
+ */
82
+ export interface WorkflowArgs {
83
+ accountId: pulumi.Input<string>;
84
+ className: pulumi.Input<string>;
85
+ scriptName: pulumi.Input<string>;
86
+ workflowName: pulumi.Input<string>;
87
+ }
package/workflow.js ADDED
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Workflow = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as cloudflare from "@pulumi/cloudflare";
14
+ *
15
+ * const exampleWorkflow = new cloudflare.Workflow("example_workflow", {
16
+ * accountId: "account_id",
17
+ * workflowName: "x",
18
+ * className: "x",
19
+ * scriptName: "x",
20
+ * });
21
+ * ```
22
+ *
23
+ * ## Import
24
+ *
25
+ * ```sh
26
+ * $ pulumi import cloudflare:index/workflow:Workflow example '<account_id>/<workflow_name>'
27
+ * ```
28
+ */
29
+ class Workflow extends pulumi.CustomResource {
30
+ /**
31
+ * Get an existing Workflow resource's state with the given name, ID, and optional extra
32
+ * properties used to qualify the lookup.
33
+ *
34
+ * @param name The _unique_ name of the resulting resource.
35
+ * @param id The _unique_ provider ID of the resource to lookup.
36
+ * @param state Any extra arguments used during the lookup.
37
+ * @param opts Optional settings to control the behavior of the CustomResource.
38
+ */
39
+ static get(name, id, state, opts) {
40
+ return new Workflow(name, state, { ...opts, id: id });
41
+ }
42
+ /**
43
+ * Returns true if the given object is an instance of Workflow. This is designed to work even
44
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
45
+ */
46
+ static isInstance(obj) {
47
+ if (obj === undefined || obj === null) {
48
+ return false;
49
+ }
50
+ return obj['__pulumiType'] === Workflow.__pulumiType;
51
+ }
52
+ constructor(name, argsOrState, opts) {
53
+ let resourceInputs = {};
54
+ opts = opts || {};
55
+ if (opts.id) {
56
+ const state = argsOrState;
57
+ resourceInputs["accountId"] = state?.accountId;
58
+ resourceInputs["className"] = state?.className;
59
+ resourceInputs["createdOn"] = state?.createdOn;
60
+ resourceInputs["instances"] = state?.instances;
61
+ resourceInputs["isDeleted"] = state?.isDeleted;
62
+ resourceInputs["modifiedOn"] = state?.modifiedOn;
63
+ resourceInputs["name"] = state?.name;
64
+ resourceInputs["scriptName"] = state?.scriptName;
65
+ resourceInputs["terminatorRunning"] = state?.terminatorRunning;
66
+ resourceInputs["triggeredOn"] = state?.triggeredOn;
67
+ resourceInputs["versionId"] = state?.versionId;
68
+ resourceInputs["workflowName"] = state?.workflowName;
69
+ }
70
+ else {
71
+ const args = argsOrState;
72
+ if (args?.accountId === undefined && !opts.urn) {
73
+ throw new Error("Missing required property 'accountId'");
74
+ }
75
+ if (args?.className === undefined && !opts.urn) {
76
+ throw new Error("Missing required property 'className'");
77
+ }
78
+ if (args?.scriptName === undefined && !opts.urn) {
79
+ throw new Error("Missing required property 'scriptName'");
80
+ }
81
+ if (args?.workflowName === undefined && !opts.urn) {
82
+ throw new Error("Missing required property 'workflowName'");
83
+ }
84
+ resourceInputs["accountId"] = args?.accountId;
85
+ resourceInputs["className"] = args?.className;
86
+ resourceInputs["scriptName"] = args?.scriptName;
87
+ resourceInputs["workflowName"] = args?.workflowName;
88
+ resourceInputs["createdOn"] = undefined /*out*/;
89
+ resourceInputs["instances"] = undefined /*out*/;
90
+ resourceInputs["isDeleted"] = undefined /*out*/;
91
+ resourceInputs["modifiedOn"] = undefined /*out*/;
92
+ resourceInputs["name"] = undefined /*out*/;
93
+ resourceInputs["terminatorRunning"] = undefined /*out*/;
94
+ resourceInputs["triggeredOn"] = undefined /*out*/;
95
+ resourceInputs["versionId"] = undefined /*out*/;
96
+ }
97
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
98
+ super(Workflow.__pulumiType, name, resourceInputs, opts);
99
+ }
100
+ }
101
+ exports.Workflow = Workflow;
102
+ /** @internal */
103
+ Workflow.__pulumiType = 'cloudflare:index/workflow:Workflow';
104
+ //# sourceMappingURL=workflow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../workflow.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAuBD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/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K,CAAC,0CAA0C,CAAC,CAAC;aAC/D;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACxD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;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;;AA/FL,4BAgGC;AAlFG,gBAAgB;AACO,qBAAY,GAAG,oCAAoC,CAAC"}
@@ -2,6 +2,18 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
3
  * ## Example Usage
4
4
  *
5
+ * ```typescript
6
+ * import * as pulumi from "@pulumi/pulumi";
7
+ * import * as cloudflare from "@pulumi/cloudflare";
8
+ *
9
+ * const exampleZeroTrustAccessCustomPage = new cloudflare.ZeroTrustAccessCustomPage("example_zero_trust_access_custom_page", {
10
+ * accountId: "023e105f4ecef8ad9ca31a8372d0c353",
11
+ * customHtml: "<html><body><h1>Access Denied</h1></body></html>",
12
+ * name: "name",
13
+ * type: "identity_denied",
14
+ * });
15
+ * ```
16
+ *
5
17
  * ## Import
6
18
  *
7
19
  * ```sh
@@ -8,6 +8,18 @@ const utilities = require("./utilities");
8
8
  /**
9
9
  * ## Example Usage
10
10
  *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as cloudflare from "@pulumi/cloudflare";
14
+ *
15
+ * const exampleZeroTrustAccessCustomPage = new cloudflare.ZeroTrustAccessCustomPage("example_zero_trust_access_custom_page", {
16
+ * accountId: "023e105f4ecef8ad9ca31a8372d0c353",
17
+ * customHtml: "<html><body><h1>Access Denied</h1></body></html>",
18
+ * name: "name",
19
+ * type: "identity_denied",
20
+ * });
21
+ * ```
22
+ *
11
23
  * ## Import
12
24
  *
13
25
  * ```sh
@@ -1 +1 @@
1
- {"version":3,"file":"zeroTrustAccessCustomPage.js","sourceRoot":"","sources":["../zeroTrustAccessCustomPage.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;IAChE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsC,EAAE,IAAmC;QACpI,OAAO,IAAI,yBAAyB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChF,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,CAA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G,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,SAAS,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,oDAAoD,EAAE,CAAC,EAAE,CAAC;QAChG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,yBAAyB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;;AA5FL,8DA6FC;AA/EG,gBAAgB;AACO,sCAAY,GAAG,sEAAsE,CAAC"}
@@ -9,7 +9,9 @@ import * as pulumi from "@pulumi/pulumi";
9
9
  * const exampleZeroTrustAccessServiceToken = new cloudflare.ZeroTrustAccessServiceToken("example_zero_trust_access_service_token", {
10
10
  * name: "CI/CD token",
11
11
  * zoneId: "zone_id",
12
+ * clientSecretVersion: 0,
12
13
  * duration: "60m",
14
+ * previousClientSecretExpiresAt: "2014-01-01T05:20:00.12345Z",
13
15
  * });
14
16
  * ```
15
17
  *
@@ -47,6 +49,10 @@ export declare class ZeroTrustAccessServiceToken extends pulumi.CustomResource {
47
49
  * The Client Secret for the service token. Access will check for this value in the `CF-Access-Client-Secret` request header.
48
50
  */
49
51
  readonly clientSecret: pulumi.Output<string>;
52
+ /**
53
+ * A version number identifying the current `clientSecret` associated with the service token. Incrementing it triggers a rotation; the previous secret will still be accepted until the time indicated by `previousClientSecretExpiresAt`.
54
+ */
55
+ readonly clientSecretVersion: pulumi.Output<number>;
50
56
  /**
51
57
  * The duration for how long the service token will be valid. Must be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h. The default is 1 year in hours (8760h).
52
58
  */
@@ -56,6 +62,10 @@ export declare class ZeroTrustAccessServiceToken extends pulumi.CustomResource {
56
62
  * The name of the service token.
57
63
  */
58
64
  readonly name: pulumi.Output<string>;
65
+ /**
66
+ * The expiration of the previous `clientSecret`. This can be modified at any point after a rotation. For example, you may extend it further into the future if you need more time to update services with the new secret; or move it into the past to immediately invalidate the previous token in case of compromise.
67
+ */
68
+ readonly previousClientSecretExpiresAt: pulumi.Output<string | undefined>;
59
69
  /**
60
70
  * The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
61
71
  */
@@ -85,6 +95,10 @@ export interface ZeroTrustAccessServiceTokenState {
85
95
  * The Client Secret for the service token. Access will check for this value in the `CF-Access-Client-Secret` request header.
86
96
  */
87
97
  clientSecret?: pulumi.Input<string>;
98
+ /**
99
+ * A version number identifying the current `clientSecret` associated with the service token. Incrementing it triggers a rotation; the previous secret will still be accepted until the time indicated by `previousClientSecretExpiresAt`.
100
+ */
101
+ clientSecretVersion?: pulumi.Input<number>;
88
102
  /**
89
103
  * The duration for how long the service token will be valid. Must be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h. The default is 1 year in hours (8760h).
90
104
  */
@@ -94,6 +108,10 @@ export interface ZeroTrustAccessServiceTokenState {
94
108
  * The name of the service token.
95
109
  */
96
110
  name?: pulumi.Input<string>;
111
+ /**
112
+ * The expiration of the previous `clientSecret`. This can be modified at any point after a rotation. For example, you may extend it further into the future if you need more time to update services with the new secret; or move it into the past to immediately invalidate the previous token in case of compromise.
113
+ */
114
+ previousClientSecretExpiresAt?: pulumi.Input<string>;
97
115
  /**
98
116
  * The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
99
117
  */
@@ -107,6 +125,10 @@ export interface ZeroTrustAccessServiceTokenArgs {
107
125
  * The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
108
126
  */
109
127
  accountId?: pulumi.Input<string>;
128
+ /**
129
+ * A version number identifying the current `clientSecret` associated with the service token. Incrementing it triggers a rotation; the previous secret will still be accepted until the time indicated by `previousClientSecretExpiresAt`.
130
+ */
131
+ clientSecretVersion?: pulumi.Input<number>;
110
132
  /**
111
133
  * The duration for how long the service token will be valid. Must be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h. The default is 1 year in hours (8760h).
112
134
  */
@@ -115,6 +137,10 @@ export interface ZeroTrustAccessServiceTokenArgs {
115
137
  * The name of the service token.
116
138
  */
117
139
  name: pulumi.Input<string>;
140
+ /**
141
+ * The expiration of the previous `clientSecret`. This can be modified at any point after a rotation. For example, you may extend it further into the future if you need more time to update services with the new secret; or move it into the past to immediately invalidate the previous token in case of compromise.
142
+ */
143
+ previousClientSecretExpiresAt?: pulumi.Input<string>;
118
144
  /**
119
145
  * The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
120
146
  */