You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "Configuration for assets within a Worker",
49
+
"config": schema.SingleNestedAttribute{
50
+
Description: "Configuration for assets within a Worker.",
46
51
Optional: true,
47
52
Attributes: map[string]schema.Attribute{
48
-
"config": schema.SingleNestedAttribute{
49
-
Description: "Configuration for assets within a Worker.",
53
+
"html_handling": schema.StringAttribute{
54
+
Description: "Determines the redirects and rewrites of requests for HTML content.\nAvailable values: \"auto-trailing-slash\", \"force-trailing-slash\", \"drop-trailing-slash\", \"none\".",
50
55
Optional: true,
51
-
Attributes: map[string]schema.Attribute{
52
-
"html_handling": schema.StringAttribute{
53
-
Description: "Determines the redirects and rewrites of requests for HTML content.\nAvailable values: \"auto-trailing-slash\", \"force-trailing-slash\", \"drop-trailing-slash\", \"none\".",
54
-
Optional: true,
55
-
Validators: []validator.String{
56
-
stringvalidator.OneOfCaseInsensitive(
57
-
"auto-trailing-slash",
58
-
"force-trailing-slash",
59
-
"drop-trailing-slash",
60
-
"none",
61
-
),
62
-
},
63
-
},
64
-
"not_found_handling": schema.StringAttribute{
65
-
Description: "Determines the response when a request does not match a static asset, and there is no Worker script.\nAvailable values: \"none\", \"404-page\", \"single-page-application\".",
66
-
Optional: true,
67
-
Validators: []validator.String{
68
-
stringvalidator.OneOfCaseInsensitive(
69
-
"none",
70
-
"404-page",
71
-
"single-page-application",
72
-
),
73
-
},
74
-
},
75
-
"run_worker_first": schema.BoolAttribute{
76
-
Description: "When true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script.",
77
-
Computed: true,
78
-
Optional: true,
79
-
Default: booldefault.StaticBool(false),
80
-
},
81
-
"serve_directly": schema.BoolAttribute{
82
-
Description: "When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.",
83
-
Computed: true,
84
-
Optional: true,
85
-
Default: booldefault.StaticBool(true),
86
-
},
56
+
Validators: []validator.String{
57
+
stringvalidator.OneOfCaseInsensitive(
58
+
"auto-trailing-slash",
59
+
"force-trailing-slash",
60
+
"drop-trailing-slash",
61
+
"none",
62
+
),
63
+
},
64
+
},
65
+
"not_found_handling": schema.StringAttribute{
66
+
Description: "Determines the response when a request does not match a static asset, and there is no Worker script.\nAvailable values: \"none\", \"404-page\", \"single-page-application\".",
67
+
Optional: true,
68
+
Validators: []validator.String{
69
+
stringvalidator.OneOfCaseInsensitive(
70
+
"none",
71
+
"404-page",
72
+
"single-page-application",
73
+
),
87
74
},
88
75
},
89
-
"jwt": schema.StringAttribute{
90
-
Description: "Token provided upon successful upload of all files from a registered manifest.",
76
+
"run_worker_first": schema.BoolAttribute{
77
+
Description: "When true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script.",
78
+
Computed: true,
91
79
Optional: true,
92
-
Sensitive: true,
80
+
Default: booldefault.StaticBool(false),
81
+
},
82
+
"serve_directly": schema.BoolAttribute{
83
+
Description: "When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.",
84
+
Computed: true,
85
+
Optional: true,
86
+
Default: booldefault.StaticBool(true),
93
87
},
94
88
},
95
89
},
96
-
"bindings": schema.ListNestedAttribute{
97
-
Description: "List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.",
90
+
"jwt": schema.StringAttribute{
91
+
Description: "Token provided upon successful upload of all files from a registered manifest.",
98
92
Optional: true,
99
-
NestedObject: schema.NestedAttributeObject{
93
+
Sensitive: true,
94
+
},
95
+
},
96
+
},
97
+
"bindings": schema.ListNestedAttribute{
98
+
Description: "List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.",
Description: "A JavaScript variable name for the binding.",
106
+
Required: true,
107
+
},
108
+
"type": schema.StringAttribute{
109
+
Description: "The kind of resource that the binding provides.\nAvailable values: \"ai\", \"analytics_engine\", \"assets\", \"browser_rendering\", \"d1\", \"dispatch_namespace\", \"durable_object_namespace\", \"hyperdrive\", \"json\", \"kv_namespace\", \"mtls_certificate\", \"plain_text\", \"queue\", \"r2_bucket\", \"secret_text\", \"service\", \"tail_consumer\", \"vectorize\", \"version_metadata\".",
110
+
Required: true,
111
+
Validators: []validator.String{
112
+
stringvalidator.OneOfCaseInsensitive(
113
+
"ai",
114
+
"analytics_engine",
115
+
"assets",
116
+
"browser_rendering",
117
+
"d1",
118
+
"dispatch_namespace",
119
+
"durable_object_namespace",
120
+
"hyperdrive",
121
+
"json",
122
+
"kv_namespace",
123
+
"mtls_certificate",
124
+
"plain_text",
125
+
"queue",
126
+
"r2_bucket",
127
+
"secret_text",
128
+
"service",
129
+
"tail_consumer",
130
+
"vectorize",
131
+
"version_metadata",
132
+
),
133
+
},
134
+
},
135
+
"dataset": schema.StringAttribute{
136
+
Description: "The name of the dataset to bind to.",
137
+
Optional: true,
138
+
},
139
+
"id": schema.StringAttribute{
140
+
Description: "Identifier of the D1 database to bind to.",
141
+
Optional: true,
142
+
},
143
+
"namespace": schema.StringAttribute{
144
+
Description: "Namespace to bind to.",
145
+
Optional: true,
146
+
},
147
+
"outbound": schema.SingleNestedAttribute{
148
+
Description: "Outbound worker.",
149
+
Optional: true,
100
150
Attributes: map[string]schema.Attribute{
101
-
"name": schema.StringAttribute{
102
-
Description: "A JavaScript variable name for the binding.",
103
-
Required: true,
104
-
},
105
-
"type": schema.StringAttribute{
106
-
Description: "The kind of resource that the binding provides.\nAvailable values: \"ai\", \"analytics_engine\", \"assets\", \"browser_rendering\", \"d1\", \"dispatch_namespace\", \"durable_object_namespace\", \"hyperdrive\", \"json\", \"kv_namespace\", \"mtls_certificate\", \"plain_text\", \"queue\", \"r2_bucket\", \"secret_text\", \"service\", \"tail_consumer\", \"vectorize\", \"version_metadata\".",
107
-
Required: true,
108
-
Validators: []validator.String{
109
-
stringvalidator.OneOfCaseInsensitive(
110
-
"ai",
111
-
"analytics_engine",
112
-
"assets",
113
-
"browser_rendering",
114
-
"d1",
115
-
"dispatch_namespace",
116
-
"durable_object_namespace",
117
-
"hyperdrive",
118
-
"json",
119
-
"kv_namespace",
120
-
"mtls_certificate",
121
-
"plain_text",
122
-
"queue",
123
-
"r2_bucket",
124
-
"secret_text",
125
-
"service",
126
-
"tail_consumer",
127
-
"vectorize",
128
-
"version_metadata",
129
-
),
130
-
},
131
-
},
132
-
"dataset": schema.StringAttribute{
133
-
Description: "The name of the dataset to bind to.",
134
-
Optional: true,
135
-
},
136
-
"id": schema.StringAttribute{
137
-
Description: "Identifier of the D1 database to bind to.",
138
-
Optional: true,
139
-
},
140
-
"namespace": schema.StringAttribute{
141
-
Description: "Namespace to bind to.",
151
+
"params": schema.ListAttribute{
152
+
Description: "Pass information from the Dispatch Worker to the Outbound Worker through the parameters.",
142
153
Optional: true,
154
+
ElementType: types.StringType,
143
155
},
144
-
"outbound": schema.SingleNestedAttribute{
156
+
"worker": schema.SingleNestedAttribute{
145
157
Description: "Outbound worker.",
146
158
Optional: true,
147
159
Attributes: map[string]schema.Attribute{
148
-
"params": schema.ListAttribute{
149
-
Description: "Pass information from the Dispatch Worker to the Outbound Worker through the parameters.",
160
+
"environment": schema.StringAttribute{
161
+
Description: "Environment of the outbound worker.",
150
162
Optional: true,
151
-
ElementType: types.StringType,
152
163
},
153
-
"worker": schema.SingleNestedAttribute{
154
-
Description: "Outbound worker.",
164
+
"service": schema.StringAttribute{
165
+
Description: "Name of the outbound worker.",
155
166
Optional: true,
156
-
Attributes: map[string]schema.Attribute{
157
-
"environment": schema.StringAttribute{
158
-
Description: "Environment of the outbound worker.",
159
-
Optional: true,
160
-
},
161
-
"service": schema.StringAttribute{
162
-
Description: "Name of the outbound worker.",
163
-
Optional: true,
164
-
},
165
-
},
166
167
},
167
168
},
168
169
},
169
-
"class_name": schema.StringAttribute{
170
-
Description: "The exported class name of the Durable Object.",
171
-
Optional: true,
172
-
},
173
-
"environment": schema.StringAttribute{
174
-
Description: "The environment of the script_name to bind to.",
175
-
Optional: true,
176
-
},
177
-
"namespace_id": schema.StringAttribute{
178
-
Description: "Namespace identifier tag.",
179
-
Optional: true,
180
-
},
181
-
"script_name": schema.StringAttribute{
182
-
Description: "The script where the Durable Object is defined, if it is external to this Worker.",
183
-
Optional: true,
184
-
},
185
-
"json": schema.StringAttribute{
186
-
Description: "JSON data to use.",
187
-
Optional: true,
188
-
},
189
-
"certificate_id": schema.StringAttribute{
190
-
Description: "Identifier of the certificate to bind to.",
191
-
Optional: true,
192
-
},
193
-
"text": schema.StringAttribute{
194
-
Description: "The text value to use.",
195
-
Optional: true,
196
-
Sensitive: true,
197
-
},
198
-
"queue_name": schema.StringAttribute{
199
-
Description: "Name of the Queue to bind to.",
200
-
Optional: true,
201
-
},
202
-
"bucket_name": schema.StringAttribute{
203
-
Description: "R2 bucket to bind to.",
204
-
Optional: true,
205
-
},
206
-
"service": schema.StringAttribute{
207
-
Description: "Name of Worker to bind to.",
208
-
Optional: true,
209
-
},
210
-
"index_name": schema.StringAttribute{
211
-
Description: "Name of the Vectorize index to bind to.",
212
-
Optional: true,
213
-
},
214
170
},
215
171
},
172
+
"class_name": schema.StringAttribute{
173
+
Description: "The exported class name of the Durable Object.",
174
+
Optional: true,
175
+
},
176
+
"environment": schema.StringAttribute{
177
+
Description: "The environment of the script_name to bind to.",
178
+
Optional: true,
179
+
},
180
+
"namespace_id": schema.StringAttribute{
181
+
Description: "Namespace identifier tag.",
182
+
Optional: true,
183
+
},
184
+
"script_name": schema.StringAttribute{
185
+
Description: "The script where the Durable Object is defined, if it is external to this Worker.",
186
+
Optional: true,
187
+
},
188
+
"json": schema.StringAttribute{
189
+
Description: "JSON data to use.",
190
+
Optional: true,
191
+
},
192
+
"certificate_id": schema.StringAttribute{
193
+
Description: "Identifier of the certificate to bind to.",
194
+
Optional: true,
195
+
},
196
+
"text": schema.StringAttribute{
197
+
Description: "The text value to use.",
198
+
Optional: true,
199
+
Sensitive: true,
200
+
},
201
+
"queue_name": schema.StringAttribute{
202
+
Description: "Name of the Queue to bind to.",
203
+
Optional: true,
204
+
},
205
+
"bucket_name": schema.StringAttribute{
206
+
Description: "R2 bucket to bind to.",
207
+
Optional: true,
208
+
},
209
+
"service": schema.StringAttribute{
210
+
Description: "Name of Worker to bind to.",
211
+
Optional: true,
212
+
},
213
+
"index_name": schema.StringAttribute{
214
+
Description: "Name of the Vectorize index to bind to.",
215
+
Optional: true,
216
+
},
216
217
},
217
-
"body_part": schema.StringAttribute{
218
-
Description: "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.",
219
-
Optional: true,
220
-
},
221
-
"compatibility_date": schema.StringAttribute{
222
-
Description: "Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.",
223
-
Optional: true,
224
-
},
225
-
"compatibility_flags": schema.ListAttribute{
226
-
Description: "Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a `compatibility_date`.",
218
+
},
219
+
},
220
+
"body_part": schema.StringAttribute{
221
+
Description: "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.",
222
+
Optional: true,
223
+
},
224
+
"compatibility_date": schema.StringAttribute{
225
+
Description: "Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.",
226
+
Optional: true,
227
+
},
228
+
"compatibility_flags": schema.ListAttribute{
229
+
Description: "Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a `compatibility_date`.",
230
+
Optional: true,
231
+
ElementType: types.StringType,
232
+
},
233
+
"keep_assets": schema.BoolAttribute{
234
+
Description: "Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.",
235
+
Optional: true,
236
+
},
237
+
"keep_bindings": schema.ListAttribute{
238
+
Description: "List of binding types to keep from previous_upload.",
239
+
Optional: true,
240
+
ElementType: types.StringType,
241
+
},
242
+
"logpush": schema.BoolAttribute{
243
+
Description: "Whether Logpush is turned on for the Worker.",
244
+
Optional: true,
245
+
Computed: true,
246
+
},
247
+
"main_module": schema.StringAttribute{
248
+
Description: "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.",
249
+
Optional: true,
250
+
},
251
+
"migrations": schema.SingleNestedAttribute{
252
+
Description: "Migrations to apply for Durable Objects associated with this Worker.",
Description: "A list of classes to delete Durable Object namespaces from.",
227
259
Optional: true,
228
260
ElementType: types.StringType,
229
261
},
230
-
"keep_assets": schema.BoolAttribute{
231
-
Description: "Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.",
262
+
"new_classes": schema.ListAttribute{
263
+
Description: "A list of classes to create Durable Object namespaces from.",
232
264
Optional: true,
265
+
ElementType: types.StringType,
233
266
},
234
-
"keep_bindings": schema.ListAttribute{
235
-
Description: "List of binding types to keep from previous_upload.",
267
+
"new_sqlite_classes": schema.ListAttribute{
268
+
Description: "A list of classes to create Durable Object namespaces with SQLite from.",
236
269
Optional: true,
237
270
ElementType: types.StringType,
238
271
},
239
-
"logpush": schema.BoolAttribute{
240
-
Description: "Whether Logpush is turned on for the Worker.",
272
+
"new_tag": schema.StringAttribute{
273
+
Description: "Tag to set as the latest migration tag.",
241
274
Optional: true,
242
275
},
243
-
"main_module": schema.StringAttribute{
244
-
Description: "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.",
276
+
"old_tag": schema.StringAttribute{
277
+
Description: "Tag used to verify against the latest migration tag for this Worker. If they don't match, the upload is rejected.",
245
278
Optional: true,
246
279
},
247
-
"migrations": schema.SingleNestedAttribute{
248
-
Description: "Migrations to apply for Durable Objects associated with this Worker.",
280
+
"renamed_classes": schema.ListNestedAttribute{
281
+
Description: "A list of classes with Durable Object namespaces that were renamed.",
249
282
Optional: true,
250
-
Attributes: map[string]schema.Attribute{
251
-
"deleted_classes": schema.ListAttribute{
252
-
Description: "A list of classes to delete Durable Object namespaces from.",
253
-
Optional: true,
254
-
ElementType: types.StringType,
255
-
},
256
-
"new_classes": schema.ListAttribute{
257
-
Description: "A list of classes to create Durable Object namespaces from.",
258
-
Optional: true,
259
-
ElementType: types.StringType,
260
-
},
261
-
"new_sqlite_classes": schema.ListAttribute{
262
-
Description: "A list of classes to create Durable Object namespaces with SQLite from.",
263
-
Optional: true,
264
-
ElementType: types.StringType,
265
-
},
266
-
"new_tag": schema.StringAttribute{
267
-
Description: "Tag to set as the latest migration tag.",
268
-
Optional: true,
269
-
},
270
-
"old_tag": schema.StringAttribute{
271
-
Description: "Tag used to verify against the latest migration tag for this Worker. If they don't match, the upload is rejected.",
272
-
Optional: true,
273
-
},
274
-
"renamed_classes": schema.ListNestedAttribute{
275
-
Description: "A list of classes with Durable Object namespaces that were renamed.",
0 commit comments