scoped id of the resource
the worker site properties
Optionaloptions: ComponentResourceOptions
optional Pulumi component resource options
Manager for Cloudflare Access operations
Manager for Cloudflare API Shield operations
Manager for Cloudflare Argo operations
The Pulumi configuration instance
Manager for Cloudflare Filter operations
Manager for Cloudflare Firewall operations
The fully qualified domain name resolved from domainName and subDomain
The scoped identifier for this construct
OptionaloptionsOptional Pulumi component resource options
Manager for Cloudflare Pages operations
The construct stack properties
The Cloudflare provider instance
Manager for Cloudflare DNS Record operations
Manager for Cloudflare Rule Set operations
The Cloudflare ruleset resource for the worker site
The Cloudflare Workers custom domain resource
The Cloudflare Workers script resource
Optional workers.dev subdomain configuration for the script
The Cloudflare zone (created or resolved) for the worker site
The Cloudflare zone setting resource for the worker site
ReadonlyurnThe stable logical URN used to distinctly address a resource, both before and after deployments.
Manager for Cloudflare Worker operations
Plain text binding environment variables for the worker script
Secret text binding environment variables for the worker script
Manager for Cloudflare Zone operations
ProtectedcreateProtectedcreateProtectedcreateProtectedcreateProtectedcreateProtectedcreateProtectedcreateProtecteddetermineProtectedgetRetrieves the data produces by initialize. The data is
immediately available in a derived class's constructor after the
super(...) call to ComponentResource.
Returns the provider for the given module member, if one exists.
Protectedhashthe directory to hash
the first 16 hex characters of the SHA-256 hash
ProtectedinitializeCan be overridden by a subclass to asynchronously initialize data for this component automatically when constructed. The data will be available immediately for subclass constructors to use. To access the data use getData.
Optionalopts: ComponentResourceOptionsOptionalname: stringOptionaltype: stringProtectedinitProtectedreadProtectedregisterRegisters synthetic outputs that a component has initialized, usually by allocating other child sub-resources and propagating their resulting property values.
Component resources can call this at the end of their constructor to indicate that they are done creating child resources. This is not strictly necessary as this will automatically be called after the initialize method completes.
Optionaloutputs: Inputs | Promise<Inputs> | Output<Inputs>ProtectedremoveProtectedresolveProtectedresolvethe secret name
the secret value
Protectedresolvethe resource group name where the key vault is located
the key vault name
the secret key
the secret value
Protectedresolvethe fully qualified stack name to resolve
the resolved stack reference
ProtectedresolveProtectedresolvethe asset directory resolved from the Wrangler configuration
OptionalscriptName: string
the worker script name, which keeps each worker's staged copy separate
the asset directory, or a staged copy of it without the files Wrangler doesn't upload
The Workers provider uploads every file in the directory, so _headers and _redirects would otherwise be served
as static files (e.g. GET /_headers). Like Wrangler, this leaves them and .assetsignore out when they are at the
root of the directory (a file of the same name in a subdirectory is still uploaded), and leaves out the paths
matching the gitignore-style patterns in .assetsignore. Without any of these root files the directory is used as
it is.
The copy is staged in a temporary directory, then renamed to a path named after the asset directory, the script name and the staged contents, so it stays the same between deployments while the assets don't change. A staged copy is never changed or removed once it's in place, so runs that stage the same worker at the same time (e.g. parallel test files or deployments on one machine) can't remove each other's copy: a run that finds the copy already in place uses it, as its contents are the same. A worker's copies last used more than a day ago are removed.
ProtectedresolveProtectedtranslateOptionalexports: Record<string, WranglerExport>
the Wrangler exports map, keyed by export name (default is the default export)
the worker entries with their per-entrypoint cache settings, or undefined when there are none
ProtectedtranslateStaticisReturns true if the given object is a CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
Provides a construct to create and deploy a cloudflare worker site. Wrangler asset directories are resolved relative to their configuration file; optional _headers and _redirects files are forwarded to the Workers asset configuration and, as with Wrangler, are not uploaded as assets, nor are paths matching
.assetsignorepatterns. Per-entrypoint cache settings from the Wranglerexportsmap are forwarded to the Workers script.Example