Skip to main content

Pullzone

Resource Pullzone in pulumi-bunnynet.
18 min read

Resource Pullzone in pulumi-bunnynet.

Pulumi type: bunnynet:index/pullzone:Pullzone.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
addCanonicalHeaderbooleannoIndicates whether the Canonical header is added to the responses.
allowReferersstring[]noThe list of referrer hostnames that are allowed to access the pull zone. Requests containing the header "Referer: hostname" that is not on the list will be rejected. If empty, all the referrers are allowed.
blockIpsstring[]noThe list of IPs that are blocked from accessing the pull zone. Requests coming from the following IPs will be rejected. If empty, all the IPs will be allowed
blockNoRefererbooleannoIndicates whether requests without a referer should be blocked.
blockPostRequestsbooleannoIndicates whether to block POST requests.
blockReferersstring[]noThe list of referrer hostnames that are blocked to access the pull zone. Requests containing the header "Referer: hostname" that is not on the list will be rejected. If empty, all the referrers are allowed.
blockRootPathbooleannoThis property indicates whether to block the root path.
cacheChunkedbooleannoIndicates whether the cache slice (Optimize for large object delivery) feature is enabled for the Pull Zone
cacheEnabledbooleannoIndicates whether smart caching is enabled.
cacheErrorsbooleannoIndicates whether bunny.net should be caching error responses.
cacheExpirationTimenumbernoThe override cache time, in seconds.
cacheExpirationTimeBrowsernumbernoThe override cache time for the end client, in seconds.
cacheStalesstring[]noOptions: offline, updating
cacheVariesstring[]noOptions: avif, cookie, country, hostname, mobile, querystring, state, webp
cacheVaryCookiesstring[]noContains the list of vary parameters that will be used for vary cache by cookie string. If empty, cookie vary will not be used.
cacheVaryHeadersstring[]noContains the list of request headers will be used for vary cache. If empty, it will not be used.
cacheVaryQuerystringsstring[]noContains the list of vary parameters that will be used for vary cache by query string. If empty, all parameters will be used to construct the key
corsEnabledbooleannoIndicates whether CORS (Cross-Origin Resource Sharing) is enabled.
corsExtensionsstring[]noA list of file extensions for which CORS is enabled.
disableLetsencryptbooleannoIf true, the built-in let's encrypt is disabled and requests are passed to the origin.
errorpageCustomContentstringnoContains the custom error page code that will be returned.
errorpageCustomEnabledbooleannoIndicates whether custom error page code should be enabled.
errorpageStatuspageCodestringnoThe statuspage code that will be used to build the status widget.
errorpageStatuspageEnabledbooleannoIndicates whether the statuspage widget should be displayed on the error pages.
errorpageWhitelabelbooleannoIndicates whether the error pages should be white-labelled or not
limitAfternumbernoThe amount of data after the rate limit will be activated.
limitBandwidthnumbernoThe maximum bandwidth limit in bytes.
limitBurstnumbernoExcessive requests are delayed until their number exceeds the maximum burst size.
limitConnectionsnumbernoThe number of connections limited per IP.
limitDownloadSpeednumbernoThe maximum download speed, in kb/s. Use 0 for unlimited.
limitRequestsnumbernoThe maximum amount of requests per IP per second.
logAnonymizedbooleannoIndicates whether logs are anonymized.
logAnonymizedStylestringnoOptions: Drop, OneDigit
logEnabledbooleannoIndicates whether logging is enabled.
logForwardEnabledbooleannoIndicates whether log forwarding is enabled.
logForwardFormatstringnoOptions: JSON, Plain
logForwardPortnumbernoThe port number for log forwarding.
logForwardProtocolstringnoOptions: DataDog, TCP, TCPEncrypted, UDP
logForwardServerstringnoThe server address for log forwarding.
logForwardTokenstringnoThe token used for log forwarding authentication.
logStorageEnabledbooleannoIndicates whether log storage is enabled.
logStorageZonenumbernoThe storage zone ID for log storage.
namestringnoThe name of the pull zone.
optimizerBurrowbooleannoIndicates whether Burrow Smart Routing should be enabled.
optimizerClassesForcebooleannoIndicates whether the optimizer class list should be enforced.
optimizerDynamicImageApibooleannoIndicates whether the image manipulation should be enabled.
optimizerEnabledbooleannoIndicates whether Bunny Optimizer should be enabled.
optimizerHtmlPrerenderbooleannoIndicates whether HTML Prerender should be enabled.
optimizerMinifyCssbooleannoIndicates whether the CSS minification should be enabled.
optimizerMinifyJsbooleannoIndicates whether the JavaScript minification should be enabled.
optimizerSmartimagebooleannoIndicates whether the automatic image optimization should be enabled.
optimizerSmartimageDesktopMaxwidthnumbernoThe maximum automatic image size for desktop clients.
optimizerSmartimageDesktopQualitynumbernoThe image quality for desktop clients.
optimizerSmartimageMobileMaxwidthnumbernoThe maximum automatic image size for mobile clients.
optimizerSmartimageMobileQualitynumbernoDetermines the image quality for mobile clients
optimizerWatermarkbooleannoIndicates whether image watermarking should be enabled.
optimizerWatermarkBorderoffsetnumbernoThe offset of the watermark image.
optimizerWatermarkMinsizenumbernoThe minimum image size to which the watermark will be added.
optimizerWatermarkPositionstringnoOptions: BottomLeft, BottomRight, Center, CenterStretch, TopLeft, TopRight
optimizerWatermarkUrlstringnoThe URL of the watermark image.
optimizerWebpbooleannoIndicates whether the WebP optimization should be enabled.
originPullzoneOrigin (input)no
originshieldConcurrencyLimitbooleannoIndicates whether there is a concurrency limit for Origin Shield.
originshieldConcurrencyRequestsnumbernoThe number of concurrent requests for Origin Shield.
originshieldEnabledbooleannoIndicates whether Origin Shield is enabled.
originshieldQueueRequestsnumbernoThe number of queued requests for Origin Shield.
originshieldQueueWaitnumbernoThe maximum wait time for queued requests in Origin Shield, in seconds.
originshieldZonestringnoOptions: FR, IL
permacacheStoragezonenumbernoThe storage zone ID for Perma-Cache.
requestCoalescingEnabledbooleannoIndicates whether request coalescing is enabled.
requestCoalescingTimeoutnumbernoSpecifies the timeout period, in seconds, for request coalescing, determining how long to wait before sending combined requests to the origin.
routingPullzoneRouting (input)no
s3AuthEnabledbooleannoIndicates whether requests to origin will be signed with AWS Signature Version 4.
s3AuthKeystringnoThe access key used to authenticate the requests.
s3AuthRegionstringnoThe region name of the bucket used to authenticate the requests.
s3AuthSecretstringnoThe secret key used to authenticate the requests.
safehopConnectionTimeoutnumbernoThe amount of seconds to wait when connecting to the origin. Otherwise the request will fail or retry.
safehopEnabledbooleanno
safehopResponseTimeoutnumbernoThe amount of seconds to wait when waiting for the origin reply. Otherwise the request will fail or retry.
safehopRetryCountnumbernoThe number of retries to the origin server.
safehopRetryDelaynumbernoThe amount of time that the CDN should wait before retrying an origin request.
safehopRetryReasonsstring[]noOptions: 5xxResponse, connectionTimeout, responseTimeout
sortQuerystringbooleannoIf enabled, the query parameters will be automatically sorted into a consistent order before checking the cache.
stripCookiesbooleannoIf enabled, bunny.net will strip all the Set-Cookie headers from the HTTP responses.
tlsLevelstringnoOptions: Compatible, Legacy, ModernOnly
tlsSupportsstring[]noOptions: TLSv1.0, TLSv1.1
tokenAuthEnabledbooleannoIndicates whether requests without a valid token and expiry timestamp will be rejected.
tokenAuthIpValidationbooleannoIndicates whether the secure hash generated by the server will also include an IP address.
useBackgroundUpdatebooleannoIndicates whether cache update is performed in the background.
websocketsEnabledbooleannoIndicates whether the WebSocket support is enabled.
websocketsMaxConnectionsnumbernoThe maximum allowed concurrent WebSocket connections.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
addCanonicalHeaderbooleannoIndicates whether the Canonical header is added to the responses.
allowReferersstring[]noThe list of referrer hostnames that are allowed to access the pull zone. Requests containing the header "Referer: hostname" that is not on the list will be rejected. If empty, all the referrers are allowed.
blockIpsstring[]noThe list of IPs that are blocked from accessing the pull zone. Requests coming from the following IPs will be rejected. If empty, all the IPs will be allowed
blockNoRefererbooleannoIndicates whether requests without a referer should be blocked.
blockPostRequestsbooleannoIndicates whether to block POST requests.
blockReferersstring[]noThe list of referrer hostnames that are blocked to access the pull zone. Requests containing the header "Referer: hostname" that is not on the list will be rejected. If empty, all the referrers are allowed.
blockRootPathbooleannoThis property indicates whether to block the root path.
cacheChunkedbooleannoIndicates whether the cache slice (Optimize for large object delivery) feature is enabled for the Pull Zone
cacheEnabledbooleannoIndicates whether smart caching is enabled.
cacheErrorsbooleannoIndicates whether bunny.net should be caching error responses.
cacheExpirationTimenumbernoThe override cache time, in seconds.
cacheExpirationTimeBrowsernumbernoThe override cache time for the end client, in seconds.
cacheStalesstring[]noOptions: offline, updating
cacheVariesstring[]noOptions: avif, cookie, country, hostname, mobile, querystring, state, webp
cacheVaryCookiesstring[]noContains the list of vary parameters that will be used for vary cache by cookie string. If empty, cookie vary will not be used.
cacheVaryHeadersstring[]noContains the list of request headers will be used for vary cache. If empty, it will not be used.
cacheVaryQuerystringsstring[]noContains the list of vary parameters that will be used for vary cache by query string. If empty, all parameters will be used to construct the key
cdnDomainstringyesThe CNAME domain of the pull zone for setting up custom hostnames
corsEnabledbooleannoIndicates whether CORS (Cross-Origin Resource Sharing) is enabled.
corsExtensionsstring[]noA list of file extensions for which CORS is enabled.
disableLetsencryptbooleannoIf true, the built-in let's encrypt is disabled and requests are passed to the origin.
errorpageCustomContentstringnoContains the custom error page code that will be returned.
errorpageCustomEnabledbooleannoIndicates whether custom error page code should be enabled.
errorpageStatuspageCodestringnoThe statuspage code that will be used to build the status widget.
errorpageStatuspageEnabledbooleannoIndicates whether the statuspage widget should be displayed on the error pages.
errorpageWhitelabelbooleannoIndicates whether the error pages should be white-labelled or not
limitAfternumbernoThe amount of data after the rate limit will be activated.
limitBandwidthnumbernoThe maximum bandwidth limit in bytes.
limitBurstnumbernoExcessive requests are delayed until their number exceeds the maximum burst size.
limitConnectionsnumbernoThe number of connections limited per IP.
limitDownloadSpeednumbernoThe maximum download speed, in kb/s. Use 0 for unlimited.
limitRequestsnumbernoThe maximum amount of requests per IP per second.
logAnonymizedbooleannoIndicates whether logs are anonymized.
logAnonymizedStylestringnoOptions: Drop, OneDigit
logEnabledbooleannoIndicates whether logging is enabled.
logForwardEnabledbooleannoIndicates whether log forwarding is enabled.
logForwardFormatstringnoOptions: JSON, Plain
logForwardPortnumbernoThe port number for log forwarding.
logForwardProtocolstringnoOptions: DataDog, TCP, TCPEncrypted, UDP
logForwardServerstringnoThe server address for log forwarding.
logForwardTokenstringnoThe token used for log forwarding authentication.
logStorageEnabledbooleannoIndicates whether log storage is enabled.
logStorageZonenumbernoThe storage zone ID for log storage.
namestringnoThe name of the pull zone.
optimizerBurrowbooleannoIndicates whether Burrow Smart Routing should be enabled.
optimizerClassesForcebooleannoIndicates whether the optimizer class list should be enforced.
optimizerDynamicImageApibooleannoIndicates whether the image manipulation should be enabled.
optimizerEnabledbooleannoIndicates whether Bunny Optimizer should be enabled.
optimizerHtmlPrerenderbooleannoIndicates whether HTML Prerender should be enabled.
optimizerMinifyCssbooleannoIndicates whether the CSS minification should be enabled.
optimizerMinifyJsbooleannoIndicates whether the JavaScript minification should be enabled.
optimizerSmartimagebooleannoIndicates whether the automatic image optimization should be enabled.
optimizerSmartimageDesktopMaxwidthnumbernoThe maximum automatic image size for desktop clients.
optimizerSmartimageDesktopQualitynumbernoThe image quality for desktop clients.
optimizerSmartimageMobileMaxwidthnumbernoThe maximum automatic image size for mobile clients.
optimizerSmartimageMobileQualitynumbernoDetermines the image quality for mobile clients
optimizerWatermarkbooleannoIndicates whether image watermarking should be enabled.
optimizerWatermarkBorderoffsetnumbernoThe offset of the watermark image.
optimizerWatermarkMinsizenumbernoThe minimum image size to which the watermark will be added.
optimizerWatermarkPositionstringnoOptions: BottomLeft, BottomRight, Center, CenterStretch, TopLeft, TopRight
optimizerWatermarkUrlstringnoThe URL of the watermark image.
optimizerWebpbooleannoIndicates whether the WebP optimization should be enabled.
originPullzoneOrigin (output)no
originshieldConcurrencyLimitbooleannoIndicates whether there is a concurrency limit for Origin Shield.
originshieldConcurrencyRequestsnumbernoThe number of concurrent requests for Origin Shield.
originshieldEnabledbooleannoIndicates whether Origin Shield is enabled.
originshieldQueueRequestsnumbernoThe number of queued requests for Origin Shield.
originshieldQueueWaitnumbernoThe maximum wait time for queued requests in Origin Shield, in seconds.
originshieldZonestringnoOptions: FR, IL
permacacheStoragezonenumbernoThe storage zone ID for Perma-Cache.
pullzoneIdnumberyesThe unique ID of the pull zone.
requestCoalescingEnabledbooleannoIndicates whether request coalescing is enabled.
requestCoalescingTimeoutnumbernoSpecifies the timeout period, in seconds, for request coalescing, determining how long to wait before sending combined requests to the origin.
routingPullzoneRouting (output)no
s3AuthEnabledbooleannoIndicates whether requests to origin will be signed with AWS Signature Version 4.
s3AuthKeystringnoThe access key used to authenticate the requests.
s3AuthRegionstringnoThe region name of the bucket used to authenticate the requests.
s3AuthSecretstringnoThe secret key used to authenticate the requests.
safehopConnectionTimeoutnumbernoThe amount of seconds to wait when connecting to the origin. Otherwise the request will fail or retry.
safehopEnabledbooleanno
safehopResponseTimeoutnumbernoThe amount of seconds to wait when waiting for the origin reply. Otherwise the request will fail or retry.
safehopRetryCountnumbernoThe number of retries to the origin server.
safehopRetryDelaynumbernoThe amount of time that the CDN should wait before retrying an origin request.
safehopRetryReasonsstring[]noOptions: 5xxResponse, connectionTimeout, responseTimeout
sortQuerystringbooleannoIf enabled, the query parameters will be automatically sorted into a consistent order before checking the cache.
stripCookiesbooleannoIf enabled, bunny.net will strip all the Set-Cookie headers from the HTTP responses.
tlsLevelstringnoOptions: Compatible, Legacy, ModernOnly
tlsSupportsstring[]noOptions: TLSv1.0, TLSv1.1
tokenAuthEnabledbooleannoIndicates whether requests without a valid token and expiry timestamp will be rejected.
tokenAuthIpValidationbooleannoIndicates whether the secure hash generated by the server will also include an IP address.
tokenAuthKeystringyesThe auth key used for secure URL token authentication.
useBackgroundUpdatebooleannoIndicates whether cache update is performed in the background.
websocketsEnabledbooleannoIndicates whether the WebSocket support is enabled.
websocketsMaxConnectionsnumbernoThe maximum allowed concurrent WebSocket connections.

