@pulumi/cloudflare 6.7.0-alpha.1756491364 → 6.7.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.
- package/accessMutualTlsCertificate.d.ts +1 -1
- package/accessOrganization.d.ts +2 -2
- package/argoSmartRouting.d.ts +19 -3
- package/argoSmartRouting.js +4 -0
- package/argoSmartRouting.js.map +1 -1
- package/botManagement.d.ts +13 -0
- package/botManagement.js +3 -0
- package/botManagement.js.map +1 -1
- package/certificatePack.d.ts +18 -0
- package/certificatePack.js +4 -0
- package/certificatePack.js.map +1 -1
- package/customPages.d.ts +3 -3
- package/filter.d.ts +28 -6
- package/filter.js +13 -6
- package/filter.js.map +1 -1
- package/getArgoSmartRouting.d.ts +14 -1
- package/getArgoSmartRouting.js.map +1 -1
- package/getBotManagement.d.ts +4 -0
- package/getBotManagement.js.map +1 -1
- package/getCustomPages.d.ts +3 -3
- package/getList.d.ts +3 -3
- package/getListItem.d.ts +30 -1
- package/getListItem.js.map +1 -1
- package/getLoadBalancer.d.ts +6 -5
- package/getLoadBalancer.js.map +1 -1
- package/getLoadBalancerMonitor.d.ts +3 -3
- package/getLoadBalancerMonitors.d.ts +3 -3
- package/getLoadBalancerPool.d.ts +3 -3
- package/getLoadBalancerPools.d.ts +3 -3
- package/getLogpushDatasetField.d.ts +3 -3
- package/getLogpushDatasetJob.d.ts +9 -9
- package/getLogpushJob.d.ts +6 -6
- package/getR2CustomDomain.d.ts +4 -0
- package/getR2CustomDomain.js.map +1 -1
- package/getSnippet.d.ts +80 -0
- package/getSnippet.js +50 -0
- package/getSnippet.js.map +1 -0
- package/getSnippetList.d.ts +51 -0
- package/getSnippetList.js +24 -0
- package/getSnippetList.js.map +1 -0
- package/getSnippets.d.ts +0 -2
- package/getSnippets.js +0 -2
- package/getSnippets.js.map +1 -1
- package/getSnippetsList.d.ts +0 -24
- package/getSnippetsList.js +0 -24
- package/getSnippetsList.js.map +1 -1
- package/getStreams.d.ts +17 -3
- package/getStreams.js +4 -0
- package/getStreams.js.map +1 -1
- package/getUrlNormalizationSettings.d.ts +1 -1
- package/getWorkersForPlatformsDispatchNamespace.d.ts +4 -0
- package/getWorkersForPlatformsDispatchNamespace.js.map +1 -1
- package/getWorkersScripts.d.ts +14 -0
- package/getWorkersScripts.js +4 -0
- package/getWorkersScripts.js.map +1 -1
- package/getZeroTrustGatewayCertificate.d.ts +7 -7
- package/getZeroTrustGatewayPolicy.d.ts +0 -3
- package/getZeroTrustGatewayPolicy.js.map +1 -1
- package/getZeroTrustTunnelCloudflared.d.ts +7 -0
- package/getZeroTrustTunnelCloudflared.js.map +1 -1
- package/getZeroTrustTunnelCloudflaredRoutes.d.ts +1 -3
- package/getZeroTrustTunnelCloudflaredRoutes.js +0 -2
- package/getZeroTrustTunnelCloudflaredRoutes.js.map +1 -1
- package/getZeroTrustTunnelWarpConnector.d.ts +7 -0
- package/getZeroTrustTunnelWarpConnector.js.map +1 -1
- package/index.d.ts +9 -0
- package/index.js +21 -10
- package/index.js.map +1 -1
- package/loadBalancer.d.ts +12 -9
- package/loadBalancer.js.map +1 -1
- package/loadBalancerMonitor.d.ts +10 -10
- package/loadBalancerPool.d.ts +3 -3
- package/logpushJob.d.ts +16 -16
- package/logpushOwnershipChallenge.d.ts +3 -3
- package/magicWanGreTunnel.d.ts +38 -0
- package/magicWanGreTunnel.js +28 -0
- package/magicWanGreTunnel.js.map +1 -1
- package/magicWanIpsecTunnel.d.ts +38 -0
- package/magicWanIpsecTunnel.js +28 -0
- package/magicWanIpsecTunnel.js.map +1 -1
- package/package.json +2 -2
- package/r2customDomain.d.ts +13 -0
- package/r2customDomain.js +3 -0
- package/r2customDomain.js.map +1 -1
- package/ruleset.d.ts +23 -7
- package/ruleset.js +4 -0
- package/ruleset.js.map +1 -1
- package/snippet.d.ts +105 -0
- package/snippet.js +74 -0
- package/snippet.js.map +1 -0
- package/snippetRules.d.ts +0 -40
- package/snippetRules.js +0 -10
- package/snippetRules.js.map +1 -1
- package/snippets.d.ts +0 -3
- package/snippets.js +0 -3
- package/snippets.js.map +1 -1
- package/spectrumApplication.d.ts +5 -5
- package/spectrumApplication.js +3 -3
- package/teamsList.d.ts +1 -1
- package/teamsRule.d.ts +1 -28
- package/teamsRule.js.map +1 -1
- package/tunnel.d.ts +4 -0
- package/tunnel.js.map +1 -1
- package/tunnelRoute.d.ts +1 -1
- package/tunnelVirtualNetwork.d.ts +1 -1
- package/types/input.d.ts +215 -187
- package/types/output.d.ts +372 -266
- package/urlNormalizationSettings.d.ts +3 -3
- package/workerScript.d.ts +46 -28
- package/workerScript.js +1 -1
- package/workerScript.js.map +1 -1
- package/workersForPlatformsDispatchNamespace.d.ts +8 -0
- package/workersForPlatformsDispatchNamespace.js +2 -0
- package/workersForPlatformsDispatchNamespace.js.map +1 -1
- package/workersForPlatformsNamespace.d.ts +8 -0
- package/workersForPlatformsNamespace.js +2 -0
- package/workersForPlatformsNamespace.js.map +1 -1
- package/workersKv.d.ts +9 -0
- package/workersKv.js.map +1 -1
- package/workersScript.d.ts +46 -28
- package/workersScript.js +1 -1
- package/workersScript.js.map +1 -1
- package/zeroTrustAccessMtlsCertificate.d.ts +1 -1
- package/zeroTrustGatewayCertificate.d.ts +14 -14
- package/zeroTrustGatewayPolicy.d.ts +1 -28
- package/zeroTrustGatewayPolicy.js.map +1 -1
- package/zeroTrustList.d.ts +1 -1
- package/zeroTrustOrganization.d.ts +2 -2
- package/zeroTrustTunnelCloudflared.d.ts +4 -0
- package/zeroTrustTunnelCloudflared.js.map +1 -1
- package/zeroTrustTunnelCloudflaredRoute.d.ts +1 -1
- package/zeroTrustTunnelCloudflaredVirtualNetwork.d.ts +1 -1
- package/zeroTrustTunnelWarpConnector.d.ts +14 -0
- package/zeroTrustTunnelWarpConnector.js +2 -0
- package/zeroTrustTunnelWarpConnector.js.map +1 -1
|
@@ -37,7 +37,7 @@ export declare class UrlNormalizationSettings extends pulumi.CustomResource {
|
|
|
37
37
|
static isInstance(obj: any): obj is UrlNormalizationSettings;
|
|
38
38
|
/**
|
|
39
39
|
* The scope of the URL normalization.
|
|
40
|
-
* Available values: "incoming", "both".
|
|
40
|
+
* Available values: "incoming", "both", "none".
|
|
41
41
|
*/
|
|
42
42
|
readonly scope: pulumi.Output<string>;
|
|
43
43
|
/**
|
|
@@ -64,7 +64,7 @@ export declare class UrlNormalizationSettings extends pulumi.CustomResource {
|
|
|
64
64
|
export interface UrlNormalizationSettingsState {
|
|
65
65
|
/**
|
|
66
66
|
* The scope of the URL normalization.
|
|
67
|
-
* Available values: "incoming", "both".
|
|
67
|
+
* Available values: "incoming", "both", "none".
|
|
68
68
|
*/
|
|
69
69
|
scope?: pulumi.Input<string>;
|
|
70
70
|
/**
|
|
@@ -83,7 +83,7 @@ export interface UrlNormalizationSettingsState {
|
|
|
83
83
|
export interface UrlNormalizationSettingsArgs {
|
|
84
84
|
/**
|
|
85
85
|
* The scope of the URL normalization.
|
|
86
|
-
* Available values: "incoming", "both".
|
|
86
|
+
* Available values: "incoming", "both", "none".
|
|
87
87
|
*/
|
|
88
88
|
scope: pulumi.Input<string>;
|
|
89
89
|
/**
|
package/workerScript.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* !> This resource is no longer recommended. Please use the `cloudflareWorker`, `cloudflareWorkerVersion`, and `cloudflare.WorkersDeployment` resources instead. See how to use them in the [developer documentation](https://developers.cloudflare.com/workers/platform/infrastructure-as-code/).
|
|
6
6
|
*
|
|
7
7
|
* ## Import
|
|
8
8
|
*
|
|
@@ -37,19 +37,23 @@ export declare class WorkerScript extends pulumi.CustomResource {
|
|
|
37
37
|
*/
|
|
38
38
|
readonly assets: pulumi.Output<outputs.WorkerScriptAssets | undefined>;
|
|
39
39
|
/**
|
|
40
|
-
* List of bindings attached to a Worker. You can find more about bindings on our docs:
|
|
40
|
+
* List of bindings attached to a Worker. You can find more about bindings on our docs:
|
|
41
|
+
* https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
|
|
41
42
|
*/
|
|
42
43
|
readonly bindings: pulumi.Output<outputs.WorkerScriptBinding[]>;
|
|
43
44
|
/**
|
|
44
|
-
* Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch`
|
|
45
|
+
* Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch`
|
|
46
|
+
* event). Indicates a `service worker syntax` Worker.
|
|
45
47
|
*/
|
|
46
48
|
readonly bodyPart: pulumi.Output<string | undefined>;
|
|
47
49
|
/**
|
|
48
|
-
* Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date
|
|
50
|
+
* Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date
|
|
51
|
+
* will not affect this Worker.
|
|
49
52
|
*/
|
|
50
53
|
readonly compatibilityDate: pulumi.Output<string>;
|
|
51
54
|
/**
|
|
52
|
-
* Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out
|
|
55
|
+
* Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out
|
|
56
|
+
* of specific changes not included in a `compatibilityDate`.
|
|
53
57
|
*/
|
|
54
58
|
readonly compatibilityFlags: pulumi.Output<string[]>;
|
|
55
59
|
/**
|
|
@@ -57,11 +61,13 @@ export declare class WorkerScript extends pulumi.CustomResource {
|
|
|
57
61
|
*/
|
|
58
62
|
readonly content: pulumi.Output<string | undefined>;
|
|
59
63
|
/**
|
|
60
|
-
* Path to a file containing the Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile`
|
|
64
|
+
* Path to a file containing the Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile`
|
|
65
|
+
* must be specified. Must be paired with `contentSha256`.
|
|
61
66
|
*/
|
|
62
67
|
readonly contentFile: pulumi.Output<string | undefined>;
|
|
63
68
|
/**
|
|
64
|
-
* SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
|
|
69
|
+
* SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
|
|
70
|
+
* `contentFile` is specified.
|
|
65
71
|
*/
|
|
66
72
|
readonly contentSha256: pulumi.Output<string | undefined>;
|
|
67
73
|
/**
|
|
@@ -97,7 +103,8 @@ export declare class WorkerScript extends pulumi.CustomResource {
|
|
|
97
103
|
*/
|
|
98
104
|
readonly logpush: pulumi.Output<boolean>;
|
|
99
105
|
/**
|
|
100
|
-
* Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler).
|
|
106
|
+
* Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler).
|
|
107
|
+
* Indicates a `module syntax` Worker.
|
|
101
108
|
*/
|
|
102
109
|
readonly mainModule: pulumi.Output<string | undefined>;
|
|
103
110
|
/**
|
|
@@ -122,8 +129,7 @@ export declare class WorkerScript extends pulumi.CustomResource {
|
|
|
122
129
|
*/
|
|
123
130
|
readonly tailConsumers: pulumi.Output<outputs.WorkerScriptTailConsumer[]>;
|
|
124
131
|
/**
|
|
125
|
-
* Usage model for the Worker invocations.
|
|
126
|
-
* Available values: "standard".
|
|
132
|
+
* Usage model for the Worker invocations. Available values: "standard".
|
|
127
133
|
*/
|
|
128
134
|
readonly usageModel: pulumi.Output<string>;
|
|
129
135
|
/**
|
|
@@ -149,19 +155,23 @@ export interface WorkerScriptState {
|
|
|
149
155
|
*/
|
|
150
156
|
assets?: pulumi.Input<inputs.WorkerScriptAssets>;
|
|
151
157
|
/**
|
|
152
|
-
* List of bindings attached to a Worker. You can find more about bindings on our docs:
|
|
158
|
+
* List of bindings attached to a Worker. You can find more about bindings on our docs:
|
|
159
|
+
* https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
|
|
153
160
|
*/
|
|
154
161
|
bindings?: pulumi.Input<pulumi.Input<inputs.WorkerScriptBinding>[]>;
|
|
155
162
|
/**
|
|
156
|
-
* Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch`
|
|
163
|
+
* Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch`
|
|
164
|
+
* event). Indicates a `service worker syntax` Worker.
|
|
157
165
|
*/
|
|
158
166
|
bodyPart?: pulumi.Input<string>;
|
|
159
167
|
/**
|
|
160
|
-
* Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date
|
|
168
|
+
* Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date
|
|
169
|
+
* will not affect this Worker.
|
|
161
170
|
*/
|
|
162
171
|
compatibilityDate?: pulumi.Input<string>;
|
|
163
172
|
/**
|
|
164
|
-
* Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out
|
|
173
|
+
* Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out
|
|
174
|
+
* of specific changes not included in a `compatibilityDate`.
|
|
165
175
|
*/
|
|
166
176
|
compatibilityFlags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
167
177
|
/**
|
|
@@ -169,11 +179,13 @@ export interface WorkerScriptState {
|
|
|
169
179
|
*/
|
|
170
180
|
content?: pulumi.Input<string>;
|
|
171
181
|
/**
|
|
172
|
-
* Path to a file containing the Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile`
|
|
182
|
+
* Path to a file containing the Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile`
|
|
183
|
+
* must be specified. Must be paired with `contentSha256`.
|
|
173
184
|
*/
|
|
174
185
|
contentFile?: pulumi.Input<string>;
|
|
175
186
|
/**
|
|
176
|
-
* SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
|
|
187
|
+
* SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
|
|
188
|
+
* `contentFile` is specified.
|
|
177
189
|
*/
|
|
178
190
|
contentSha256?: pulumi.Input<string>;
|
|
179
191
|
/**
|
|
@@ -209,7 +221,8 @@ export interface WorkerScriptState {
|
|
|
209
221
|
*/
|
|
210
222
|
logpush?: pulumi.Input<boolean>;
|
|
211
223
|
/**
|
|
212
|
-
* Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler).
|
|
224
|
+
* Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler).
|
|
225
|
+
* Indicates a `module syntax` Worker.
|
|
213
226
|
*/
|
|
214
227
|
mainModule?: pulumi.Input<string>;
|
|
215
228
|
/**
|
|
@@ -234,8 +247,7 @@ export interface WorkerScriptState {
|
|
|
234
247
|
*/
|
|
235
248
|
tailConsumers?: pulumi.Input<pulumi.Input<inputs.WorkerScriptTailConsumer>[]>;
|
|
236
249
|
/**
|
|
237
|
-
* Usage model for the Worker invocations.
|
|
238
|
-
* Available values: "standard".
|
|
250
|
+
* Usage model for the Worker invocations. Available values: "standard".
|
|
239
251
|
*/
|
|
240
252
|
usageModel?: pulumi.Input<string>;
|
|
241
253
|
}
|
|
@@ -252,19 +264,23 @@ export interface WorkerScriptArgs {
|
|
|
252
264
|
*/
|
|
253
265
|
assets?: pulumi.Input<inputs.WorkerScriptAssets>;
|
|
254
266
|
/**
|
|
255
|
-
* List of bindings attached to a Worker. You can find more about bindings on our docs:
|
|
267
|
+
* List of bindings attached to a Worker. You can find more about bindings on our docs:
|
|
268
|
+
* https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
|
|
256
269
|
*/
|
|
257
270
|
bindings?: pulumi.Input<pulumi.Input<inputs.WorkerScriptBinding>[]>;
|
|
258
271
|
/**
|
|
259
|
-
* Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch`
|
|
272
|
+
* Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch`
|
|
273
|
+
* event). Indicates a `service worker syntax` Worker.
|
|
260
274
|
*/
|
|
261
275
|
bodyPart?: pulumi.Input<string>;
|
|
262
276
|
/**
|
|
263
|
-
* Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date
|
|
277
|
+
* Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date
|
|
278
|
+
* will not affect this Worker.
|
|
264
279
|
*/
|
|
265
280
|
compatibilityDate?: pulumi.Input<string>;
|
|
266
281
|
/**
|
|
267
|
-
* Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out
|
|
282
|
+
* Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out
|
|
283
|
+
* of specific changes not included in a `compatibilityDate`.
|
|
268
284
|
*/
|
|
269
285
|
compatibilityFlags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
270
286
|
/**
|
|
@@ -272,11 +288,13 @@ export interface WorkerScriptArgs {
|
|
|
272
288
|
*/
|
|
273
289
|
content?: pulumi.Input<string>;
|
|
274
290
|
/**
|
|
275
|
-
* Path to a file containing the Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile`
|
|
291
|
+
* Path to a file containing the Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile`
|
|
292
|
+
* must be specified. Must be paired with `contentSha256`.
|
|
276
293
|
*/
|
|
277
294
|
contentFile?: pulumi.Input<string>;
|
|
278
295
|
/**
|
|
279
|
-
* SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
|
|
296
|
+
* SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
|
|
297
|
+
* `contentFile` is specified.
|
|
280
298
|
*/
|
|
281
299
|
contentSha256?: pulumi.Input<string>;
|
|
282
300
|
/**
|
|
@@ -296,7 +314,8 @@ export interface WorkerScriptArgs {
|
|
|
296
314
|
*/
|
|
297
315
|
logpush?: pulumi.Input<boolean>;
|
|
298
316
|
/**
|
|
299
|
-
* Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler).
|
|
317
|
+
* Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler).
|
|
318
|
+
* Indicates a `module syntax` Worker.
|
|
300
319
|
*/
|
|
301
320
|
mainModule?: pulumi.Input<string>;
|
|
302
321
|
/**
|
|
@@ -316,8 +335,7 @@ export interface WorkerScriptArgs {
|
|
|
316
335
|
*/
|
|
317
336
|
tailConsumers?: pulumi.Input<pulumi.Input<inputs.WorkerScriptTailConsumer>[]>;
|
|
318
337
|
/**
|
|
319
|
-
* Usage model for the Worker invocations.
|
|
320
|
-
* Available values: "standard".
|
|
338
|
+
* Usage model for the Worker invocations. Available values: "standard".
|
|
321
339
|
*/
|
|
322
340
|
usageModel?: pulumi.Input<string>;
|
|
323
341
|
}
|
package/workerScript.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.WorkerScript = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* !> This resource is no longer recommended. Please use the `cloudflareWorker`, `cloudflareWorkerVersion`, and `cloudflare.WorkersDeployment` resources instead. See how to use them in the [developer documentation](https://developers.cloudflare.com/workers/platform/infrastructure-as-code/).
|
|
10
10
|
*
|
|
11
11
|
* ## Import
|
|
12
12
|
*
|
package/workerScript.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workerScript.js","sourceRoot":"","sources":["../workerScript.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,qJAAqJ,CAAC,CAAA;QACtK,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;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AC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACvD;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,4CAA4C,EAAE,CAAC,EAAE,CAAC;QACxF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AArNL,oCAsNC;AAvMG,gBAAgB;AACO,yBAAY,GAAG,4CAA4C,CAAC"}
|
|
@@ -70,6 +70,10 @@ export declare class WorkersForPlatformsDispatchNamespace extends pulumi.CustomR
|
|
|
70
70
|
* The current number of scripts in this Dispatch Namespace.
|
|
71
71
|
*/
|
|
72
72
|
readonly scriptCount: pulumi.Output<number>;
|
|
73
|
+
/**
|
|
74
|
+
* Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the `request.cf` object on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, and `request.cf` is undefined. By default, Workers in a namespace are "untrusted".
|
|
75
|
+
*/
|
|
76
|
+
readonly trustedWorkers: pulumi.Output<boolean>;
|
|
73
77
|
/**
|
|
74
78
|
* Create a WorkersForPlatformsDispatchNamespace resource with the given unique name, arguments, and options.
|
|
75
79
|
*
|
|
@@ -119,6 +123,10 @@ export interface WorkersForPlatformsDispatchNamespaceState {
|
|
|
119
123
|
* The current number of scripts in this Dispatch Namespace.
|
|
120
124
|
*/
|
|
121
125
|
scriptCount?: pulumi.Input<number>;
|
|
126
|
+
/**
|
|
127
|
+
* Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the `request.cf` object on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, and `request.cf` is undefined. By default, Workers in a namespace are "untrusted".
|
|
128
|
+
*/
|
|
129
|
+
trustedWorkers?: pulumi.Input<boolean>;
|
|
122
130
|
}
|
|
123
131
|
/**
|
|
124
132
|
* The set of arguments for constructing a WorkersForPlatformsDispatchNamespace resource.
|
|
@@ -61,6 +61,7 @@ class WorkersForPlatformsDispatchNamespace extends pulumi.CustomResource {
|
|
|
61
61
|
resourceInputs["namespaceId"] = state ? state.namespaceId : undefined;
|
|
62
62
|
resourceInputs["namespaceName"] = state ? state.namespaceName : undefined;
|
|
63
63
|
resourceInputs["scriptCount"] = state ? state.scriptCount : undefined;
|
|
64
|
+
resourceInputs["trustedWorkers"] = state ? state.trustedWorkers : undefined;
|
|
64
65
|
}
|
|
65
66
|
else {
|
|
66
67
|
const args = argsOrState;
|
|
@@ -76,6 +77,7 @@ class WorkersForPlatformsDispatchNamespace extends pulumi.CustomResource {
|
|
|
76
77
|
resourceInputs["namespaceId"] = undefined /*out*/;
|
|
77
78
|
resourceInputs["namespaceName"] = undefined /*out*/;
|
|
78
79
|
resourceInputs["scriptCount"] = undefined /*out*/;
|
|
80
|
+
resourceInputs["trustedWorkers"] = undefined /*out*/;
|
|
79
81
|
}
|
|
80
82
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
81
83
|
const aliasOpts = { aliases: [{ type: "cloudflare:index/workersForPlatformsNamespace:WorkersForPlatformsNamespace" }] };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workersForPlatformsDispatchNamespace.js","sourceRoot":"","sources":["../workersForPlatformsDispatchNamespace.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,oCAAqC,SAAQ,MAAM,CAAC,cAAc;IAC3E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiD,EAAE,IAAmC;QAC/I,OAAO,IAAI,oCAAoC,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3F,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,oCAAoC,CAAC,YAAY,CAAC;IACrF,CAAC;
|
|
1
|
+
{"version":3,"file":"workersForPlatformsDispatchNamespace.js","sourceRoot":"","sources":["../workersForPlatformsDispatchNamespace.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,oCAAqC,SAAQ,MAAM,CAAC,cAAc;IAC3E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiD,EAAE,IAAmC;QAC/I,OAAO,IAAI,oCAAoC,CAAC,I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,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACxD;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,4EAA4E,EAAE,CAAC,EAAE,CAAC;QACxH,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,oCAAoC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzF,CAAC;;AAhHL,oFAiHC;AAnGG,gBAAgB;AACO,iDAAY,GAAG,4FAA4F,CAAC"}
|
|
@@ -72,6 +72,10 @@ export declare class WorkersForPlatformsNamespace extends pulumi.CustomResource
|
|
|
72
72
|
* The current number of scripts in this Dispatch Namespace.
|
|
73
73
|
*/
|
|
74
74
|
readonly scriptCount: pulumi.Output<number>;
|
|
75
|
+
/**
|
|
76
|
+
* Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the `request.cf` object on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, and `request.cf` is undefined. By default, Workers in a namespace are "untrusted".
|
|
77
|
+
*/
|
|
78
|
+
readonly trustedWorkers: pulumi.Output<boolean>;
|
|
75
79
|
/**
|
|
76
80
|
* Create a WorkersForPlatformsNamespace resource with the given unique name, arguments, and options.
|
|
77
81
|
*
|
|
@@ -122,6 +126,10 @@ export interface WorkersForPlatformsNamespaceState {
|
|
|
122
126
|
* The current number of scripts in this Dispatch Namespace.
|
|
123
127
|
*/
|
|
124
128
|
scriptCount?: pulumi.Input<number>;
|
|
129
|
+
/**
|
|
130
|
+
* Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the `request.cf` object on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, and `request.cf` is undefined. By default, Workers in a namespace are "untrusted".
|
|
131
|
+
*/
|
|
132
|
+
trustedWorkers?: pulumi.Input<boolean>;
|
|
125
133
|
}
|
|
126
134
|
/**
|
|
127
135
|
* The set of arguments for constructing a WorkersForPlatformsNamespace resource.
|
|
@@ -66,6 +66,7 @@ class WorkersForPlatformsNamespace extends pulumi.CustomResource {
|
|
|
66
66
|
resourceInputs["namespaceId"] = state ? state.namespaceId : undefined;
|
|
67
67
|
resourceInputs["namespaceName"] = state ? state.namespaceName : undefined;
|
|
68
68
|
resourceInputs["scriptCount"] = state ? state.scriptCount : undefined;
|
|
69
|
+
resourceInputs["trustedWorkers"] = state ? state.trustedWorkers : undefined;
|
|
69
70
|
}
|
|
70
71
|
else {
|
|
71
72
|
const args = argsOrState;
|
|
@@ -81,6 +82,7 @@ class WorkersForPlatformsNamespace extends pulumi.CustomResource {
|
|
|
81
82
|
resourceInputs["namespaceId"] = undefined /*out*/;
|
|
82
83
|
resourceInputs["namespaceName"] = undefined /*out*/;
|
|
83
84
|
resourceInputs["scriptCount"] = undefined /*out*/;
|
|
85
|
+
resourceInputs["trustedWorkers"] = undefined /*out*/;
|
|
84
86
|
}
|
|
85
87
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
86
88
|
const aliasOpts = { aliases: [{ type: "cloudflare:index/workersForPlatformsNamespace:WorkersForPlatformsNamespace" }] };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workersForPlatformsNamespace.js","sourceRoot":"","sources":["../workersForPlatformsNamespace.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAa,4BAA6B,SAAQ,MAAM,CAAC,cAAc;IACnE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyC,EAAE,IAAmC;QAC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AA4B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;;AApHL,oEAqHC;AAtGG,gBAAgB;AACO,yCAAY,GAAG,4EAA4E,CAAC"}
|
package/workersKv.d.ts
CHANGED
|
@@ -45,6 +45,9 @@ export declare class WorkersKv extends pulumi.CustomResource {
|
|
|
45
45
|
* A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.
|
|
46
46
|
*/
|
|
47
47
|
readonly keyName: pulumi.Output<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Associates arbitrary JSON data with a key/value pair.
|
|
50
|
+
*/
|
|
48
51
|
readonly metadata: pulumi.Output<string | undefined>;
|
|
49
52
|
/**
|
|
50
53
|
* Namespace identifier tag.
|
|
@@ -75,6 +78,9 @@ export interface WorkersKvState {
|
|
|
75
78
|
* A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.
|
|
76
79
|
*/
|
|
77
80
|
keyName?: pulumi.Input<string>;
|
|
81
|
+
/**
|
|
82
|
+
* Associates arbitrary JSON data with a key/value pair.
|
|
83
|
+
*/
|
|
78
84
|
metadata?: pulumi.Input<string>;
|
|
79
85
|
/**
|
|
80
86
|
* Namespace identifier tag.
|
|
@@ -97,6 +103,9 @@ export interface WorkersKvArgs {
|
|
|
97
103
|
* A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.
|
|
98
104
|
*/
|
|
99
105
|
keyName: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Associates arbitrary JSON data with a key/value pair.
|
|
108
|
+
*/
|
|
100
109
|
metadata?: pulumi.Input<string>;
|
|
101
110
|
/**
|
|
102
111
|
* Namespace identifier tag.
|
package/workersKv.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workersKv.js","sourceRoot":"","sources":["../workersKv.ts"],"names":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AI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAClD,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AAzFL,8BA0FC;AA5EG,gBAAgB;AACO,sBAAY,GAAG,sCAAsC,CAAC"}
|
package/workersScript.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* !> This resource is no longer recommended. Please use the `cloudflareWorker`, `cloudflareWorkerVersion`, and `cloudflare.WorkersDeployment` resources instead. See how to use them in the [developer documentation](https://developers.cloudflare.com/workers/platform/infrastructure-as-code/).
|
|
6
6
|
*
|
|
7
7
|
* ## Import
|
|
8
8
|
*
|
|
@@ -35,19 +35,23 @@ export declare class WorkersScript extends pulumi.CustomResource {
|
|
|
35
35
|
*/
|
|
36
36
|
readonly assets: pulumi.Output<outputs.WorkersScriptAssets | undefined>;
|
|
37
37
|
/**
|
|
38
|
-
* List of bindings attached to a Worker. You can find more about bindings on our docs:
|
|
38
|
+
* List of bindings attached to a Worker. You can find more about bindings on our docs:
|
|
39
|
+
* https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
|
|
39
40
|
*/
|
|
40
41
|
readonly bindings: pulumi.Output<outputs.WorkersScriptBinding[]>;
|
|
41
42
|
/**
|
|
42
|
-
* Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch`
|
|
43
|
+
* Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch`
|
|
44
|
+
* event). Indicates a `service worker syntax` Worker.
|
|
43
45
|
*/
|
|
44
46
|
readonly bodyPart: pulumi.Output<string | undefined>;
|
|
45
47
|
/**
|
|
46
|
-
* Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date
|
|
48
|
+
* Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date
|
|
49
|
+
* will not affect this Worker.
|
|
47
50
|
*/
|
|
48
51
|
readonly compatibilityDate: pulumi.Output<string>;
|
|
49
52
|
/**
|
|
50
|
-
* Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out
|
|
53
|
+
* Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out
|
|
54
|
+
* of specific changes not included in a `compatibilityDate`.
|
|
51
55
|
*/
|
|
52
56
|
readonly compatibilityFlags: pulumi.Output<string[]>;
|
|
53
57
|
/**
|
|
@@ -55,11 +59,13 @@ export declare class WorkersScript extends pulumi.CustomResource {
|
|
|
55
59
|
*/
|
|
56
60
|
readonly content: pulumi.Output<string | undefined>;
|
|
57
61
|
/**
|
|
58
|
-
* Path to a file containing the Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile`
|
|
62
|
+
* Path to a file containing the Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile`
|
|
63
|
+
* must be specified. Must be paired with `contentSha256`.
|
|
59
64
|
*/
|
|
60
65
|
readonly contentFile: pulumi.Output<string | undefined>;
|
|
61
66
|
/**
|
|
62
|
-
* SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
|
|
67
|
+
* SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
|
|
68
|
+
* `contentFile` is specified.
|
|
63
69
|
*/
|
|
64
70
|
readonly contentSha256: pulumi.Output<string | undefined>;
|
|
65
71
|
/**
|
|
@@ -95,7 +101,8 @@ export declare class WorkersScript extends pulumi.CustomResource {
|
|
|
95
101
|
*/
|
|
96
102
|
readonly logpush: pulumi.Output<boolean>;
|
|
97
103
|
/**
|
|
98
|
-
* Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler).
|
|
104
|
+
* Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler).
|
|
105
|
+
* Indicates a `module syntax` Worker.
|
|
99
106
|
*/
|
|
100
107
|
readonly mainModule: pulumi.Output<string | undefined>;
|
|
101
108
|
/**
|
|
@@ -120,8 +127,7 @@ export declare class WorkersScript extends pulumi.CustomResource {
|
|
|
120
127
|
*/
|
|
121
128
|
readonly tailConsumers: pulumi.Output<outputs.WorkersScriptTailConsumer[]>;
|
|
122
129
|
/**
|
|
123
|
-
* Usage model for the Worker invocations.
|
|
124
|
-
* Available values: "standard".
|
|
130
|
+
* Usage model for the Worker invocations. Available values: "standard".
|
|
125
131
|
*/
|
|
126
132
|
readonly usageModel: pulumi.Output<string>;
|
|
127
133
|
/**
|
|
@@ -146,19 +152,23 @@ export interface WorkersScriptState {
|
|
|
146
152
|
*/
|
|
147
153
|
assets?: pulumi.Input<inputs.WorkersScriptAssets>;
|
|
148
154
|
/**
|
|
149
|
-
* List of bindings attached to a Worker. You can find more about bindings on our docs:
|
|
155
|
+
* List of bindings attached to a Worker. You can find more about bindings on our docs:
|
|
156
|
+
* https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
|
|
150
157
|
*/
|
|
151
158
|
bindings?: pulumi.Input<pulumi.Input<inputs.WorkersScriptBinding>[]>;
|
|
152
159
|
/**
|
|
153
|
-
* Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch`
|
|
160
|
+
* Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch`
|
|
161
|
+
* event). Indicates a `service worker syntax` Worker.
|
|
154
162
|
*/
|
|
155
163
|
bodyPart?: pulumi.Input<string>;
|
|
156
164
|
/**
|
|
157
|
-
* Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date
|
|
165
|
+
* Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date
|
|
166
|
+
* will not affect this Worker.
|
|
158
167
|
*/
|
|
159
168
|
compatibilityDate?: pulumi.Input<string>;
|
|
160
169
|
/**
|
|
161
|
-
* Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out
|
|
170
|
+
* Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out
|
|
171
|
+
* of specific changes not included in a `compatibilityDate`.
|
|
162
172
|
*/
|
|
163
173
|
compatibilityFlags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
164
174
|
/**
|
|
@@ -166,11 +176,13 @@ export interface WorkersScriptState {
|
|
|
166
176
|
*/
|
|
167
177
|
content?: pulumi.Input<string>;
|
|
168
178
|
/**
|
|
169
|
-
* Path to a file containing the Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile`
|
|
179
|
+
* Path to a file containing the Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile`
|
|
180
|
+
* must be specified. Must be paired with `contentSha256`.
|
|
170
181
|
*/
|
|
171
182
|
contentFile?: pulumi.Input<string>;
|
|
172
183
|
/**
|
|
173
|
-
* SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
|
|
184
|
+
* SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
|
|
185
|
+
* `contentFile` is specified.
|
|
174
186
|
*/
|
|
175
187
|
contentSha256?: pulumi.Input<string>;
|
|
176
188
|
/**
|
|
@@ -206,7 +218,8 @@ export interface WorkersScriptState {
|
|
|
206
218
|
*/
|
|
207
219
|
logpush?: pulumi.Input<boolean>;
|
|
208
220
|
/**
|
|
209
|
-
* Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler).
|
|
221
|
+
* Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler).
|
|
222
|
+
* Indicates a `module syntax` Worker.
|
|
210
223
|
*/
|
|
211
224
|
mainModule?: pulumi.Input<string>;
|
|
212
225
|
/**
|
|
@@ -231,8 +244,7 @@ export interface WorkersScriptState {
|
|
|
231
244
|
*/
|
|
232
245
|
tailConsumers?: pulumi.Input<pulumi.Input<inputs.WorkersScriptTailConsumer>[]>;
|
|
233
246
|
/**
|
|
234
|
-
* Usage model for the Worker invocations.
|
|
235
|
-
* Available values: "standard".
|
|
247
|
+
* Usage model for the Worker invocations. Available values: "standard".
|
|
236
248
|
*/
|
|
237
249
|
usageModel?: pulumi.Input<string>;
|
|
238
250
|
}
|
|
@@ -249,19 +261,23 @@ export interface WorkersScriptArgs {
|
|
|
249
261
|
*/
|
|
250
262
|
assets?: pulumi.Input<inputs.WorkersScriptAssets>;
|
|
251
263
|
/**
|
|
252
|
-
* List of bindings attached to a Worker. You can find more about bindings on our docs:
|
|
264
|
+
* List of bindings attached to a Worker. You can find more about bindings on our docs:
|
|
265
|
+
* https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
|
|
253
266
|
*/
|
|
254
267
|
bindings?: pulumi.Input<pulumi.Input<inputs.WorkersScriptBinding>[]>;
|
|
255
268
|
/**
|
|
256
|
-
* Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch`
|
|
269
|
+
* Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch`
|
|
270
|
+
* event). Indicates a `service worker syntax` Worker.
|
|
257
271
|
*/
|
|
258
272
|
bodyPart?: pulumi.Input<string>;
|
|
259
273
|
/**
|
|
260
|
-
* Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date
|
|
274
|
+
* Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date
|
|
275
|
+
* will not affect this Worker.
|
|
261
276
|
*/
|
|
262
277
|
compatibilityDate?: pulumi.Input<string>;
|
|
263
278
|
/**
|
|
264
|
-
* Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out
|
|
279
|
+
* Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out
|
|
280
|
+
* of specific changes not included in a `compatibilityDate`.
|
|
265
281
|
*/
|
|
266
282
|
compatibilityFlags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
267
283
|
/**
|
|
@@ -269,11 +285,13 @@ export interface WorkersScriptArgs {
|
|
|
269
285
|
*/
|
|
270
286
|
content?: pulumi.Input<string>;
|
|
271
287
|
/**
|
|
272
|
-
* Path to a file containing the Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile`
|
|
288
|
+
* Path to a file containing the Module or Service Worker contents of the Worker. Exactly one of `content` or `contentFile`
|
|
289
|
+
* must be specified. Must be paired with `contentSha256`.
|
|
273
290
|
*/
|
|
274
291
|
contentFile?: pulumi.Input<string>;
|
|
275
292
|
/**
|
|
276
|
-
* SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
|
|
293
|
+
* SHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when
|
|
294
|
+
* `contentFile` is specified.
|
|
277
295
|
*/
|
|
278
296
|
contentSha256?: pulumi.Input<string>;
|
|
279
297
|
/**
|
|
@@ -293,7 +311,8 @@ export interface WorkersScriptArgs {
|
|
|
293
311
|
*/
|
|
294
312
|
logpush?: pulumi.Input<boolean>;
|
|
295
313
|
/**
|
|
296
|
-
* Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler).
|
|
314
|
+
* Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler).
|
|
315
|
+
* Indicates a `module syntax` Worker.
|
|
297
316
|
*/
|
|
298
317
|
mainModule?: pulumi.Input<string>;
|
|
299
318
|
/**
|
|
@@ -313,8 +332,7 @@ export interface WorkersScriptArgs {
|
|
|
313
332
|
*/
|
|
314
333
|
tailConsumers?: pulumi.Input<pulumi.Input<inputs.WorkersScriptTailConsumer>[]>;
|
|
315
334
|
/**
|
|
316
|
-
* Usage model for the Worker invocations.
|
|
317
|
-
* Available values: "standard".
|
|
335
|
+
* Usage model for the Worker invocations. Available values: "standard".
|
|
318
336
|
*/
|
|
319
337
|
usageModel?: pulumi.Input<string>;
|
|
320
338
|
}
|
package/workersScript.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.WorkersScript = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* !> This resource is no longer recommended. Please use the `cloudflareWorker`, `cloudflareWorkerVersion`, and `cloudflare.WorkersDeployment` resources instead. See how to use them in the [developer documentation](https://developers.cloudflare.com/workers/platform/infrastructure-as-code/).
|
|
10
10
|
*
|
|
11
11
|
* ## Import
|
|
12
12
|
*
|