ZoneSettingsOverride
Provides a resource which customizes Cloudflare zone settings. Note that after destroying this resource Zone Settings will be reset to their initial values.
Example Usage
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
class MyStack : Stack
{
public MyStack()
{
var test = new Cloudflare.ZoneSettingsOverride("test", new Cloudflare.ZoneSettingsOverrideArgs
{
ZoneId = @var.Cloudflare_zone_id,
Settings = new Cloudflare.Inputs.ZoneSettingsOverrideSettingsArgs
{
Brotli = "on",
ChallengeTtl = 2700,
SecurityLevel = "high",
OpportunisticEncryption = "on",
AutomaticHttpsRewrites = "on",
Mirage = "on",
Waf = "on",
Minify = new Cloudflare.Inputs.ZoneSettingsOverrideSettingsMinifyArgs
{
Css = "on",
Js = "off",
Html = "off",
},
Security_header =
{
{ "enabled", true },
},
},
});
}
}
Coming soon!
import pulumi
import pulumi_cloudflare as cloudflare
test = cloudflare.ZoneSettingsOverride("test",
zone_id=var["cloudflare_zone_id"],
settings={
"brotli": "on",
"challengeTtl": 2700,
"securityLevel": "high",
"opportunisticEncryption": "on",
"automaticHttpsRewrites": "on",
"mirage": "on",
"waf": "on",
"minify": {
"css": "on",
"js": "off",
"html": "off",
},
"security_header": {
"enabled": True,
},
})import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const test = new cloudflare.ZoneSettingsOverride("test", {
zoneId: _var.cloudflare_zone_id,
settings: {
brotli: "on",
challengeTtl: 2700,
securityLevel: "high",
opportunisticEncryption: "on",
automaticHttpsRewrites: "on",
mirage: "on",
waf: "on",
minify: {
css: "on",
js: "off",
html: "off",
},
security_header: {
enabled: true,
},
},
});Create a ZoneSettingsOverride Resource
new ZoneSettingsOverride(name: string, args: ZoneSettingsOverrideArgs, opts?: CustomResourceOptions);def ZoneSettingsOverride(resource_name, opts=None, settings=None, zone_id=None, __props__=None);func NewZoneSettingsOverride(ctx *Context, name string, args ZoneSettingsOverrideArgs, opts ...ResourceOption) (*ZoneSettingsOverride, error)public ZoneSettingsOverride(string name, ZoneSettingsOverrideArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ZoneSettingsOverrideArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ZoneSettingsOverrideArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZoneSettingsOverrideArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ZoneSettingsOverride Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ZoneSettingsOverride resource accepts the following input properties:
- Zone
Id string The DNS zone ID to which apply settings.
- Settings
Zone
Settings Override Settings Args Settings overrides that will be applied to the zone. If a setting is not specified the existing setting will be used. For a full list of available settings see below.
- Zone
Id string The DNS zone ID to which apply settings.
- Settings
Zone
Settings Override Settings Settings overrides that will be applied to the zone. If a setting is not specified the existing setting will be used. For a full list of available settings see below.
- zone
Id string The DNS zone ID to which apply settings.
- settings
Zone
Settings Override Settings Settings overrides that will be applied to the zone. If a setting is not specified the existing setting will be used. For a full list of available settings see below.
- zone_
id str The DNS zone ID to which apply settings.
- settings
Dict[Zone
Settings Override Settings] Settings overrides that will be applied to the zone. If a setting is not specified the existing setting will be used. For a full list of available settings see below.
Outputs
All input properties are implicitly available as output properties. Additionally, the ZoneSettingsOverride resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Initial
Settings ZoneSettings Override Initial Settings Settings present in the zone at the time the resource is created. This will be used to restore the original settings when this resource is destroyed. Shares the same schema as the
settingsattribute (Above).- Initial
Settings stringRead At - Readonly
Settings List<string> Which of the current
settingsare not able to be set by the user. Which settings these are is determined by plan level and user permissions. *zone_status. A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup. *zone_type. Status of the zone. Valid values: active, pending, initializing, moved, deleted, deactivated.- Zone
Status string - Zone
Type string
- Id string
- The provider-assigned unique ID for this managed resource.
- Initial
Settings ZoneSettings Override Initial Settings Settings present in the zone at the time the resource is created. This will be used to restore the original settings when this resource is destroyed. Shares the same schema as the
settingsattribute (Above).- Initial
Settings stringRead At - Readonly
Settings []string Which of the current
settingsare not able to be set by the user. Which settings these are is determined by plan level and user permissions. *zone_status. A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup. *zone_type. Status of the zone. Valid values: active, pending, initializing, moved, deleted, deactivated.- Zone
Status string - Zone
Type string
- id string
- The provider-assigned unique ID for this managed resource.
- initial
Settings ZoneSettings Override Initial Settings Settings present in the zone at the time the resource is created. This will be used to restore the original settings when this resource is destroyed. Shares the same schema as the
settingsattribute (Above).- initial
Settings stringRead At - readonly
Settings string[] Which of the current
settingsare not able to be set by the user. Which settings these are is determined by plan level and user permissions. *zone_status. A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup. *zone_type. Status of the zone. Valid values: active, pending, initializing, moved, deleted, deactivated.- zone
Status string - zone
Type string
- id str
- The provider-assigned unique ID for this managed resource.
- initial_
settings Dict[ZoneSettings Override Initial Settings] Settings present in the zone at the time the resource is created. This will be used to restore the original settings when this resource is destroyed. Shares the same schema as the
settingsattribute (Above).- initial_
settings_ strread_ at - readonly_
settings List[str] Which of the current
settingsare not able to be set by the user. Which settings these are is determined by plan level and user permissions. *zone_status. A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup. *zone_type. Status of the zone. Valid values: active, pending, initializing, moved, deleted, deactivated.- zone_
status str - zone_
type str
Look up an Existing ZoneSettingsOverride Resource
Get an existing ZoneSettingsOverride resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ZoneSettingsOverrideState, opts?: CustomResourceOptions): ZoneSettingsOverridestatic get(resource_name, id, opts=None, initial_settings=None, initial_settings_read_at=None, readonly_settings=None, settings=None, zone_id=None, zone_status=None, zone_type=None, __props__=None);func GetZoneSettingsOverride(ctx *Context, name string, id IDInput, state *ZoneSettingsOverrideState, opts ...ResourceOption) (*ZoneSettingsOverride, error)public static ZoneSettingsOverride Get(string name, Input<string> id, ZoneSettingsOverrideState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Initial
Settings ZoneSettings Override Initial Settings Args Settings present in the zone at the time the resource is created. This will be used to restore the original settings when this resource is destroyed. Shares the same schema as the
settingsattribute (Above).- Initial
Settings stringRead At - Readonly
Settings List<string> Which of the current
settingsare not able to be set by the user. Which settings these are is determined by plan level and user permissions. *zone_status. A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup. *zone_type. Status of the zone. Valid values: active, pending, initializing, moved, deleted, deactivated.- Settings
Zone
Settings Override Settings Args Settings overrides that will be applied to the zone. If a setting is not specified the existing setting will be used. For a full list of available settings see below.
- Zone
Id string The DNS zone ID to which apply settings.
- Zone
Status string - Zone
Type string
- Initial
Settings ZoneSettings Override Initial Settings Settings present in the zone at the time the resource is created. This will be used to restore the original settings when this resource is destroyed. Shares the same schema as the
settingsattribute (Above).- Initial
Settings stringRead At - Readonly
Settings []string Which of the current
settingsare not able to be set by the user. Which settings these are is determined by plan level and user permissions. *zone_status. A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup. *zone_type. Status of the zone. Valid values: active, pending, initializing, moved, deleted, deactivated.- Settings
Zone
Settings Override Settings Settings overrides that will be applied to the zone. If a setting is not specified the existing setting will be used. For a full list of available settings see below.
- Zone
Id string The DNS zone ID to which apply settings.
- Zone
Status string - Zone
Type string
- initial
Settings ZoneSettings Override Initial Settings Settings present in the zone at the time the resource is created. This will be used to restore the original settings when this resource is destroyed. Shares the same schema as the
settingsattribute (Above).- initial
Settings stringRead At - readonly
Settings string[] Which of the current
settingsare not able to be set by the user. Which settings these are is determined by plan level and user permissions. *zone_status. A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup. *zone_type. Status of the zone. Valid values: active, pending, initializing, moved, deleted, deactivated.- settings
Zone
Settings Override Settings Settings overrides that will be applied to the zone. If a setting is not specified the existing setting will be used. For a full list of available settings see below.
- zone
Id string The DNS zone ID to which apply settings.
- zone
Status string - zone
Type string
- initial_
settings Dict[ZoneSettings Override Initial Settings] Settings present in the zone at the time the resource is created. This will be used to restore the original settings when this resource is destroyed. Shares the same schema as the
settingsattribute (Above).- initial_
settings_ strread_ at - readonly_
settings List[str] Which of the current
settingsare not able to be set by the user. Which settings these are is determined by plan level and user permissions. *zone_status. A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup. *zone_type. Status of the zone. Valid values: active, pending, initializing, moved, deleted, deactivated.- settings
Dict[Zone
Settings Override Settings] Settings overrides that will be applied to the zone. If a setting is not specified the existing setting will be used. For a full list of available settings see below.
- zone_
id str The DNS zone ID to which apply settings.
- zone_
status str - zone_
type str
Supporting Types
ZoneSettingsOverrideInitialSettings
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Always
Online string - Always
Use stringHttps - Automatic
Https stringRewrites - Brotli string
- Browser
Cache intTtl - Browser
Check string - Cache
Level string - Challenge
Ttl int - Cname
Flattening string - Development
Mode string - Email
Obfuscation string - H2Prioritization string
- Hotlink
Protection string - Http2 string
- Http3 string
- Image
Resizing string - Ip
Geolocation string - Ipv6 string
- Max
Upload int - Min
Tls stringVersion - Minify
Zone
Settings Override Initial Settings Minify Args - Mirage string
- Mobile
Redirect ZoneSettings Override Initial Settings Mobile Redirect Args - Opportunistic
Encryption string - Opportunistic
Onion string - Origin
Error stringPage Pass Thru - Polish string
- Prefetch
Preload string - Privacy
Pass string - Pseudo
Ipv4 string - Response
Buffering string - Rocket
Loader string - Security
Header ZoneSettings Override Initial Settings Security Header Args - Security
Level string - Server
Side stringExclude - Sort
Query stringString For Cache - Ssl string
- Tls12Only string
- Tls13 string
- Tls
Client stringAuth - True
Client stringIp Header - Universal
Ssl string - Waf string
- Webp string
. Note that the value specified will be ignored unless
polishis turned on (i.e. is “lossless” or “lossy”)- Websockets string
- Zero
Rtt string
- Always
Online string - Always
Use stringHttps - Automatic
Https stringRewrites - Brotli string
- Browser
Cache intTtl - Browser
Check string - Cache
Level string - Challenge
Ttl int - Cname
Flattening string - Development
Mode string - Email
Obfuscation string - H2Prioritization string
- Hotlink
Protection string - Http2 string
- Http3 string
- Image
Resizing string - Ip
Geolocation string - Ipv6 string
- Max
Upload int - Min
Tls stringVersion - Minify
Zone
Settings Override Initial Settings Minify - Mirage string
- Mobile
Redirect ZoneSettings Override Initial Settings Mobile Redirect - Opportunistic
Encryption string - Opportunistic
Onion string - Origin
Error stringPage Pass Thru - Polish string
- Prefetch
Preload string - Privacy
Pass string - Pseudo
Ipv4 string - Response
Buffering string - Rocket
Loader string - Security
Header ZoneSettings Override Initial Settings Security Header - Security
Level string - Server
Side stringExclude - Sort
Query stringString For Cache - Ssl string
- Tls12Only string
- Tls13 string
- Tls
Client stringAuth - True
Client stringIp Header - Universal
Ssl string - Waf string
- Webp string
. Note that the value specified will be ignored unless
polishis turned on (i.e. is “lossless” or “lossy”)- Websockets string
- Zero
Rtt string
- always
Online string - always
Use stringHttps - automatic
Https stringRewrites - brotli string
- browser
Cache numberTtl - browser
Check string - cache
Level string - challenge
Ttl number - cname
Flattening string - development
Mode string - email
Obfuscation string - h2Prioritization string
- hotlink
Protection string - http2 string
- http3 string
- image
Resizing string - ip
Geolocation string - ipv6 string
- max
Upload number - min
Tls stringVersion - minify
Zone
Settings Override Initial Settings Minify - mirage string
- mobile
Redirect ZoneSettings Override Initial Settings Mobile Redirect - opportunistic
Encryption string - opportunistic
Onion string - origin
Error stringPage Pass Thru - polish string
- prefetch
Preload string - privacy
Pass string - pseudo
Ipv4 string - response
Buffering string - rocket
Loader string - security
Header ZoneSettings Override Initial Settings Security Header - security
Level string - server
Side stringExclude - sort
Query stringString For Cache - ssl string
- tls12Only string
- tls13 string
- tls
Client stringAuth - true
Client stringIp Header - universal
Ssl string - waf string
- webp string
. Note that the value specified will be ignored unless
polishis turned on (i.e. is “lossless” or “lossy”)- websockets string
- zero
Rtt string
- always
Online str - always
Use strHttps - automatic
Https strRewrites - brotli str
- browser
Cache floatTtl - browser
Check str - cache
Level str - challenge
Ttl float - cname
Flattening str - development
Mode str - email
Obfuscation str - h2Prioritization str
- hotlink
Protection str - http2 str
- http3 str
- image
Resizing str - ip
Geolocation str - ipv6 str
- max
Upload float - min
Tls strVersion - minify
Dict[Zone
Settings Override Initial Settings Minify] - mirage str
- mobile
Redirect Dict[ZoneSettings Override Initial Settings Mobile Redirect] - opportunistic
Encryption str - opportunistic
Onion str - origin
Error strPage Pass Thru - polish str
- prefetch
Preload str - privacy
Pass str - pseudo
Ipv4 str - response
Buffering str - rocket
Loader str - security
Header Dict[ZoneSettings Override Initial Settings Security Header] - security
Level str - server
Side strExclude - sort
Query strString For Cache - ssl str
- tls12Only str
- tls13 str
- tls
Client strAuth - true
Client strIp Header - universal
Ssl str - waf str
- webp str
. Note that the value specified will be ignored unless
polishis turned on (i.e. is “lossless” or “lossy”)- websockets str
- zero
Rtt str
ZoneSettingsOverrideInitialSettingsMinify
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
ZoneSettingsOverrideInitialSettingsMobileRedirect
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
ZoneSettingsOverrideInitialSettingsSecurityHeader
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
ZoneSettingsOverrideSettings
- Always
Online string - Always
Use stringHttps - Automatic
Https stringRewrites - Brotli string
- Browser
Cache intTtl - Browser
Check string - Cache
Level string - Challenge
Ttl int - Cname
Flattening string - Development
Mode string - Email
Obfuscation string - H2Prioritization string
- Hotlink
Protection string - Http2 string
- Http3 string
- Image
Resizing string - Ip
Geolocation string - Ipv6 string
- Max
Upload int - Min
Tls stringVersion - Minify
Zone
Settings Override Settings Minify Args - Mirage string
- Mobile
Redirect ZoneSettings Override Settings Mobile Redirect Args - Opportunistic
Encryption string - Opportunistic
Onion string - Origin
Error stringPage Pass Thru - Polish string
- Prefetch
Preload string - Privacy
Pass string - Pseudo
Ipv4 string - Response
Buffering string - Rocket
Loader string - Security
Header ZoneSettings Override Settings Security Header Args - Security
Level string - Server
Side stringExclude - Sort
Query stringString For Cache - Ssl string
- Tls12Only string
- Tls13 string
- Tls
Client stringAuth - True
Client stringIp Header - Universal
Ssl string - Waf string
- Webp string
. Note that the value specified will be ignored unless
polishis turned on (i.e. is “lossless” or “lossy”)- Websockets string
- Zero
Rtt string
- Always
Online string - Always
Use stringHttps - Automatic
Https stringRewrites - Brotli string
- Browser
Cache intTtl - Browser
Check string - Cache
Level string - Challenge
Ttl int - Cname
Flattening string - Development
Mode string - Email
Obfuscation string - H2Prioritization string
- Hotlink
Protection string - Http2 string
- Http3 string
- Image
Resizing string - Ip
Geolocation string - Ipv6 string
- Max
Upload int - Min
Tls stringVersion - Minify
Zone
Settings Override Settings Minify - Mirage string
- Mobile
Redirect ZoneSettings Override Settings Mobile Redirect - Opportunistic
Encryption string - Opportunistic
Onion string - Origin
Error stringPage Pass Thru - Polish string
- Prefetch
Preload string - Privacy
Pass string - Pseudo
Ipv4 string - Response
Buffering string - Rocket
Loader string - Security
Header ZoneSettings Override Settings Security Header - Security
Level string - Server
Side stringExclude - Sort
Query stringString For Cache - Ssl string
- Tls12Only string
- Tls13 string
- Tls
Client stringAuth - True
Client stringIp Header - Universal
Ssl string - Waf string
- Webp string
. Note that the value specified will be ignored unless
polishis turned on (i.e. is “lossless” or “lossy”)- Websockets string
- Zero
Rtt string
- always
Online string - always
Use stringHttps - automatic
Https stringRewrites - brotli string
- browser
Cache numberTtl - browser
Check string - cache
Level string - challenge
Ttl number - cname
Flattening string - development
Mode string - email
Obfuscation string - h2Prioritization string
- hotlink
Protection string - http2 string
- http3 string
- image
Resizing string - ip
Geolocation string - ipv6 string
- max
Upload number - min
Tls stringVersion - minify
Zone
Settings Override Settings Minify - mirage string
- mobile
Redirect ZoneSettings Override Settings Mobile Redirect - opportunistic
Encryption string - opportunistic
Onion string - origin
Error stringPage Pass Thru - polish string
- prefetch
Preload string - privacy
Pass string - pseudo
Ipv4 string - response
Buffering string - rocket
Loader string - security
Header ZoneSettings Override Settings Security Header - security
Level string - server
Side stringExclude - sort
Query stringString For Cache - ssl string
- tls12Only string
- tls13 string
- tls
Client stringAuth - true
Client stringIp Header - universal
Ssl string - waf string
- webp string
. Note that the value specified will be ignored unless
polishis turned on (i.e. is “lossless” or “lossy”)- websockets string
- zero
Rtt string
- always
Online str - always
Use strHttps - automatic
Https strRewrites - brotli str
- browser
Cache floatTtl - browser
Check str - cache
Level str - challenge
Ttl float - cname
Flattening str - development
Mode str - email
Obfuscation str - h2Prioritization str
- hotlink
Protection str - http2 str
- http3 str
- image
Resizing str - ip
Geolocation str - ipv6 str
- max
Upload float - min
Tls strVersion - minify
Dict[Zone
Settings Override Settings Minify] - mirage str
- mobile
Redirect Dict[ZoneSettings Override Settings Mobile Redirect] - opportunistic
Encryption str - opportunistic
Onion str - origin
Error strPage Pass Thru - polish str
- prefetch
Preload str - privacy
Pass str - pseudo
Ipv4 str - response
Buffering str - rocket
Loader str - security
Header Dict[ZoneSettings Override Settings Security Header] - security
Level str - server
Side strExclude - sort
Query strString For Cache - ssl str
- tls12Only str
- tls13 str
- tls
Client strAuth - true
Client strIp Header - universal
Ssl str - waf str
- webp str
. Note that the value specified will be ignored unless
polishis turned on (i.e. is “lossless” or “lossy”)- websockets str
- zero
Rtt str
ZoneSettingsOverrideSettingsMinify
ZoneSettingsOverrideSettingsMobileRedirect
ZoneSettingsOverrideSettingsSecurityHeader
Package Details
- Repository
- https://github.com/pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.