PullzoneOrigin (input)#

Input object PullzoneOrigin. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
containerAppIdstringnoThe ID if the compute container app.
containerEndpointIdstringnoThe ID if the compute container app endpoint.
dnsPortnumbernoThe port for DNS Accelerated endpoints.
dnsSchemestringnoThe scheme for DNS Accelerated endpoints.
followRedirectsbooleannoIndicates whether the zone will follow origin redirects.
forwardHostHeaderbooleannoIndicates whether the current hostname is forwarded to the origin.
hostHeaderstringnoThe host header that will be sent to the origin.
middlewareScriptnumbernoThe ID of the compute script used as a middleware.
scriptnumbernoThe ID of the linked compute script.
scriptExecuteBeforeCachebooleannoIndicates whether the script will execute ahead of the cache layer.
storagezonenumbernoThe ID of the linked storage zone.
typestringyesOptions: ComputeContainer, ComputeScript, DnsAccelerate, OriginUrl, StorageZone
urlstringnoThe origin URL from where the files are fetched.
verifySslbooleannoIndicates whether the Origin's TLS certificate should be verified.

PullzoneRouting (input)#

Input object PullzoneRouting. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
blockedCountriesstring[]noThe list of blocked countries with the two-letter Alpha2 ISO codes. Traffic connecting from a blocked country will be rejected on the DNS level.
filtersstring[]noOptions: all, eea, eu, scripting
redirectedCountriesstring[]noThe list of budget redirected countries with the two-letter Alpha2 ISO codes. Traffic from a redirected country will connect to the cheapest possible node in North America or Europe.
tierstringnoOptions: Standard, Volume
zonesstring[]noOptions: AF, ASIA, EU, SA, US

PullzoneOrigin (output)#

Output object PullzoneOrigin. Fields below belong to this object.

PropertyTypeAlways presentDescription
containerAppIdstringnoThe ID if the compute container app.
containerEndpointIdstringnoThe ID if the compute container app endpoint.
dnsPortnumbernoThe port for DNS Accelerated endpoints.
dnsSchemestringnoThe scheme for DNS Accelerated endpoints.
followRedirectsbooleanyesIndicates whether the zone will follow origin redirects.
forwardHostHeaderbooleanyesIndicates whether the current hostname is forwarded to the origin.
hostHeaderstringyesThe host header that will be sent to the origin.
middlewareScriptnumberyesThe ID of the compute script used as a middleware.
scriptnumbernoThe ID of the linked compute script.
scriptExecuteBeforeCachebooleanyesIndicates whether the script will execute ahead of the cache layer.
storagezonenumbernoThe ID of the linked storage zone.
typestringyesOptions: ComputeContainer, ComputeScript, DnsAccelerate, OriginUrl, StorageZone
urlstringnoThe origin URL from where the files are fetched.
verifySslbooleanyesIndicates whether the Origin's TLS certificate should be verified.

PullzoneRouting (output)#

Output object PullzoneRouting. Fields below belong to this object.

PropertyTypeAlways presentDescription
blockedCountriesstring[]yesThe list of blocked countries with the two-letter Alpha2 ISO codes. Traffic connecting from a blocked country will be rejected on the DNS level.
filtersstring[]yesOptions: all, eea, eu, scripting
redirectedCountriesstring[]yesThe list of budget redirected countries with the two-letter Alpha2 ISO codes. Traffic from a redirected country will connect to the cheapest possible node in North America or Europe.
tierstringyesOptions: Standard, Volume
zonesstring[]yesOptions: AF, ASIA, EU, SA, US